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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user