summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-03-21 18:49:31 -0400
committerjakob <jakob@memeware.net>2017-03-21 18:49:31 -0400
commitfab56e85955ccb3a2533aad00671cff04516aa70 (patch)
tree862b00d7f6ef78194b1b6f1a9cd7e331abc75769 /Makefile
parent7f63c3b82d229b3353df4abb7612917aed01f937 (diff)
Implemented testing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fdff5d7..c05ff2d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,5 +9,19 @@ all: skullfuck
skullfuck: skullfuck.c
$(CC) $(CFLAGS) $(MACROS) -o skullfuck skullfuck.c
+run_tests: run_tests.c
+ $(CC) $(CFLAGS) -o run_tests run_tests.c
+
+hello: test/hello_world.bf
+ ./skullfuck -o hello test/hello_world.bf
+
+rot13: test/rot13.bf
+ ./skullfuck -o rot13 test/rot13.bf
+
+test: run_tests hello rot13
+ ./run_tests
+
clean: skullfuck
rm -f skullfuck
+
+.PHONY: clean test