Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2019-07-12 17:45:28 +1000
committerOlivier Mehani <shtrom@ssji.net>2019-07-12 17:45:28 +1000
commit4d4bffe9305b10110d7a17ec175c59eb0bab70a5 (patch)
treed7b63a777c6bebf601765c2a9c1934ddd449a2e0
parent36d97a354bedb8a83b0190e026bfd6e6c8ebc770 (diff)
Make test-% depend on test-up
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2fecbfe..3e685bc 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,9 @@ test: test-unit test-integration
test-unit: rfc6555_test
./rfc6555_test
-test-integration: test-up $(TEST_TARGETS) test-down
+test-integration: $(TEST_TARGETS) test-down
+test-%: % test-up
+ ./$(*) localhost $(TESTPORT)
test-up:
-sudo iptables -I INPUT -p tcp --dport $(TESTPORT) -j ACCEPT
-sudo ip6tables -I INPUT -p tcp --dport $(TESTPORT) -j DROP
@@ -34,8 +36,6 @@ test-down:
killall -9 nc # XXX: dodgy
-sudo ip6tables -D INPUT -p tcp --dport $(TESTPORT) -j DROP
-sudo iptables -D INPUT -p tcp --dport $(TESTPORT) -j ACCEPT
-test-%: %
- ./$(*) localhost $(TESTPORT)
clean:
rm -f *.o