#include "test_framework.h"
#include <stdio.h>
int tests_run = 0;
int tests_passed = 0;
int tests_failed = 0;
void test_summary(void) {
printf("\n=========================================\n");
printf("Test Results: %d/%d passed\n", tests_passed, tests_run);
if (tests_failed > 0) {
printf("FAILED: %d tests failed\n", tests_failed);
} else {
printf("SUCCESS: All tests passed\n");
}
printf("=========================================\n");
}
extern void run_http_tests(void);
extern void run_buffer_tests(void);
extern void run_config_tests(void);
extern void run_routing_tests(void);
int main(int argc, char *argv[]) {
(void)argc;
(void)argv;
printf("\n");
printf("=========================================\n");
printf(" RProxy Enterprise Unit Tests\n");
printf("=========================================\n");
run_buffer_tests();
run_http_tests();
run_config_tests();
run_routing_tests();
test_summary();
return tests_failed > 0 ? 1 : 0;
}