summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 25c1690..053552f 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,14 +1,26 @@
CFLAGS += -I../
TESTS = \
- test-whitespace-input
+ test-whitespace-input \
+ test-logic-and \
+ test-logic-or \
+ test-logic-nand \
+ test-logic-nor \
+ test-logic-xor \
+ test-logic-not \
-all: clean $(TESTS)
-test-whitespace-input: ../gate.o ../parser.o ../logic.o
+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: