summaryrefslogtreecommitdiff
path: root/regress/sys/kern/cmsgsize/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/cmsgsize/Makefile')
-rw-r--r--regress/sys/kern/cmsgsize/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/sys/kern/cmsgsize/Makefile b/regress/sys/kern/cmsgsize/Makefile
new file mode 100644
index 00000000000..bef83411305
--- /dev/null
+++ b/regress/sys/kern/cmsgsize/Makefile
@@ -0,0 +1,26 @@
+# $Id: Makefile,v 1.1 2018/09/30 08:26:40 vgross Exp $
+
+PROG= cmsgsize
+
+TESTIFACE = vether12
+TESTNET !!= jot -r -s '.' 2 0 255
+CMSG_ADDR = 10.${TESTNET}.3
+CLEANFILES = stamp-*
+
+REGRESS_TARGETS = run-regress \
+ run-regress-cleanup
+
+stamp-setup:
+ -! ${SUDO} ifconfig ${TESTIFACE} destroy
+ ${SUDO} ifconfig ${TESTIFACE} inet ${CMSG_ADDR}/24 up
+ ${SUDO} ifconfig ${TESTIFACE}
+ date >$@
+
+run-regress: ${PROG} stamp-setup
+ ./${PROG} ${CMSG_ADDR}
+
+run-regress-cleanup:
+ rm -f stamp-setup
+ -${SUDO} ifconfig ${TESTIFACE} destroy
+
+.include <bsd.regress.mk>