1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: test-self (V compiled with -fsanitize=memory) (#9423)

This commit is contained in:
ka-weihe
2021-03-22 23:05:48 +01:00
committed by GitHub
parent a00c80b98f
commit 801da20fd9
2 changed files with 15 additions and 5 deletions

View File

@@ -156,6 +156,7 @@ const (
'vlib/readline/readline_test.v',
'vlib/vweb/tests/vweb_test.v',
]
skip_with_msan_compiler = []string{}
skip_test_files = []string{}
skip_on_musl = [
'vlib/v/tests/profile/profile_test.v',
@@ -217,10 +218,14 @@ fn main() {
mut sanitize_address := false
mut sanitize_undefined := false
mut asan_compiler := false
mut msan_compiler := false
for arg in args {
if '-asan-compiler' in arg {
asan_compiler = true
}
if '-msan-compiler' in arg {
msan_compiler = true
}
if '-Werror' in arg {
werror = true
}
@@ -249,6 +254,9 @@ fn main() {
if asan_compiler {
tsession.skip_files << skip_with_asan_compiler
}
if msan_compiler {
tsession.skip_files << skip_with_msan_compiler
}
// println(tsession.skip_files)
if os.getenv('V_CI_MUSL').len > 0 {
tsession.skip_files << skip_on_musl