removed most seg faults
This commit is contained in:
9
Makefile
9
Makefile
@ -6,6 +6,7 @@ CFLAGS :=
|
||||
YACC := bison
|
||||
|
||||
TESTS-S1 := $(wildcard tests/sprint1/test/*.alpha)
|
||||
TESTS-S3 := $(wildcard tests/sprint3/test/*.alpha)
|
||||
TESTS-S2 := $(wildcard tests/sprint2/test/*.alpha)
|
||||
|
||||
compiler: clean runner
|
||||
@ -32,13 +33,19 @@ runner: tmp/lex.yy.c tmp/runner.o tmp/symbol_table.o
|
||||
debug: CFLAGS += -DDEBUG=1
|
||||
debug: clean compiler
|
||||
|
||||
test: test-s1 test-s2
|
||||
test: test-s1 test-s3 test-s2
|
||||
|
||||
test-s1:
|
||||
chmod +x ./check.sh
|
||||
$(foreach test, $(TESTS-S1), ./$(EXE) -tok $(test);)
|
||||
./check.sh
|
||||
|
||||
|
||||
test-s3:
|
||||
chmod +x ./check.sh
|
||||
$(foreach test, $(TESTS-S3), ./$(EXE) -st $(test);)
|
||||
./check.sh
|
||||
|
||||
test-s2:
|
||||
chmod +x ./check.sh
|
||||
$(foreach test, $(TESTS-S2), ./$(EXE) -st $(test);)
|
||||
|
Reference in New Issue
Block a user