summaryrefslogtreecommitdiffstats
path: root/regress/sys
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-12-16 18:40:10 +0000
committerbluhm <bluhm@openbsd.org>2020-12-16 18:40:10 +0000
commit544f2585ffbdedd4c984b79f592726adefe2c20a (patch)
treeccad526276af3d34c26afa366e39093d2fe0e2c0 /regress/sys
parentAvoid potential use of uninitialized in ASN1_time_parse (diff)
downloadwireguard-openbsd-544f2585ffbdedd4c984b79f592726adefe2c20a.tar.xz
wireguard-openbsd-544f2585ffbdedd4c984b79f592726adefe2c20a.zip
Make test actually fail if something is broken.
Remove echo headlines. Use consistent target names.
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/pledge/execpromise/Makefile59
1 files changed, 26 insertions, 33 deletions
diff --git a/regress/sys/kern/pledge/execpromise/Makefile b/regress/sys/kern/pledge/execpromise/Makefile
index cfa4db647d2..61141faa48b 100644
--- a/regress/sys/kern/pledge/execpromise/Makefile
+++ b/regress/sys/kern/pledge/execpromise/Makefile
@@ -1,39 +1,32 @@
-# $OpenBSD: Makefile,v 1.1 2017/12/16 11:00:49 florian Exp $
+# $OpenBSD: Makefile,v 1.2 2020/12/16 18:40:10 bluhm Exp $
PROG= execpromise
-test_normal: ${PROG}
- @echo '\n======== $@ ========'
- ${.OBJDIR}/${PROG} "stdio rpath inet" "stdio inet"
-REGRESS_TARGETS+= test_normal
-
-test_no_child_pledge: ${PROG}
- @echo '\n======== $@ ========'
- ${.OBJDIR}/${PROG} "stdio rpath inet"
-REGRESS_TARGETS+= test_no_child_pledge
-
-test_abort_child: ${PROG}
- @echo '\n======== $@ ========'
- -${.OBJDIR}/${PROG} "stdio rpath"; \
- if [[ $$? == 134 ]] ; then echo OK; else false; fi
-REGRESS_TARGETS+= test_abort_child
-
-test_ENOSYS_child: ${PROG}
- @echo '\n======== $@ ========'
- -${.OBJDIR}/${PROG} "stdio rpath error"; \
- if [[ $$? == 23 ]] ; then echo OK; else false; fi
-REGRESS_TARGETS+= test_ENOSYS_child
-
-test_upgrade_fail: ${PROG}
- @echo '\n======== $@ ========'
- -${.OBJDIR}/${PROG} "stdio rpath inet" "stdio inet wpath"; \
- if [[ $$? == 24 ]] ; then echo OK; else false; fi
-REGRESS_TARGETS+= test_upgrade_fail
-
-test_upgrade_ignore: ${PROG}
- @echo '\n======== $@ ========'
- ${.OBJDIR}/${PROG} "stdio rpath inet error" "stdio rpath wpath inet"
-REGRESS_TARGETS+= test_upgrade_ignore
+run-normal: ${PROG}
+ ./${PROG} "stdio rpath inet" "stdio inet"
+REGRESS_TARGETS+= run-normal
+run-no-child-pledge: ${PROG}
+ ./${PROG} "stdio rpath inet"
+REGRESS_TARGETS+= run-no-child-pledge
+
+run-abort-child: ${PROG}
+ if ./${PROG} "stdio rpath"; \
+ then false; else [[ $$? == 134 ]]; fi
+REGRESS_TARGETS+= run-abort-child
+
+run-ENOSYS-child: ${PROG}
+ if ./${PROG} "stdio rpath error"; \
+ then false; else [[ $$? == 23 ]]; fi
+REGRESS_TARGETS+= run-ENOSYS-child
+
+run-upgrade-fail: ${PROG}
+ if ./${PROG} "stdio rpath inet" "stdio inet wpath"; \
+ then false; else [[ $$? == 24 ]]; fi
+REGRESS_TARGETS+= run-upgrade-fail
+
+run-upgrade-ignore: ${PROG}
+ ./${PROG} "stdio rpath inet error" "stdio rpath wpath inet"
+REGRESS_TARGETS+= run-upgrade-ignore
.include <bsd.regress.mk>