diff options
author | Christopher Haster <chaster@utexas.edu> | 2022-04-25 07:34:28 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2022-06-06 09:35:00 +0300 |
commit | 5812d2b5cfdbab12491c6eb00340a877fc9fa8de (patch) | |
tree | b686e3f432a6d399b35348b7dee7db502c04edc3 /.gitignore | |
parent | 64436933e2845da3d691eaebb558fc9939da6af3 (diff) |
Reworked how multi-layered defines work in the test-runner
In the test-runner, defines are parameterized constants (limited
to integers) that are generated from the test suite tomls resulting
in many permutations of each test.
In order to make this efficient, these defines are implemented as
multi-layered lookup tables, using per-layer/per-scope indirect
mappings. This lets the test-runner and test suites define their
own defines with compile-time indexes independently. It also makes
building of the lookup tables very efficient, since they can be
incrementally populated as we expand the test permutations.
The four current define layers and when we need to build them:
layer defines predefine_map define_map
user-provided overrides per-run per-run per-suite
per-permutation defines per-perm per-case per-perm
per-geometry defines per-perm compile-time -
default defines compile-time compile-time -
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -14,3 +14,4 @@ test.c tests/*.toml.* scripts/__pycache__ .gdb_history +runners/test_runner |