blob: 44d49690cf256da0ed8b92608c77d98755d10409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
CFLAGS += -I../
TESTS = \
bin/test-whitespace-input \
bin/test-short-keyword \
bin/test-duplicate-input \
bin/test-logic-and \
bin/test-logic-or \
bin/test-logic-nand \
bin/test-logic-nor \
bin/test-logic-xor \
bin/test-logic-not \
all: $(TESTS)
bin/test-%: test-%.c ../gate.o ../parser.o ../logic.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
.PHONY: clean
clean:
cd bin
rm -f $(TESTS)
for i in $(TESTS) ; do \
rm -f $$i.std{out,err}.log ; \
done
.PHONY: test
test:
./test.sh
|