YAIP/tests/all.test.c
Jonathan Hodgson 8a5bfe9b36 Now working for simple, non-encrypted requests
making requests to something like example.com over a non-encrypted
connection now works. Binary files are unlikely to work at the moment
although I haven't tried. Also, non-encrypted doesn't work.

I have also changed a little about how tests work. Requests tests now
display much better.
2022-01-18 21:45:58 +00:00

38 lines
791 B
C

// This stops the main definintion in the sub suites
#define MAINTEST
#include "munit/munit.h"
#include "config.test.c"
#ifndef REQUESTRESPONSE_C
#define REQUESTRESPONSE_C value
#include "requestresponse.test.c"
#endif /* ifndef REQUESTRESPONSE_C */
#include "request.test.c"
#include "response.test.c"
#include <string.h>
#include <stdio.h>
int main (int argc, char* argv[]) {
MunitSuite all_suites[] = {
config_test_suite,
request_test_suite,
response_test_suite,
requestresponse_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);
}