diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 0d437dd36b..e8e8198498 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -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 }