-# $OpenBSD: Makefile,v 1.69 2017/04/30 09:03:58 mpi Exp $
+# $OpenBSD: Makefile,v 1.70 2017/07/07 23:15:27 bluhm Exp $
SUBDIR+= __syscall access accept dup2 dup2_self exec_self execve exit extent
SUBDIR+= fchdir
SUBDIR+= mmap mmap2 mmap3 mmap-fail
SUBDIR+= mount
SUBDIR+= nanosleep noexec
-#SUBDIR+= pledge
+SUBDIR+= pledge
SUBDIR+= pread preadv ptmget pty pwrite pwritev rcvtimeo
SUBDIR+= rlimit-file signal signal-stress sigprof sigsuspend
SUBDIR+= sosplice
# The setuid subtest creates set user/group id binaries in the obj directory.
# Do not run this test by default, it may trigger alerts from daily security.
-.ifmake clean || cleandir || depend || obj
+.ifmake clean || cleandir || obj
SUBDIR+= setuid
.endif
-# $OpenBSD: Makefile,v 1.4 2016/11/28 22:27:10 bluhm Exp $
+# $OpenBSD: Makefile,v 1.5 2017/07/07 23:15:27 bluhm Exp $
MOUNT_NOSUID != mount | grep ^$$(df -P /tmp | tail -1 | awk '{ print $$1 }') |\
grep nosuid || true
CLEANFILES+= *.o ${BINFILES}
-.ifmake !clean && !cleandir && !depend && !obj
+.ifmake !clean && !cleandir && !obj
DIR !!= mktemp -d -t setuid-regress-XXXXXXXXXX
.BEGIN:
@chmod 755 ${DIR}
-# $OpenBSD: Makefile,v 1.23 2017/05/15 13:10:33 bluhm Exp $
+# $OpenBSD: Makefile,v 1.24 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
.endif
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.22 2016/10/19 14:31:19 tb Exp $
+# $OpenBSD: Makefile,v 1.23 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
.endif
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.1 2016/08/24 22:31:41 bluhm Exp $
+# $OpenBSD: Makefile,v 1.2 2017/07/07 23:15:27 bluhm Exp $
PROG= pf_print_test
CLEANFILES= pf_print_host.c
${.CURDIR}/../../../../sys/net/pf.c >$@.tmp
mv $@.tmp $@
-beforedepend: pf_print_host.c
-
pf_print_test.o: pf_print_test.c pf_print_host.c
.include <bsd.regress.mk>
-# $OpenBSD: Makefile,v 1.5 2017/02/27 23:05:21 bluhm Exp $
+# $OpenBSD: Makefile,v 1.6 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
rm -f stamp-pfctl
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.2 2017/04/19 12:44:05 bluhm Exp $
+# $OpenBSD: Makefile,v 1.3 2017/07/07 23:15:27 bluhm Exp $
-REGRESS_TARGETS= hit miss
-REGRESS_ROOT_TARGETS= hit miss
+REGRESS_TARGETS= hit miss cleanup
+CLEANFILES= stamp-*
-.ifmake !obj && !clean && !cleandir && !depend && !regress
-.if (${.TARGET} != all && ! make(all)) || (${.TARGET} == all)
-
-.SILENT: .BEGIN .END .INTERRUPT
-
-.BEGIN:
+stamp-setup:
${SUDO} pfctl -qt __regress_tbl -T add -f ${.CURDIR}/table.in
+ date >$@
-.END:
+cleanup:
+ rm -f stamp-setup
${SUDO} pfctl -qt __regress_tbl -T kill
-.INTERRUPT:
- ${SUDO} pfctl -qt __regress_tbl -T kill
-
-.endif
-.endif
-
-hit:
+hit: stamp-setup
for i in `cat ${.CURDIR}/table.hit`; do \
echo -n "hit $$i "; \
${SUDO} pfctl -qt __regress_tbl -T test $$i || exit 1; \
done; \
exit 0
-miss:
+miss: stamp-setup
for i in `cat ${.CURDIR}/table.miss`; do \
echo -n "miss $$i "; \
${SUDO} pfctl -qt __regress_tbl -T test $$i && exit 1; \
-# $OpenBSD: Makefile,v 1.9 2016/10/19 14:31:19 tb Exp $
+# $OpenBSD: Makefile,v 1.10 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
.endif
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.16 2017/05/28 21:23:47 bluhm Exp $
+# $OpenBSD: Makefile,v 1.17 2017/07/07 23:15:27 bluhm Exp $
# This test needs a manual setup of four machines, the make
# target create-setup can be used distribute the configuration.
rm -f stamp-*
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
@echo '\n======== $@ ========'
-# $OpenBSD: Makefile,v 1.10 2017/04/16 16:59:53 kettenis Exp $
+# $OpenBSD: Makefile,v 1.11 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
ssh -t ${REMOTE_SSH} ${SUDO} true
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.19 2017/05/31 09:25:17 bluhm Exp $
+# $OpenBSD: Makefile,v 1.20 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
rm -f stamp-stack stamp-pf
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.6 2017/03/01 00:05:21 bluhm Exp $
+# $OpenBSD: Makefile,v 1.7 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
@echo SKIPPED
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp
-# $OpenBSD: Makefile,v 1.10 2017/03/01 00:58:22 bluhm Exp $
+# $OpenBSD: Makefile,v 1.11 2017/07/07 23:15:27 bluhm Exp $
# The following ports must be installed:
#
rm -f stamp-stack stamp-pf
.endif
-depend: addr.py
-
# Create python include file containing the addresses.
addr.py: Makefile
rm -f $@ $@.tmp