summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-09-24 12:54:14 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-09-24 12:54:14 +0000
commit36b76f882d69744b7159132564c5e100fa7606f3 (patch)
tree8df6cf5130b832df3d7b1751e6c1bfeb2a9afff6 /regress
parentb145d67fc07b5582e085c24737b48818456db78b (diff)
simple route regress test
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/Makefile4
-rw-r--r--regress/sbin/route/Makefile18
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>