tests: add parser/tests/, move checker_test.v=>compiler_errors_test.v
parent
2785a5bf65
commit
e73ed56231
|
@ -12,11 +12,14 @@ fn test_all() {
|
||||||
global_tests := get_tests_in_dir(global_dir)
|
global_tests := get_tests_in_dir(global_dir)
|
||||||
run_dir := '$classic_dir/run'
|
run_dir := '$classic_dir/run'
|
||||||
run_tests := get_tests_in_dir(run_dir)
|
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
|
// -prod so that warns are errors
|
||||||
total_errors += check_path(vexe, classic_dir, '-prod', '.out', classic_tests)
|
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, 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, 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, run_dir, 'run', '.run.out', run_tests)
|
||||||
|
total_errors += check_path(vexe, parser_dir, '-prod', '.out', parser_tests)
|
||||||
assert total_errors == 0
|
assert total_errors == 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Put here tests, ensuring that the v's parser errors for certain situations.
|
Loading…
Reference in New Issue