make
This commit is contained in:
36
Makefile
36
Makefile
@ -12,11 +12,6 @@ YACC := src/grammar.y
|
||||
EXE := alpha
|
||||
|
||||
OBJS := tmp/runner.o tmp/symbol_table.o tmp/grammar.tab.o tmp/lex.yy.o tmp/intermediate_code.o tmp/codegen.o
|
||||
|
||||
TESTS-S1 := $(wildcard tests/sprint1/test/*.alpha)
|
||||
TESTS-S2 := $(wildcard tests/sprint2/test/*.alpha)
|
||||
TESTS-S3 := $(wildcard tests/sprint3/test/*.alpha)
|
||||
TESTS-S4 := $(wildcard tests/sprint4/test/*.alpha)
|
||||
# ----------
|
||||
|
||||
|
||||
@ -71,35 +66,30 @@ tmp/runner.o: src/runner.c src/runner.h tmp/flex.h tmp/grammar.tab.h
|
||||
|
||||
# ----- Tests -----
|
||||
test:
|
||||
chmod +x ./check.sh
|
||||
chmod +x ./test.sh
|
||||
$(foreach test, $(TESTS-S1), (./$(EXE) -tok -debug $(test) || true);)
|
||||
./test.sh sp2
|
||||
./test.sh sp3
|
||||
./test.sh sp4
|
||||
./check.sh
|
||||
./test.sh tests/sprint1/test/ -diff
|
||||
./test.sh tests/sprint2/test/ -diff
|
||||
./test.sh tests/sprint3/test/ -diff
|
||||
./test.sh tests/sprint4/test/ -diff
|
||||
./test.sh tests/given/test/ -diff
|
||||
|
||||
test-s1:
|
||||
chmod +x ./check.sh
|
||||
chmod +x ./test.sh
|
||||
$(foreach test, $(TESTS-S1), (./$(EXE) -tok -debug $(test) || true);)
|
||||
./check.sh sp1
|
||||
./test.sh tests/sprint1/test/ -diff
|
||||
|
||||
test-s2:
|
||||
chmod +x ./check.sh
|
||||
chmod +x ./test.sh
|
||||
./test.sh sp2
|
||||
./check.sh sp2
|
||||
./test.sh tests/sprint2/test/ -diff
|
||||
|
||||
test-s3:
|
||||
chmod +x ./check.sh
|
||||
chmod +x ./test.sh
|
||||
./test.sh sp3
|
||||
./check.sh sp3
|
||||
./test.sh tests/sprint3/test/ -diff
|
||||
|
||||
test-s4:
|
||||
chmod +x ./check.sh
|
||||
chmod +x ./test.sh
|
||||
./test.sh sp4
|
||||
./check.sh sp4
|
||||
./test.sh tests/sprint4/test/ -diff
|
||||
|
||||
test-given:
|
||||
chmod +x ./test.sh
|
||||
./test.sh tests/given/test/ -diff
|
||||
# -----------
|
Reference in New Issue
Block a user