From e446eb59534aa60d50b7ea646b601e071168a8db Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 14 Aug 2023 18:52:30 +0300 Subject: [PATCH] tools: add support for `.skip_should_compile_all` files to `./v should-compile-all .` --- cmd/tools/vshould-compile-all.v | 5 +++++ .../tests/bench/math_big_gcd/prime/.skip_should_compile_all | 0 2 files changed, 5 insertions(+) create mode 100644 vlib/v/tests/bench/math_big_gcd/prime/.skip_should_compile_all diff --git a/cmd/tools/vshould-compile-all.v b/cmd/tools/vshould-compile-all.v index 59e5b5564b..b87ecc8604 100644 --- a/cmd/tools/vshould-compile-all.v +++ b/cmd/tools/vshould-compile-all.v @@ -28,6 +28,11 @@ fn main() { } mut failed_commands := []string{} for idx, example in files { + folder_of_example := os.dir(example) + if os.is_file(os.join_path_single(folder_of_example, '.skip_should_compile_all')) { + println('>>> skipping file: ${example}, because a `.skip_should_compile_all` file is present next to it.') + continue + } cmd := '${os.quoted_path(@VEXE)} ${os.quoted_path(example)}' println('> compiling ${idx + 1:4}/${files.len:-4}: ${cmd}') if 0 != os.system(cmd) { diff --git a/vlib/v/tests/bench/math_big_gcd/prime/.skip_should_compile_all b/vlib/v/tests/bench/math_big_gcd/prime/.skip_should_compile_all new file mode 100644 index 0000000000..e69de29bb2