blob: 6f04c4aae138b601c5a49eb124bd8fb5826522a6 (
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
|
CFLAGS += -I../
TESTS = \
test-whitespace-input \
test-short-keyword \
test-duplicate-input \
test-logic-and \
test-logic-or \
test-logic-nand \
test-logic-nor \
test-logic-xor \
test-logic-not \
all: $(TESTS)
test-%: test-%.c ../gate.o ../parser.o ../logic.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
.PHONY: clean
clean:
rm -f $(TESTS)
for i in $(TESTS) ; do \
rm -f $$i.std{out,err}.log ; \
done
.PHONY: test
test:
./test.sh
|