checker: bugfix for __global ( cpu_get_id fn () u64 ) ... cpu_get_id()

Support new vlib/v/checker/tests/globals_run/ folder, for .vv files
that will be run with `-enable-globals run`, and the results will be
compared with their matching `.run.out` files.

Add regression tests.
This commit is contained in:
Delyan Angelov 2021-06-26 01:18:51 +03:00
parent 6890756cd2
commit 19dca026a9
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
7 changed files with 80 additions and 2 deletions

View file

@ -80,8 +80,14 @@ Run `vlib` module tests, *including* the compiler tests.
## `v vlib/v/compiler_errors_test.v`
This runs tests for:
* `checker/tests/*.vv`
* `parser/tests/*.vv`
* `vlib/v/checker/tests/*.vv`
* `vlib/v/parser/tests/*.vv`
### Special folders that compiler_errors_test.v will try to
run/compile with specific options:
vlib/v/checker/tests/globals_run/ - `-enable-globals run`;
results stored in `.run.out` files, matching the .vv ones.
## `v test-all`