From 5807d31b40f8a116454f70eec6cdf8c766512d1f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 19 May 2026 18:08:43 +0300 Subject: [PATCH] v2: restrict all v2 test files to macos only --- vlib/v2/abi/abi_test.v | 1 + vlib/v2/builder/parse_test.v | 2 +- vlib/v2/builder/util_test.v | 2 +- vlib/v2/eval/eval_test.v | 1 + vlib/v2/gen/cleanc/array_append_codegen_test.v | 2 +- vlib/v2/gen/cleanc/cleanc_test.v | 1 + vlib/v2/gen/cleanc/flag_enum_codegen_test.v | 2 +- vlib/v2/gen/cleanc/result_option_codegen_test.v | 2 +- vlib/v2/markused/markused_test.v | 1 + vlib/v2/ssa/optimize/phi_test.v | 1 + vlib/v2/ssa/optimize/verify_test.v | 1 + vlib/v2/transformer/transformer_test.v | 2 +- vlib/v2/transformer/transformer_v2_darwin_test.v | 1 + vlib/v2/types/checker_test.v | 2 +- 14 files changed, 14 insertions(+), 7 deletions(-) diff --git a/vlib/v2/abi/abi_test.v b/vlib/v2/abi/abi_test.v index 53e8b2f38..8c8ae769e 100644 --- a/vlib/v2/abi/abi_test.v +++ b/vlib/v2/abi/abi_test.v @@ -1,6 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. +// vtest build: macos module abi diff --git a/vlib/v2/builder/parse_test.v b/vlib/v2/builder/parse_test.v index d0147da87..68895ae81 100644 --- a/vlib/v2/builder/parse_test.v +++ b/vlib/v2/builder/parse_test.v @@ -1,4 +1,4 @@ -// vtest build: !linux && !windows +// vtest build: macos module builder import os diff --git a/vlib/v2/builder/util_test.v b/vlib/v2/builder/util_test.v index e53a335fd..a99edb1f8 100644 --- a/vlib/v2/builder/util_test.v +++ b/vlib/v2/builder/util_test.v @@ -1,4 +1,4 @@ -// vtest build: !linux && !windows +// vtest build: macos module builder import os diff --git a/vlib/v2/eval/eval_test.v b/vlib/v2/eval/eval_test.v index ebb394668..712db2ad6 100644 --- a/vlib/v2/eval/eval_test.v +++ b/vlib/v2/eval/eval_test.v @@ -1,3 +1,4 @@ +// vtest build: macos module eval import os diff --git a/vlib/v2/gen/cleanc/array_append_codegen_test.v b/vlib/v2/gen/cleanc/array_append_codegen_test.v index f1b0d5fc0..f530fbce9 100644 --- a/vlib/v2/gen/cleanc/array_append_codegen_test.v +++ b/vlib/v2/gen/cleanc/array_append_codegen_test.v @@ -1,4 +1,4 @@ -// vtest build: !linux && !windows +// vtest build: macos module cleanc import os diff --git a/vlib/v2/gen/cleanc/cleanc_test.v b/vlib/v2/gen/cleanc/cleanc_test.v index 41dbd99a9..91f3ad966 100644 --- a/vlib/v2/gen/cleanc/cleanc_test.v +++ b/vlib/v2/gen/cleanc/cleanc_test.v @@ -1,3 +1,4 @@ +// vtest build: macos module cleanc import v2.ast diff --git a/vlib/v2/gen/cleanc/flag_enum_codegen_test.v b/vlib/v2/gen/cleanc/flag_enum_codegen_test.v index ff0aef844..01fb23639 100644 --- a/vlib/v2/gen/cleanc/flag_enum_codegen_test.v +++ b/vlib/v2/gen/cleanc/flag_enum_codegen_test.v @@ -1,4 +1,4 @@ -// vtest build: !linux && !windows +// vtest build: macos module cleanc import os diff --git a/vlib/v2/gen/cleanc/result_option_codegen_test.v b/vlib/v2/gen/cleanc/result_option_codegen_test.v index adb760804..9df3f8931 100644 --- a/vlib/v2/gen/cleanc/result_option_codegen_test.v +++ b/vlib/v2/gen/cleanc/result_option_codegen_test.v @@ -1,4 +1,4 @@ -// vtest build: !linux && !windows +// vtest build: macos module cleanc import os diff --git a/vlib/v2/markused/markused_test.v b/vlib/v2/markused/markused_test.v index 512b3f85f..8654d2304 100644 --- a/vlib/v2/markused/markused_test.v +++ b/vlib/v2/markused/markused_test.v @@ -1,3 +1,4 @@ +// vtest build: macos module markused import v2.ast diff --git a/vlib/v2/ssa/optimize/phi_test.v b/vlib/v2/ssa/optimize/phi_test.v index 8101452dc..40ffeb684 100644 --- a/vlib/v2/ssa/optimize/phi_test.v +++ b/vlib/v2/ssa/optimize/phi_test.v @@ -1,6 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. +// vtest build: macos module optimize diff --git a/vlib/v2/ssa/optimize/verify_test.v b/vlib/v2/ssa/optimize/verify_test.v index 7b6ec02e2..2b245514c 100644 --- a/vlib/v2/ssa/optimize/verify_test.v +++ b/vlib/v2/ssa/optimize/verify_test.v @@ -1,6 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. +// vtest build: macos module optimize diff --git a/vlib/v2/transformer/transformer_test.v b/vlib/v2/transformer/transformer_test.v index 1916d4895..f658d37b8 100644 --- a/vlib/v2/transformer/transformer_test.v +++ b/vlib/v2/transformer/transformer_test.v @@ -1,7 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. -// vtest build: !windows +// vtest build: macos module transformer import os diff --git a/vlib/v2/transformer/transformer_v2_darwin_test.v b/vlib/v2/transformer/transformer_v2_darwin_test.v index 8f1a74b69..597f56df9 100644 --- a/vlib/v2/transformer/transformer_v2_darwin_test.v +++ b/vlib/v2/transformer/transformer_v2_darwin_test.v @@ -1,6 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. +// vtest build: macos module transformer import os diff --git a/vlib/v2/types/checker_test.v b/vlib/v2/types/checker_test.v index 9a5a7d493..a0e46b8f2 100644 --- a/vlib/v2/types/checker_test.v +++ b/vlib/v2/types/checker_test.v @@ -1,7 +1,7 @@ // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. -// vtest build: !windows +// vtest build: macos module types import os -- 2.39.5