1
0
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:
Delyan Angelov 2021-05-29 12:15:10 +03:00
parent bb6907473b
commit 7287ecd6c7
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -8,6 +8,23 @@ const (
skip_test_files = [
'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 = [
'vlib/net/tcp_simple_client_server_test.v',
'vlib/net/http/cookie_test.v',
@ -26,21 +43,6 @@ const (
'vlib/vweb/route_test.v',
'vlib/x/websocket/websocket_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 = [
'vlib/x/websocket/websocket_test.v',
@ -149,6 +151,10 @@ fn main() {
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 {
tsession.skip_files << skip_with_werror
}