From: anton Date: Tue, 27 Feb 2024 07:21:07 +0000 (+0000) Subject: Favor usage of REGRESS_SKIP_TARGETS instead of this custom logic. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e51eec3a06f9280c2b815900a0c99e0f98d0c1e;p=openbsd Favor usage of REGRESS_SKIP_TARGETS instead of this custom logic. --- diff --git a/regress/sys/netinet/in_pcbbind/Makefile b/regress/sys/netinet/in_pcbbind/Makefile index cb35b6cdb7c..7953d48436f 100644 --- a/regress/sys/netinet/in_pcbbind/Makefile +++ b/regress/sys/netinet/in_pcbbind/Makefile @@ -1,22 +1,22 @@ -# $OpenBSD: Makefile,v 1.5 2016/09/05 10:15:24 vgross Exp $ +# $OpenBSD: Makefile,v 1.6 2024/02/27 07:21:07 anton Exp $ PROG = runtest PORT = 23000 IFADDR != route -n show -inet | awk '$$8 !~ "lo0" && $$3 ~ /U.*l/ { print $$1; exit }' IF6ADDR != route -n show -inet6 | awk '$$8 !~ "lo0" && $$3 ~ /U.*l/ && $$1 !~ /^fe80/ { print $$1; exit }' +.if empty(IF6ADDR) +REGRESS_SKIP_TARGETS += run-regress-runtest6 +.endif + +REGRESS_TARGETS += run-regress-runtest4 run-regress-runtest4: ${PROG} ${.OBJDIR}/${PROG} ${IFADDR} ${PORT} ${.OBJDIR}/${PROG} 224.0.2.1 ${PORT} ${IFADDR} -REGRESS_TARGETS += run-regress-runtest4 - -.if ! empty(IF6ADDR) +REGRESS_TARGETS += run-regress-runtest6 run-regress-runtest6: ${PROG} ${.OBJDIR}/${PROG} ${IF6ADDR} ${PORT} ${SUDO} ${.OBJDIR}/${PROG} ff1e::123 ${PORT} ${IF6ADDR} -REGRESS_TARGETS += run-regress-runtest6 -.endif - .include