mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892)
This commit is contained in:
@@ -15,10 +15,10 @@ const vet_known_failing_windows = [
|
||||
'vlib/v/gen/js/tests/testdata/compare_ints.v',
|
||||
'vlib/v/gen/js/tests/testdata/hw.v',
|
||||
'vlib/v/gen/js/tests/testdata/string_methods.v',
|
||||
'vlib/v/tests/inout/vscript_using_generics_in_os.vsh',
|
||||
'vlib/v/slow_tests/inout/vscript_using_generics_in_os.vsh',
|
||||
'vlib/v/tests/project_with_modules_having_submodules/bin/main.vsh',
|
||||
'vlib/v/tests/valgrind/simple_interpolation_script_mode.v',
|
||||
'vlib/v/tests/valgrind/simple_interpolation_script_mode_more_scopes.v',
|
||||
'vlib/v/slow_tests/valgrind/simple_interpolation_script_mode.v',
|
||||
'vlib/v/slow_tests/valgrind/simple_interpolation_script_mode_more_scopes.v',
|
||||
]
|
||||
|
||||
const vet_folders = [
|
||||
|
@@ -80,7 +80,7 @@ const (
|
||||
'vlib/v/gen/native/macho_test.v',
|
||||
'vlib/v/gen/native/tests/native_test.v',
|
||||
'vlib/v/pkgconfig/pkgconfig_test.v',
|
||||
'vlib/v/tests/inout/compiler_test.v',
|
||||
'vlib/v/slow_tests/inout/compiler_test.v',
|
||||
'vlib/x/json2/json2_test.v',
|
||||
]
|
||||
skip_test_files = [
|
||||
@@ -102,11 +102,11 @@ const (
|
||||
'vlib/v/live/live_test.v',
|
||||
'vlib/v/parser/v_parser_test.v',
|
||||
'vlib/v/scanner/scanner_test.v',
|
||||
'vlib/v/tests/inout/compiler_test.v',
|
||||
'vlib/v/tests/prod_test.v',
|
||||
'vlib/v/tests/profile/profile_test.v',
|
||||
'vlib/v/tests/repl/repl_test.v',
|
||||
'vlib/v/tests/valgrind/valgrind_test.v',
|
||||
'vlib/v/slow_tests/inout/compiler_test.v',
|
||||
'vlib/v/slow_tests/prod_test.v',
|
||||
'vlib/v/slow_tests/profile/profile_test.v',
|
||||
'vlib/v/slow_tests/repl/repl_test.v',
|
||||
'vlib/v/slow_tests/valgrind/valgrind_test.v',
|
||||
]
|
||||
skip_with_fsanitize_memory = [
|
||||
'vlib/net/tcp_simple_client_server_test.v',
|
||||
@@ -159,7 +159,7 @@ const (
|
||||
'do_not_remove',
|
||||
]
|
||||
skip_on_musl = [
|
||||
'vlib/v/tests/profile/profile_test.v',
|
||||
'vlib/v/slow_tests/profile/profile_test.v',
|
||||
'vlib/gg/draw_fns_api_test.v',
|
||||
'vlib/v/tests/skip_unused/gg_code.vv',
|
||||
]
|
||||
|
@@ -87,7 +87,7 @@ fn main() {
|
||||
|
||||
// vet_file vets the file read from `path`.
|
||||
fn (mut vt Vet) vet_file(path string) {
|
||||
if path.contains('/tests/') && !vt.opt.is_force {
|
||||
if !vt.opt.is_force && (path.contains('/tests/') || path.contains('/slow_tests/')) {
|
||||
// skip all /tests/ files, since usually their content is not
|
||||
// important enough to be documented/vetted, and they may even
|
||||
// contain intentionally invalid code.
|
||||
|
Reference in New Issue
Block a user