diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-07-12 21:00:47 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-07-12 21:00:47 +0000 |
commit | d719835b4f6a62a6149064eb273956525952de01 (patch) | |
tree | 306e320dc144c316d29a8358c82ad27f83a73832 /regress/sys/net/pf_divert | |
parent | 83935d6c117c19e2b2e47488c8433313e5a35c97 (diff) |
Use a saner and consistent address layout for my network tests that
run over 4 machines. Add a check-setup target to verify that
interface addresses and routes are properly set up.
Diffstat (limited to 'regress/sys/net/pf_divert')
-rw-r--r-- | regress/sys/net/pf_divert/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/sys/net/pf_divert/Makefile b/regress/sys/net/pf_divert/Makefile index 97eda670b9a..ad3f65cdca4 100644 --- a/regress/sys/net/pf_divert/Makefile +++ b/regress/sys/net/pf_divert/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 2014/07/11 20:41:20 bluhm Exp $ +# $OpenBSD: Makefile,v 1.10 2014/07/12 21:00:46 bluhm Exp $ # The following ports must be installed for the regression tests: # p5-IO-Socket-INET6 object interface for AF_INET and AF_INET6 domain sockets @@ -26,6 +26,8 @@ regress: # local and remote. # You must have an anchor "regress" for the divert rules in the pf.conf # of the remote machine. The kernel of the remote machine gets testet. +# +# Run make check-setup to see if you got the setup correct. LOCAL_ADDR ?= REMOTE_ADDR ?= @@ -145,6 +147,7 @@ stamp-syntax: ${ARGS} # Check wether the address, route and remote setup is correct check-setup: + @echo '\n======== $@ ========' ping -n -c 1 ${LOCAL_ADDR} ping -n -c 1 ${REMOTE_ADDR} ping6 -n -c 1 ${LOCAL_ADDR6} |