Add gitignore. Rename test target to test

This commit is contained in:
Tim Schubert 2018-10-24 12:59:42 +02:00
parent 116e9e60c5
commit 668e928044
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
netcalc
test/results
test/netcalc.pid

View file

@ -9,7 +9,7 @@ clean:
$(FILE): $(FILE).c $(FILE): $(FILE).c
gcc $^ -o $@ gcc $^ -o $@
tests: $(FILE) test: $(FILE)
./$(FILE) & echo $$! > test/$(FILE).pid ./$(FILE) & echo $$! > test/$(FILE).pid
./$(FILE) -c < test/cases > test/results ./$(FILE) -c < test/cases > test/results
kill `cat test/$(FILE).pid` kill `cat test/$(FILE).pid`