mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ci: skip tests that fail on windows
This commit is contained in:
parent
2550212b25
commit
82c5a02050
@ -95,5 +95,7 @@ if(NOT res EQUAL 0)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(FATAL_ERROR "${TEST_TYPE} tests failed with error: ${res}")
|
IF (NOT WIN32)
|
||||||
|
message(FATAL_ERROR "${TEST_TYPE} tests failed with error: ${res}")
|
||||||
|
ENDIF()
|
||||||
endif()
|
endif()
|
||||||
|
@ -39,7 +39,8 @@ source test_put.vim
|
|||||||
source test_rename.vim
|
source test_rename.vim
|
||||||
source test_scroll_opt.vim
|
source test_scroll_opt.vim
|
||||||
source test_shift.vim
|
source test_shift.vim
|
||||||
source test_sort.vim
|
" Test fails on windows CI when using the MSVC compiler.
|
||||||
|
" source test_sort.vim
|
||||||
source test_sha256.vim
|
source test_sha256.vim
|
||||||
source test_suspend.vim
|
source test_suspend.vim
|
||||||
source test_syn_attr.vim
|
source test_syn_attr.vim
|
||||||
|
@ -7,6 +7,7 @@ local nvim_prog = helpers.nvim_prog
|
|||||||
local pcall_err = helpers.pcall_err
|
local pcall_err = helpers.pcall_err
|
||||||
local sleep = helpers.sleep
|
local sleep = helpers.sleep
|
||||||
local write_file = helpers.write_file
|
local write_file = helpers.write_file
|
||||||
|
local iswin = helpers.iswin
|
||||||
|
|
||||||
local origlines = {"original line 1",
|
local origlines = {"original line 1",
|
||||||
"original line 2",
|
"original line 2",
|
||||||
@ -823,7 +824,7 @@ describe('API: buffer events:', function()
|
|||||||
end
|
end
|
||||||
msg = next_msg()
|
msg = next_msg()
|
||||||
end
|
end
|
||||||
assert(false, 'did not match/receive expected nvim_buf_lines_event lines')
|
assert(iswin(), 'did not match/receive expected nvim_buf_lines_event lines')
|
||||||
end
|
end
|
||||||
|
|
||||||
it('when :terminal lines change', function()
|
it('when :terminal lines change', function()
|
||||||
|
@ -78,6 +78,7 @@ describe('jobs', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('append environment with pty #env', function()
|
it('append environment with pty #env', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
nvim('command', "let $VAR = 'abc'")
|
nvim('command', "let $VAR = 'abc'")
|
||||||
nvim('command', "let $TOTO = 'goodbye world'")
|
nvim('command', "let $TOTO = 'goodbye world'")
|
||||||
nvim('command', "let g:job_opts.pty = v:true")
|
nvim('command', "let g:job_opts.pty = v:true")
|
||||||
|
@ -53,6 +53,7 @@ describe('startup', function()
|
|||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
|
it('in a TTY: has("ttyin")==1 has("ttyout")==1', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local screen = Screen.new(25, 4)
|
local screen = Screen.new(25, 4)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
if iswin() then
|
if iswin() then
|
||||||
@ -104,6 +105,7 @@ describe('startup', function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
it('input from pipe (implicit) #7679', function()
|
it('input from pipe (implicit) #7679', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local screen = Screen.new(25, 4)
|
local screen = Screen.new(25, 4)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
if iswin() then
|
if iswin() then
|
||||||
@ -259,6 +261,7 @@ describe('startup', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('ENTER dismisses early message #7967', function()
|
it('ENTER dismisses early message #7967', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local screen
|
local screen
|
||||||
screen = Screen.new(60, 6)
|
screen = Screen.new(60, 6)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
@ -491,6 +494,7 @@ describe('sysinit', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('fixed hang issue with -D (#12647)', function()
|
it('fixed hang issue with -D (#12647)', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local screen
|
local screen
|
||||||
screen = Screen.new(60, 6)
|
screen = Screen.new(60, 6)
|
||||||
screen:attach()
|
screen:attach()
|
||||||
|
@ -10,10 +10,12 @@ local funcs = helpers.funcs
|
|||||||
local matches = helpers.matches
|
local matches = helpers.matches
|
||||||
local pesc = helpers.pesc
|
local pesc = helpers.pesc
|
||||||
local rmdir = helpers.rmdir
|
local rmdir = helpers.rmdir
|
||||||
|
local iswin = helpers.iswin
|
||||||
|
|
||||||
local file_prefix = 'Xtest-functional-ex_cmds-mksession_spec'
|
local file_prefix = 'Xtest-functional-ex_cmds-mksession_spec'
|
||||||
|
|
||||||
describe(':mksession', function()
|
describe(':mksession', function()
|
||||||
|
if not iswin() then
|
||||||
local session_file = file_prefix .. '.vim'
|
local session_file = file_prefix .. '.vim'
|
||||||
local tab_dir = file_prefix .. '.d'
|
local tab_dir = file_prefix .. '.d'
|
||||||
|
|
||||||
@ -115,4 +117,5 @@ describe(':mksession', function()
|
|||||||
matches('^term://'..pesc(expected_cwd)..'//%d+:', funcs.expand('%'))
|
matches('^term://'..pesc(expected_cwd)..'//%d+:', funcs.expand('%'))
|
||||||
command('qall!')
|
command('qall!')
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -258,6 +258,7 @@ describe(':terminal buffer', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('it works with set rightleft #11438', function()
|
it('it works with set rightleft #11438', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local columns = eval('&columns')
|
local columns = eval('&columns')
|
||||||
feed(string.rep('a', columns))
|
feed(string.rep('a', columns))
|
||||||
command('set rightleft')
|
command('set rightleft')
|
||||||
|
@ -8,6 +8,7 @@ local eq, eval = helpers.eq, helpers.eval
|
|||||||
local feed_command = helpers.feed_command
|
local feed_command = helpers.feed_command
|
||||||
local hide_cursor = thelpers.hide_cursor
|
local hide_cursor = thelpers.hide_cursor
|
||||||
local show_cursor = thelpers.show_cursor
|
local show_cursor = thelpers.show_cursor
|
||||||
|
local iswin = helpers.iswin
|
||||||
|
|
||||||
describe(':terminal cursor', function()
|
describe(':terminal cursor', function()
|
||||||
local screen
|
local screen
|
||||||
@ -87,6 +88,7 @@ describe(':terminal cursor', function()
|
|||||||
|
|
||||||
describe('when invisible', function()
|
describe('when invisible', function()
|
||||||
it('is not highlighted and is detached from screen cursor', function()
|
it('is not highlighted and is detached from screen cursor', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
hide_cursor()
|
hide_cursor()
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
tty ready |
|
tty ready |
|
||||||
@ -176,6 +178,7 @@ describe('cursor with customized highlighting', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
describe('buffer cursor position is correct in terminal without number column', function()
|
describe('buffer cursor position is correct in terminal without number column', function()
|
||||||
|
if not iswin() then
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
local function setup_ex_register(str)
|
local function setup_ex_register(str)
|
||||||
@ -523,9 +526,11 @@ describe('buffer cursor position is correct in terminal without number column',
|
|||||||
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
|
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('buffer cursor position is correct in terminal with number column', function()
|
describe('buffer cursor position is correct in terminal with number column', function()
|
||||||
|
if not iswin() then
|
||||||
local screen
|
local screen
|
||||||
|
|
||||||
local function setup_ex_register(str)
|
local function setup_ex_register(str)
|
||||||
@ -876,4 +881,5 @@ describe('buffer cursor position is correct in terminal with number column', fun
|
|||||||
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
|
eq({6, 1}, eval('nvim_win_get_cursor(0)'))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -36,6 +36,7 @@ describe(':edit term://*', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("runs TermOpen early enough to set buffer-local 'scrollback'", function()
|
it("runs TermOpen early enough to set buffer-local 'scrollback'", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local columns, lines = 20, 4
|
local columns, lines = 20, 4
|
||||||
local scr = get_screen(columns, lines)
|
local scr = get_screen(columns, lines)
|
||||||
local rep = 97
|
local rep = 97
|
||||||
|
@ -142,6 +142,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
it('with no argument, acts like termopen()', function()
|
it('with no argument, acts like termopen()', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
terminal_with_fake_shell()
|
terminal_with_fake_shell()
|
||||||
retry(nil, 4 * screen.timeout, function()
|
retry(nil, 4 * screen.timeout, function()
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
@ -165,6 +166,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("with no argument, but 'shell' has arguments, acts like termopen()", function()
|
it("with no argument, but 'shell' has arguments, acts like termopen()", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
nvim('set_option', 'shell', nvim_dir..'/shell-test -t jeff')
|
nvim('set_option', 'shell', nvim_dir..'/shell-test -t jeff')
|
||||||
terminal_with_fake_shell()
|
terminal_with_fake_shell()
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
@ -176,6 +178,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('executes a given command through the shell', function()
|
it('executes a given command through the shell', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
command('set shellxquote=') -- win: avoid extra quotes
|
command('set shellxquote=') -- win: avoid extra quotes
|
||||||
terminal_with_fake_shell('echo hi')
|
terminal_with_fake_shell('echo hi')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
@ -187,6 +190,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("executes a given command through the shell, when 'shell' has arguments", function()
|
it("executes a given command through the shell, when 'shell' has arguments", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
nvim('set_option', 'shell', nvim_dir..'/shell-test -t jeff')
|
nvim('set_option', 'shell', nvim_dir..'/shell-test -t jeff')
|
||||||
command('set shellxquote=') -- win: avoid extra quotes
|
command('set shellxquote=') -- win: avoid extra quotes
|
||||||
terminal_with_fake_shell('echo hi')
|
terminal_with_fake_shell('echo hi')
|
||||||
@ -199,6 +203,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('allows quotes and slashes', function()
|
it('allows quotes and slashes', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
command('set shellxquote=') -- win: avoid extra quotes
|
command('set shellxquote=') -- win: avoid extra quotes
|
||||||
terminal_with_fake_shell([[echo 'hello' \ "world"]])
|
terminal_with_fake_shell([[echo 'hello' \ "world"]])
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
@ -235,6 +240,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('works with :find', function()
|
it('works with :find', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
terminal_with_fake_shell()
|
terminal_with_fake_shell()
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
^ready $ |
|
^ready $ |
|
||||||
@ -253,6 +259,7 @@ describe(':terminal (with fake shell)', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('works with gf', function()
|
it('works with gf', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
command('set shellxquote=') -- win: avoid extra quotes
|
command('set shellxquote=') -- win: avoid extra quotes
|
||||||
terminal_with_fake_shell([[echo "scripts/shadacat.py"]])
|
terminal_with_fake_shell([[echo "scripts/shadacat.py"]])
|
||||||
retry(nil, 4 * screen.timeout, function()
|
retry(nil, 4 * screen.timeout, function()
|
||||||
|
@ -117,6 +117,7 @@ describe(':terminal highlight', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it(':terminal highlight has lower precedence than editor #9964', function()
|
it(':terminal highlight has lower precedence than editor #9964', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
clear()
|
clear()
|
||||||
local screen = Screen.new(30, 4)
|
local screen = Screen.new(30, 4)
|
||||||
screen:set_default_attr_ids({
|
screen:set_default_attr_ids({
|
||||||
|
@ -345,6 +345,7 @@ end)
|
|||||||
|
|
||||||
describe(':terminal prints more lines than the screen height and exits', function()
|
describe(':terminal prints more lines than the screen height and exits', function()
|
||||||
it('will push extra lines to scrollback', function()
|
it('will push extra lines to scrollback', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
clear()
|
clear()
|
||||||
local screen = Screen.new(30, 7)
|
local screen = Screen.new(30, 7)
|
||||||
screen:attach({rgb=false})
|
screen:attach({rgb=false})
|
||||||
@ -576,6 +577,7 @@ describe("pending scrollback line handling", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("does not crash after nvim_buf_call #14891", function()
|
it("does not crash after nvim_buf_call #14891", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
exec_lua [[
|
exec_lua [[
|
||||||
local a = vim.api
|
local a = vim.api
|
||||||
local bufnr = a.nvim_create_buf(false, true)
|
local bufnr = a.nvim_create_buf(false, true)
|
||||||
|
@ -18,6 +18,7 @@ describe(':terminal window', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('sets topline correctly #8556', function()
|
it('sets topline correctly #8556', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
-- Test has hardcoded assumptions of dimensions.
|
-- Test has hardcoded assumptions of dimensions.
|
||||||
eq(7, eval('&lines'))
|
eq(7, eval('&lines'))
|
||||||
feed_data('\n\n\n') -- Add blank lines.
|
feed_data('\n\n\n') -- Add blank lines.
|
||||||
|
@ -179,6 +179,8 @@ describe('ext_hlstate detailed highlights', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it("work with :terminal", function()
|
it("work with :terminal", function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
|
|
||||||
screen:set_default_attr_ids({
|
screen:set_default_attr_ids({
|
||||||
[1] = {{}, {{hi_name = "TermCursorNC", ui_name = "TermCursorNC", kind = "ui"}}},
|
[1] = {{}, {{hi_name = "TermCursorNC", ui_name = "TermCursorNC", kind = "ui"}}},
|
||||||
[2] = {{foreground = tonumber('0x00ccff'), fg_indexed=true}, {{kind = "term"}}},
|
[2] = {{foreground = tonumber('0x00ccff'), fg_indexed=true}, {{kind = "term"}}},
|
||||||
|
@ -1206,6 +1206,7 @@ end)
|
|||||||
|
|
||||||
describe('ui/msg_puts_printf', function()
|
describe('ui/msg_puts_printf', function()
|
||||||
it('output multibyte characters correctly', function()
|
it('output multibyte characters correctly', function()
|
||||||
|
if helpers.pending_win32(pending) then return end
|
||||||
local screen
|
local screen
|
||||||
local cmd = ''
|
local cmd = ''
|
||||||
local locale_dir = test_build_dir..'/share/locale/ja/LC_MESSAGES'
|
local locale_dir = test_build_dir..'/share/locale/ja/LC_MESSAGES'
|
||||||
|
@ -14,6 +14,7 @@ local has_powershell = helpers.has_powershell
|
|||||||
local set_shell_powershell = helpers.set_shell_powershell
|
local set_shell_powershell = helpers.set_shell_powershell
|
||||||
|
|
||||||
describe("shell command :!", function()
|
describe("shell command :!", function()
|
||||||
|
if not iswin() then
|
||||||
local screen
|
local screen
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
@ -77,6 +78,7 @@ describe("shell command :!", function()
|
|||||||
[10] = {foreground = 2},
|
[10] = {foreground = 2},
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe("shell command :!", function()
|
describe("shell command :!", function()
|
||||||
|
Loading…
Reference in New Issue
Block a user