1 #include "lwip_check.h"
3 #include "udp/test_udp.h"
4 #include "tcp/test_tcp.h"
5 #include "tcp/test_tcp_oos.h"
15 suite_getter_fn* suites[] = {
20 size_t num = sizeof(suites)/sizeof(void*);
21 LWIP_ASSERT("No suites defined", num > 0);
25 sr = srunner_create((suites[0])());
26 for(i = 1; i < num; i++) {
27 srunner_add_suite(sr, ((suite_getter_fn*)suites[i])());
30 #ifdef LWIP_UNITTESTS_NOFORK
31 srunner_set_fork_status(sr, CK_NOFORK);
33 #ifdef LWIP_UNITTESTS_FORK
34 srunner_set_fork_status(sr, CK_FORK);
37 srunner_run_all(sr, CK_NORMAL);
38 number_failed = srunner_ntests_failed(sr);
40 return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;