diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-09-24 12:54:14 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-09-24 12:54:14 +0000 |
commit | 36b76f882d69744b7159132564c5e100fa7606f3 (patch) | |
tree | 8df6cf5130b832df3d7b1751e6c1bfeb2a9afff6 /regress | |
parent | b145d67fc07b5582e085c24737b48818456db78b (diff) |
simple route regress test
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sbin/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/route/Makefile | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/regress/sbin/Makefile b/regress/sbin/Makefile index 367c885c84b..24e3e1980c1 100644 --- a/regress/sbin/Makefile +++ b/regress/sbin/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.3 2004/05/23 16:04:18 markus Exp $ +# $OpenBSD: Makefile,v 1.4 2004/09/24 12:54:13 markus Exp $ -SUBDIR+= ipsecadm pfctl +SUBDIR+= ipsecadm pfctl route install: diff --git a/regress/sbin/route/Makefile b/regress/sbin/route/Makefile new file mode 100644 index 00000000000..df915df376b --- /dev/null +++ b/regress/sbin/route/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1 2004/09/24 12:54:13 markus Exp $ + +NET= 192.0.3.0 +MASK= 255.255.255.0 +GW= 192.0.2.1 + +netmask: +.for cmd in add delete +.for mod in -net -dst + @${SUDO} route -nt ${cmd} ${mod} ${NET}/24 ${GW} + @${SUDO} route -nt ${cmd} ${mod} ${NET} -netmask ${MASK} ${GW} +.endfor +.endfor + +REGRESS_TARGETS=netmask +.PHONY: ${REGRESS_TARGETS} + +.include <bsd.regress.mk> |