From e1b3e5b656a56e08dc0f32f13f4e4f992932d5ec Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 7 Dec 2025 13:09:27 +0200 Subject: [PATCH] tests: skip some slow running tests on jobs that do not use tcc (only when the outputs/checked invariants *do not* depend on the used C compiler) --- vlib/cli/cli_test.v | 3 ++- vlib/net/tcp_non_blocking_test.v | 1 + vlib/v/builder/interpreterbuilder/v_interpret_test.v | 1 + vlib/v/gen/golang/tests/golang_test.v | 2 +- vlib/v/gen/js/jsgen_test.v | 1 + vlib/v/parser/v_parser_test.v | 1 + vlib/v/slow_tests/run_project_folders_test.v | 1 + vlib/v/tests/builtin_overflow_test.v | 2 +- 8 files changed, 9 insertions(+), 3 deletions(-) diff --git a/vlib/cli/cli_test.v b/vlib/cli/cli_test.v index 470aec346..4b8a23f2e 100644 --- a/vlib/cli/cli_test.v +++ b/vlib/cli/cli_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc module main import v.util.diff @@ -8,7 +9,7 @@ const vexe = @VEXE const vroot = os.dir(vexe) fn test_cli_programs() { - testdata := os.join_path(vroot, 'vlib', 'cli', 'testdata') + testdata := os.join_path(vroot, 'vlib/cli/testdata') mut has_err := false for test in os.walk_ext(testdata, '.vv') { print(test + ' ') diff --git a/vlib/net/tcp_non_blocking_test.v b/vlib/net/tcp_non_blocking_test.v index 79b5a4a22..f8516ef7d 100644 --- a/vlib/net/tcp_non_blocking_test.v +++ b/vlib/net/tcp_non_blocking_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc import net import time diff --git a/vlib/v/builder/interpreterbuilder/v_interpret_test.v b/vlib/v/builder/interpreterbuilder/v_interpret_test.v index fe9e0de19..e27b30618 100644 --- a/vlib/v/builder/interpreterbuilder/v_interpret_test.v +++ b/vlib/v/builder/interpreterbuilder/v_interpret_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc import os import rand import term diff --git a/vlib/v/gen/golang/tests/golang_test.v b/vlib/v/gen/golang/tests/golang_test.v index 8557b6fd7..e149d0705 100644 --- a/vlib/v/gen/golang/tests/golang_test.v +++ b/vlib/v/gen/golang/tests/golang_test.v @@ -1,4 +1,4 @@ -// vtest build: present_go? && !sanitized_job? +// vtest build: tinyc && present_go? && !sanitized_job? import os import benchmark import term diff --git a/vlib/v/gen/js/jsgen_test.v b/vlib/v/gen/js/jsgen_test.v index 56003f699..2dc22416a 100644 --- a/vlib/v/gen/js/jsgen_test.v +++ b/vlib/v/gen/js/jsgen_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc import os const test_dir = os.join_path('vlib', 'v', 'gen', 'js', 'tests') diff --git a/vlib/v/parser/v_parser_test.v b/vlib/v/parser/v_parser_test.v index 2af056c04..16ae57c9f 100644 --- a/vlib/v/parser/v_parser_test.v +++ b/vlib/v/parser/v_parser_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc module parser // import v.eval diff --git a/vlib/v/slow_tests/run_project_folders_test.v b/vlib/v/slow_tests/run_project_folders_test.v index 9beb2086f..f13fea2a3 100644 --- a/vlib/v/slow_tests/run_project_folders_test.v +++ b/vlib/v/slow_tests/run_project_folders_test.v @@ -1,3 +1,4 @@ +// vtest build: tinyc import os import time import term diff --git a/vlib/v/tests/builtin_overflow_test.v b/vlib/v/tests/builtin_overflow_test.v index 481a71236..4e10eaf2c 100644 --- a/vlib/v/tests/builtin_overflow_test.v +++ b/vlib/v/tests/builtin_overflow_test.v @@ -1,4 +1,4 @@ -// vtest build: !self_sandboxed_packaging? && !sanitized_job? +// vtest build: tinyc && !self_sandboxed_packaging? && !sanitized_job? import os import time import term -- 2.39.5