This commit is contained in:
Scarlett
2025-05-04 18:41:02 -04:00
parent 8c6372fcfd
commit 3f7c79b801
3 changed files with 86 additions and 6 deletions

View File

@ -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
# -----------