From 36f1750de765cda8d7a6bc8bb02519c5ac60c735 Mon Sep 17 00:00:00 2001 From: David Legrand <1110600+davlgd@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:36:03 +0100 Subject: [PATCH] vtest-self: add sandboxed packaging case (#21059) --- cmd/tools/vtest-self.v | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 81fd45100f66e2..1c4b2a7df1eebf 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -6,6 +6,7 @@ import testing const github_job = os.getenv('GITHUB_JOB') const just_essential = os.getenv('VTEST_JUST_ESSENTIAL') != '' + || os.getenv('VTEST_SANDBOXED_PACKAGING') != '' const essential_list = [ 'cmd/tools/vvet/vet_test.v', @@ -338,6 +339,12 @@ const skip_on_non_amd64_or_arm64 = [ 'vlib/sync/many_times_test.v', 'do_not_remove', ] +const skip_on_sandboxed_packaging = [ + 'do_not_remove', + 'vlib/v/slow_tests/inout/compiler_test.v', + 'vlib/v/compiler_errors_test.v', + 'vlib/v/gen/c/coutput_test.v', +] // Note: musl misses openssl, thus the http tests can not be done there // Note: http_httpbin_test.v: fails with 'cgen error: json: map_string_string is not struct' @@ -444,6 +451,9 @@ fn main() { if os.getenv('V_CI_UBUNTU_MUSL').len > 0 { tsession.skip_files << skip_on_ubuntu_musl } + if os.getenv('VTEST_SANDBOXED_PACKAGING').len > 0 { + tsession.skip_files << skip_on_sandboxed_packaging + } $if !amd64 && !arm64 { tsession.skip_files << skip_on_non_amd64_or_arm64 }