Infer all rdomains from the environment with sane defaults.
authoranton <anton@openbsd.org>
Wed, 28 Feb 2024 06:33:39 +0000 (06:33 +0000)
committeranton <anton@openbsd.org>
Wed, 28 Feb 2024 06:33:39 +0000 (06:33 +0000)
regress/sys/net/vxlan/Makefile

index 7bc3d13..9cd0c41 100644 (file)
@@ -1,28 +1,31 @@
-#      $OpenBSD: Makefile,v 1.6 2023/10/11 18:07:15 anton Exp $
+#      $OpenBSD: Makefile,v 1.7 2024/02/28 06:33:39 anton Exp $
 
 REGRESS_TARGETS=       vxlan_1 vxlan_2.inet vxlan_2.dyn
 REGRESS_ROOT_TARGETS=  vxlan_1 vxlan_2.inet vxlan_2.dyn
 
 N1=                    11
 N2=                    12
-RDOMAINS=              ${N1} ${N2}
-IFACE_NUMS=            11 12
+N3=                    13
+N4=                    14
+N5=                    15
 
 vxlan_1:
-       ${SUDO} ksh ${.CURDIR}/$@.sh -R "${RDOMAINS}" -I "${IFACE_NUMS}"
+       ${SUDO} ksh ${.CURDIR}/$@.sh -R "${N1} ${N2}" -I "${N1} ${N2}"
 
 vxlan_2.inet:
-       ${SUDO} ksh ${.CURDIR}/${@:R}.sh -R "40 41 42 43 44" -f inet
+       ${SUDO} ksh ${.CURDIR}/${@:R}.sh \
+               -R "${N1} ${N2} ${N3} ${N4} ${N5}" -f inet
 
 vxlan_2.dyn:
        env SUDO="${SUDO}" DYNAMIC=1 \
-           ksh ${.CURDIR}/${@:R}.sh -R "40 41 42 43 44" -f inet
+           ksh ${.CURDIR}/${@:R}.sh -R "${N1} ${N2} ${N3} ${N4} ${N5}" -f inet
 
 vxlan_2.inet6:
-       ${SUDO} ksh ${.CURDIR}/${@:R}.sh -R "40 41 42 43 44" -f inet6
+       ${SUDO} ksh ${.CURDIR}/${@:R}.sh \
+               -R "${N1} ${N2} ${N3} ${N4} ${N5}" -f inet6
 
 vxlan_2.dyn6:
        env SUDO="${SUDO}" DYNAMIC=1 \
-           ksh ${.CURDIR}/${@:R}.sh -R "40 41 42 43 44" -f inet6
+           ksh ${.CURDIR}/${@:R}.sh -R "${N1} ${N2} ${N3} ${N4} ${N5}" -f inet6
 
 .include <bsd.regress.mk>