Moved test suites into custom linker section

This simplifies the interaction between code generation and the
test-runner.

In theory it also reduces compilation dependencies, but internal tests
make this difficult.
This commit is contained in:
Christopher Haster
2022-05-14 03:37:55 -05:00
parent 0781f50edb
commit 4a42326797
3 changed files with 96 additions and 115 deletions
+1 -4
View File
@@ -34,13 +34,10 @@ struct test_suite {
const char *const *define_names;
size_t define_count;
const struct test_case *const *cases;
const struct test_case *cases;
size_t case_count;
};
extern const struct test_suite *test_suites[];
extern const size_t test_suite_count;
// access generated test defines
intmax_t test_predefine(size_t define);