Integrate unit tests in ci script

This commit is contained in:
o9000
2017-12-28 19:28:57 +01:00
parent 8e0bdcaedd
commit c41d75e54e
5 changed files with 52 additions and 4 deletions

View File

@@ -50,7 +50,10 @@ void handle_cli_arguments(int argc, char **argv)
fprintf(stdout, "tint2 version %s\n", VERSION_STRING);
exit(0);
} else if (strcmp(argv[i], "--test") == 0) {
run_all_tests();
run_all_tests(false);
exit(0);
} else if (strcmp(argv[i], "--test-verbose") == 0) {
run_all_tests(true);
exit(0);
} else if (strcmp(argv[i], "-c") == 0) {
if (i + 1 < argc) {