tests: add parser/tests/, move checker_test.v=>compiler_errors_test.v

pull/5388/head
Delyan Angelov 2020-06-15 10:58:34 +03:00
parent 2785a5bf65
commit e73ed56231
2 changed files with 4 additions and 0 deletions

View File

@ -12,11 +12,14 @@ fn test_all() {
global_tests := get_tests_in_dir(global_dir)
run_dir := '$classic_dir/run'
run_tests := get_tests_in_dir(run_dir)
parser_dir := 'vlib/v/parser/tests'
parser_tests := get_tests_in_dir(parser_dir)
// -prod so that warns are errors
total_errors += check_path(vexe, classic_dir, '-prod', '.out', classic_tests)
total_errors += check_path(vexe, global_dir, '--enable-globals', '.out', global_tests)
total_errors += check_path(vexe, classic_dir, '--enable-globals run', '.run.out', ['globals_error.vv'])
total_errors += check_path(vexe, run_dir, 'run', '.run.out', run_tests)
total_errors += check_path(vexe, parser_dir, '-prod', '.out', parser_tests)
assert total_errors == 0
}

View File

@ -0,0 +1 @@
Put here tests, ensuring that the v's parser errors for certain situations.