File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424const vroot = os.dir (os.real_path (os.getenv_opt ('VEXE' ) or { @VEXE }))
2525
26+ const temporarily_disabled_self_test_vlib_dirs = ['v2_toberemoved' , 'v3' ]
27+
2628const essential_list = [
2729 'cmd/tools/vvet/vet_test.v' ,
2830 'cmd/tools/vdoc/document/doc_test.v' ,
@@ -388,10 +390,12 @@ fn main() {
388390 mut tsession := testing.new_test_session (vargs.join (' ' ), true )
389391 tsession.exec_mode = .compile_and_run
390392 tsession.files << all_test_files.filter (! it .contains ('testdata' + os.path_separator))
391- // v2 has its own driver at `cmd/v2/test_all.vsh` and is still under heavy
392- // development, so its tests are excluded from `v test-self`.
393- v2_dir_fragment := '${os .path_separator }vlib${os .path_separator }v2_toberemoved${os .path_separator }'
394- tsession.skip_files << tsession.files.filter (it .contains (v2_ dir_fragment))
393+ // v2 and v3 have their own drivers and are still under heavy development,
394+ // so their tests are excluded from `v test-self`.
395+ for test_dir in temporarily_disabled_self_test_vlib_dirs {
396+ dir_fragment := '${os .path_separator }vlib${os .path_separator }${test_dir }${os .path_separator }'
397+ tsession.skip_files << tsession.files.filter (it .contains (dir_fragment))
398+ }
395399 if cfg.werror {
396400 tsession.custom_defines << 'self_werror'
397401 }
You can’t perform that action at this time.
0 commit comments