v test-self: support skipping specific tests for amd64/!amd64 (closure_test.v on m1 for now)

pull/11323/head
Delyan Angelov 2021-08-27 09:47:04 +03:00
parent 16455a7660
commit 5f90d5702e
1 changed files with 13 additions and 0 deletions

View File

@ -119,6 +119,13 @@ const (
skip_on_non_macos = [ skip_on_non_macos = [
'do_not_remove', 'do_not_remove',
] ]
skip_on_amd64 = [
'do_not_remove',
]
skip_on_non_amd64 = [
'vlib/v/tests/closure_test.v' /* not implemented yet */,
'do_not_remove',
]
) )
// NB: musl misses openssl, thus the http tests can not be done there // NB: musl misses openssl, thus the http tests can not be done there
@ -198,6 +205,12 @@ fn main() {
if os.getenv('V_CI_UBUNTU_MUSL').len > 0 { if os.getenv('V_CI_UBUNTU_MUSL').len > 0 {
tsession.skip_files << skip_on_ubuntu_musl tsession.skip_files << skip_on_ubuntu_musl
} }
$if !amd64 {
tsession.skip_files << skip_on_non_amd64
}
$if amd64 {
tsession.skip_files << skip_on_amd64
}
$if !linux { $if !linux {
tsession.skip_files << skip_on_non_linux tsession.skip_files << skip_on_non_linux
} }