Add gitignore. Rename test target to test
This commit is contained in:
parent
116e9e60c5
commit
668e928044
2 changed files with 4 additions and 1 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
netcalc
|
||||||
|
test/results
|
||||||
|
test/netcalc.pid
|
2
Makefile
2
Makefile
|
@ -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`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue