From 496eca22b37b243aba2efe8383e591ef57d27df9 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 18 Feb 2026 15:56:50 +0800 Subject: test: support running functionaltests in parallel by directory (#37918) Define a CMake target for every subdirectory of test/functional that contains functional tests, and a functionaltest_parallel target that depends on all those targets, allowing multiple test runners to run in parallel. On CI, use at most 2 parallel test runners, as using more may increase system load and make tests unstable. --- test/functional/vimscript/executable_spec.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/functional/vimscript/executable_spec.lua') diff --git a/test/functional/vimscript/executable_spec.lua b/test/functional/vimscript/executable_spec.lua index a66f9cdb8a..05d249ca32 100644 --- a/test/functional/vimscript/executable_spec.lua +++ b/test/functional/vimscript/executable_spec.lua @@ -33,9 +33,15 @@ describe('executable()', function() end) it('stdpath respects shellslash', function() - eq([[build\Xtest_xdg\share\nvim-data]], call('fnamemodify', call('stdpath', 'data'), ':.')) + t.matches( + [[build\Xtest_xdg[%w_]*\share\nvim%-data]], + call('fnamemodify', call('stdpath', 'data'), ':.') + ) command('set shellslash') - eq('build/Xtest_xdg/share/nvim-data', call('fnamemodify', call('stdpath', 'data'), ':.')) + t.matches( + 'build/Xtest_xdg[%w_]*/share/nvim%-data', + call('fnamemodify', call('stdpath', 'data'), ':.') + ) end) end -- cgit v1.3-3-g829e