57673718cd
- [A] Appveyour integration - [D] Deleted cmocka - [F] Fixed c++ warnings
26 lines
858 B
C
26 lines
858 B
C
#include "tests.h"
|
|
#include <stdio.h>
|
|
|
|
struct test_case test_suit [] = {
|
|
{"test_vector_basic", test_vector_basic},
|
|
{"test_table_sizes", test_table_sizes},
|
|
{"test_table_geometry", test_table_geometry},
|
|
{"test_table_basic", test_table_basic},
|
|
{"test_table_options", test_table_options},
|
|
{"test_string_buffer", test_string_buffer},
|
|
};
|
|
|
|
int main(void) {
|
|
int n_tests = sizeof(test_suit) / sizeof(test_suit[0]);
|
|
fprintf(stderr, "[==========] Running %d test(s).\n", n_tests);
|
|
int i;
|
|
for (i = 0; i < n_tests; ++i) {
|
|
fprintf(stderr, "[ RUN ] %s\n", test_suit[i].name);
|
|
test_suit[i].test(NULL);
|
|
fprintf(stderr, "[ OK ] %s\n", test_suit[i].name);
|
|
}
|
|
fprintf(stderr, "[==========] %d test(s) run.\n", n_tests);
|
|
fprintf(stderr, "[ PASSED ] %d test(s).\n", n_tests);
|
|
return 0;
|
|
}
|