blob: dfd3ed9a67c31f873e262a801d0ae323cd28a326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include "tests.h"
int main(void)
{
struct TestContext context = { 0, 0 };
run_lexer_tests(&context);
run_parser_tests(&context);
run_sema_tests(&context);
run_codegen_tests(&context);
printf("\n%d checks, %d failure(s)\n", context.checks, context.failures);
return context.failures == 0 ? 0 : 1;
}
|