mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: skip too slow tests in any sanitize mode, use VTEST_RUN_FSANITIZE_TOO_SLOW to override
This commit is contained in:
parent
bb6907473b
commit
7287ecd6c7
@ -8,6 +8,23 @@ const (
|
|||||||
skip_test_files = [
|
skip_test_files = [
|
||||||
'vlib/context/deadline_test.v' /* sometimes blocks */,
|
'vlib/context/deadline_test.v' /* sometimes blocks */,
|
||||||
]
|
]
|
||||||
|
skip_fsanitize_too_slow = [
|
||||||
|
// These tests are too slow to be run in the CI on each PR/commit
|
||||||
|
// in the sanitized modes:
|
||||||
|
'vlib/v/compiler_errors_test.v',
|
||||||
|
'vlib/v/doc/doc_test.v',
|
||||||
|
'vlib/v/fmt/fmt_test.v',
|
||||||
|
'vlib/v/fmt/fmt_keep_test.v',
|
||||||
|
'vlib/v/fmt/fmt_vlib_test.v',
|
||||||
|
'vlib/v/live/live_test.v',
|
||||||
|
'vlib/v/parser/v_parser_test.v',
|
||||||
|
'vlib/v/scanner/scanner_test.v',
|
||||||
|
'vlib/v/tests/inout/compiler_test.v',
|
||||||
|
'vlib/v/tests/prod_test.v',
|
||||||
|
'vlib/v/tests/profile/profile_test.v',
|
||||||
|
'vlib/v/tests/repl/repl_test.v',
|
||||||
|
'vlib/v/tests/valgrind/valgrind_test.v',
|
||||||
|
]
|
||||||
skip_with_fsanitize_memory = [
|
skip_with_fsanitize_memory = [
|
||||||
'vlib/net/tcp_simple_client_server_test.v',
|
'vlib/net/tcp_simple_client_server_test.v',
|
||||||
'vlib/net/http/cookie_test.v',
|
'vlib/net/http/cookie_test.v',
|
||||||
@ -26,21 +43,6 @@ const (
|
|||||||
'vlib/vweb/route_test.v',
|
'vlib/vweb/route_test.v',
|
||||||
'vlib/x/websocket/websocket_test.v',
|
'vlib/x/websocket/websocket_test.v',
|
||||||
'vlib/crypto/rand/crypto_rand_read_test.v',
|
'vlib/crypto/rand/crypto_rand_read_test.v',
|
||||||
// too slow:
|
|
||||||
'vlib/os/process_test.v',
|
|
||||||
'vlib/v/compiler_errors_test.v',
|
|
||||||
'vlib/v/doc/doc_test.v',
|
|
||||||
'vlib/v/fmt/fmt_test.v',
|
|
||||||
'vlib/v/fmt/fmt_keep_test.v',
|
|
||||||
'vlib/v/fmt/fmt_vlib_test.v',
|
|
||||||
'vlib/v/live/live_test.v',
|
|
||||||
'vlib/v/parser/v_parser_test.v',
|
|
||||||
'vlib/v/scanner/scanner_test.v',
|
|
||||||
'vlib/v/tests/inout/compiler_test.v',
|
|
||||||
'vlib/v/tests/prod_test.v',
|
|
||||||
'vlib/v/tests/profile/profile_test.v',
|
|
||||||
'vlib/v/tests/repl/repl_test.v',
|
|
||||||
'vlib/v/tests/valgrind/valgrind_test.v',
|
|
||||||
]
|
]
|
||||||
skip_with_fsanitize_address = [
|
skip_with_fsanitize_address = [
|
||||||
'vlib/x/websocket/websocket_test.v',
|
'vlib/x/websocket/websocket_test.v',
|
||||||
@ -149,6 +151,10 @@ fn main() {
|
|||||||
sanitize_undefined = true
|
sanitize_undefined = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if os.getenv('VTEST_RUN_FSANITIZE_TOO_SLOW').len == 0
|
||||||
|
&& (sanitize_undefined || sanitize_memory || sanitize_address) {
|
||||||
|
tsession.skip_files << skip_fsanitize_too_slow
|
||||||
|
}
|
||||||
if werror {
|
if werror {
|
||||||
tsession.skip_files << skip_with_werror
|
tsession.skip_files << skip_with_werror
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user