summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2021-11-12 06:53:52 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2021-11-12 06:53:52 +0000
commit4317a3ceff8a4805cf2d0511eef51bd2bc066116 (patch)
tree2283d2397c4c2a3355909ca35eec116d0567ab27 /regress/sbin
parent55b6f030670948ea66c3924616a85981ba44be58 (diff)
honor objdir
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 20e1f095226..479b2299a62 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.234 2021/11/11 12:49:53 sashan Exp $
+# $OpenBSD: Makefile,v 1.235 2021/11/12 06:53:51 anton Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check whether the output matches pfNN.ok
@@ -386,22 +386,24 @@ pf-changerule: changerule changerule-tail.ok changerule-head.ok \
echo "pass in proto tcp from any to any port $i" | \
${SUDO} ./changerule -a regress -i 0
.endfor
- ${SUDO} ${PFCTL} -a regress -sr | diff -u changerule-head.ok /dev/stdin
+ ${SUDO} ${PFCTL} -a regress -sr | \
+ diff -u ${.CURDIR}/changerule-head.ok /dev/stdin
${SUDO} ${PFCTL} -a 'regress/*' -Fr
echo 'pass all' | ${SUDO} ${PFCTL} -a regress -f -
.for i in 10 20 30 40 50
echo "pass in proto tcp from any to any port $i" | \
${SUDO} ./changerule -a regress -i -1
.endfor
- ${SUDO} ${PFCTL} -a regress -sr | diff -u changerule-tail.ok /dev/stdin
+ ${SUDO} ${PFCTL} -a regress -sr | \
+ diff -u ${.CURDIR}/changerule-tail.ok /dev/stdin
echo 'pass in proto tcp from any to any port 15' | \
${SUDO} ./changerule -a regress -i 2
${SUDO} ${PFCTL} -a regress -sr | \
- diff -u changerule-before.ok /dev/stdin
+ diff -u ${.CURDIR}/changerule-before.ok /dev/stdin
echo 'pass in proto tcp from any to any port 25' | \
${SUDO} ./changerule -a regress -I 3
${SUDO} ${PFCTL} -a regress -sr | \
- diff -u changerule-after.ok /dev/stdin
+ diff -u ${.CURDIR}/changerule-after.ok /dev/stdin
${SUDO} ${PFCTL} -a 'regress/*' -Fr
update: ${UPDATE_TARGETS}