From fab56e85955ccb3a2533aad00671cff04516aa70 Mon Sep 17 00:00:00 2001 From: jakob Date: Tue, 21 Mar 2017 18:49:31 -0400 Subject: Implemented testing. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Makefile') 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 -- cgit v1.3