diff options
author | dundargoc <gocdundar@gmail.com> | 2025-02-27 20:03:26 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2025-03-02 02:29:25 +0100 |
commit | 188ec19894e4d3abadec7b9a43fecf62dd77b376 (patch) | |
tree | f2d2383fdc5dfcb8ccba3eda14263c59cba2fceb /test | |
parent | 13513835798c732554de277229d4c6744df11502 (diff) | |
download | rneovim-188ec19894e4d3abadec7b9a43fecf62dd77b376.tar.gz rneovim-188ec19894e4d3abadec7b9a43fecf62dd77b376.tar.bz2 rneovim-188ec19894e4d3abadec7b9a43fecf62dd77b376.zip |
build!: turn off translations by default
The translation step prolongs the build time too much to be enabled by
default. Enable it by passing cmake flag `ENABLE_TRANSLATIONS=ON`.
Diffstat (limited to 'test')
-rw-r--r-- | test/cmakeconfig/paths.lua.in | 1 | ||||
-rw-r--r-- | test/functional/ui/messages_spec.lua | 1 | ||||
-rw-r--r-- | test/testutil.lua | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/test/cmakeconfig/paths.lua.in b/test/cmakeconfig/paths.lua.in index 78c66a4eac..334b5517b5 100644 --- a/test/cmakeconfig/paths.lua.in +++ b/test/cmakeconfig/paths.lua.in @@ -5,6 +5,7 @@ for p in ("${TEST_INCLUDE_DIRS}" .. ";"):gmatch("[^;]+") do table.insert(M.include_paths, p) end +M.translations_enabled = "${ENABLE_TRANSLATIONS}" == "ON" M.vterm_test_file = "${VTERM_TEST_FILE}" M.test_build_dir = "${CMAKE_BINARY_DIR}" M.test_source_path = "${CMAKE_SOURCE_DIR}" diff --git a/test/functional/ui/messages_spec.lua b/test/functional/ui/messages_spec.lua index 83abf77ae6..4770c5e143 100644 --- a/test/functional/ui/messages_spec.lua +++ b/test/functional/ui/messages_spec.lua @@ -2424,6 +2424,7 @@ end) describe('ui/msg_puts_printf', function() it('output multibyte characters correctly', function() + skip(not t.translations_enabled(), 'Nvim not built with ENABLE_TRANSLATIONS') local screen local cmd = '' local locale_dir = test_build_dir .. '/share/locale/ja/LC_MESSAGES' diff --git a/test/testutil.lua b/test/testutil.lua index 3655a87d93..cb8ff5ed49 100644 --- a/test/testutil.lua +++ b/test/testutil.lua @@ -840,4 +840,8 @@ function M.skip_fragile(pending_fn, cond) return false end +function M.translations_enabled() + return M.paths.translations_enabled +end + return M |