YAIP/tests/all.test.c
Jonathan Hodgson e42705280c Add tests for config
I have started writing tests for the config functions. This has resulted
in a few changes to the config code (tests working I guess)

I have also added a special "all" config file which (as the name
suggests) runs all test suites

In the makefile I have added the compiled test files to the clean target
and added targets for building and running tests
2021-12-28 00:28:56 +00:00

28 lines
532 B
C

// This stops the main definintion in the sub suites
#define MAINTEST
#include "munit/munit.h"
#include "config.test.c"
#include <string.h>
#include <stdio.h>
int main (int argc, char* argv[]) {
MunitSuite all_suites[] = {
config_test_suite,
{ NULL, NULL, NULL, 0, MUNIT_SUITE_OPTION_NONE }
};
MunitSuite all_test_suite = {
"", /* name */
NULL, /* tests */
all_suites, /* suites */
1, /* iterations */
MUNIT_SUITE_OPTION_NONE /* options */
};
return munit_suite_main(&all_test_suite, NULL, argc, argv);
}