From 668e928044527e8b4b16a3666cc5323f9454d158 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 24 Oct 2018 12:59:42 +0200 Subject: [PATCH] Add gitignore. Rename test target to test --- .gitignore | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..67d7b01 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +netcalc +test/results +test/netcalc.pid diff --git a/Makefile b/Makefile index ee87155..0a7864d 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ clean: $(FILE): $(FILE).c gcc $^ -o $@ -tests: $(FILE) +test: $(FILE) ./$(FILE) & echo $$! > test/$(FILE).pid ./$(FILE) -c < test/cases > test/results kill `cat test/$(FILE).pid`