genx
This commit is contained in:
8
Makefile
8
Makefile
@ -21,6 +21,8 @@ all: compiler
|
||||
|
||||
compiler: clean tmp $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)
|
||||
chmod +x ./genx.sh
|
||||
chmod +x ./test.sh
|
||||
|
||||
clean:
|
||||
rm -f $(EXE)
|
||||
@ -68,6 +70,7 @@ tmp/runner.o: src/runner.c src/runner.h tmp/flex.h tmp/grammar.tab.h
|
||||
# ----- Tests -----
|
||||
test:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/sprint1/test/ -diff
|
||||
./test.sh tests/sprint2/test/ -diff
|
||||
./test.sh tests/sprint3/test/ -diff
|
||||
@ -76,21 +79,26 @@ test:
|
||||
|
||||
test-s1:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/sprint1/test/ -diff
|
||||
|
||||
test-s2:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/sprint2/test/ -diff
|
||||
|
||||
test-s3:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/sprint3/test/ -diff
|
||||
|
||||
test-s4:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/sprint4/test/ -diff
|
||||
|
||||
test-given:
|
||||
chmod +x ./test.sh
|
||||
chmod +x ./genx.sh
|
||||
./test.sh tests/given/test/ -diff
|
||||
# -----------
|
Reference in New Issue
Block a user