tests: skip http tests on musl targets for now
parent
e33805b2b3
commit
4b982890e2
|
@ -5,22 +5,29 @@ import testing
|
||||||
import v.pref
|
import v.pref
|
||||||
|
|
||||||
const (
|
const (
|
||||||
skip_test_files = [
|
skip_test_files = [
|
||||||
'vlib/arrays/arrays_test.v',
|
|
||||||
'vlib/v/tests/enum_bitfield_test.v',
|
'vlib/v/tests/enum_bitfield_test.v',
|
||||||
'vlib/v/tests/num_lit_call_method_test.v',
|
'vlib/v/tests/num_lit_call_method_test.v',
|
||||||
'vlib/v/tests/pointers_test.v',
|
'vlib/v/tests/pointers_test.v',
|
||||||
'vlib/v/tests/type_test.v',
|
'vlib/v/tests/type_test.v',
|
||||||
'vlib/v/tests/pointers_str_test.v',
|
'vlib/v/tests/pointers_str_test.v',
|
||||||
'vlib/net/http/http_httpbin_test.v', // fails on ubuntu-musl, because of missing openssl
|
'vlib/arrays/arrays_test.v',
|
||||||
'vlib/net/http/cookie_test.v', // ok, but should be skipped on ubuntu-musl, since there is no openssl there
|
'vlib/net/http/http_httpbin_test.v'
|
||||||
'vlib/clipboard/clipboard_test.v',
|
|
||||||
'vlib/sqlite/sqlite_test.v',
|
|
||||||
]
|
]
|
||||||
skip_on_linux = []string{}
|
skip_on_musl = [
|
||||||
skip_on_non_linux = []string{}
|
'vlib/net/http/http_test.v',
|
||||||
|
'vlib/net/http/cookie_test.v'
|
||||||
|
]
|
||||||
|
skip_on_linux = []string{}
|
||||||
|
skip_on_non_linux = []string{}
|
||||||
|
skip_on_windows = []string{}
|
||||||
|
skip_on_non_windows = []string{}
|
||||||
|
skip_on_macos = []string{}
|
||||||
|
skip_on_non_macos = []string{}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// NB: musl misses openssl, thus the http tests can not be done there
|
||||||
|
// NB: http_httpbin_test.v: fails with 'cgen error: json: map_string_string is not struct'
|
||||||
fn main() {
|
fn main() {
|
||||||
vexe := pref.vexe_path()
|
vexe := pref.vexe_path()
|
||||||
vroot := os.dir(vexe)
|
vroot := os.dir(vexe)
|
||||||
|
@ -29,16 +36,32 @@ fn main() {
|
||||||
args_string := args[1..].join(' ')
|
args_string := args[1..].join(' ')
|
||||||
cmd_prefix := args_string.all_before('test-fixed')
|
cmd_prefix := args_string.all_before('test-fixed')
|
||||||
title := 'testing all fixed tests'
|
title := 'testing all fixed tests'
|
||||||
all_test_files := os.walk_ext( os.join_path(vroot,'vlib'), '_test.v')
|
all_test_files := os.walk_ext(os.join_path(vroot, 'vlib'), '_test.v')
|
||||||
testing.eheader(title)
|
testing.eheader(title)
|
||||||
mut tsession := testing.new_test_session(cmd_prefix)
|
mut tsession := testing.new_test_session(cmd_prefix)
|
||||||
tsession.files << all_test_files
|
tsession.files << all_test_files
|
||||||
tsession.skip_files << skip_test_files
|
tsession.skip_files << skip_test_files
|
||||||
|
//
|
||||||
|
if os.getenv('V_CI_MUSL').len > 0 {
|
||||||
|
tsession.skip_files << skip_on_musl
|
||||||
|
}
|
||||||
$if !linux {
|
$if !linux {
|
||||||
tsession.skip_files << skip_on_non_linux
|
tsession.skip_files << skip_on_non_linux
|
||||||
}
|
}
|
||||||
$if linux {
|
$if linux {
|
||||||
tsession.skip_files << skip_on_linux
|
tsession.skip_files << skip_on_linux
|
||||||
|
}
|
||||||
|
$if windows {
|
||||||
|
tsession.skip_files << skip_on_windows
|
||||||
|
}
|
||||||
|
$if !windows {
|
||||||
|
tsession.skip_files << skip_on_non_windows
|
||||||
|
}
|
||||||
|
$if macos {
|
||||||
|
tsession.skip_files << skip_on_macos
|
||||||
|
}
|
||||||
|
$if !macos {
|
||||||
|
tsession.skip_files << skip_on_non_macos
|
||||||
}
|
}
|
||||||
tsession.test()
|
tsession.test()
|
||||||
eprintln(tsession.benchmark.total_message(title))
|
eprintln(tsession.benchmark.total_message(title))
|
||||||
|
|
Loading…
Reference in New Issue