diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-12-16 18:40:11 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-12-16 18:40:11 +0000 |
commit | 0ce63a66bec3595de0050347df4a6da5ba65d4df (patch) | |
tree | e1d7f83801eebf81132a3eda895002830c419f40 /regress/sys | |
parent | ef9da00347c4c5c8d52635956a6a0f6c6c4af234 (diff) |
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/Makefile | 59 |
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> |