summaryrefslogtreecommitdiff
path: root/share/mk/bsd.regress.mk
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-06-17 17:20:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-06-17 17:20:25 +0000
commitd622eff41e3591a33335e54cce151c6f70902183 (patch)
treee8774ddbd0a431e60cde3246389e1c4f7188db56 /share/mk/bsd.regress.mk
parent5f22efc88538ef246555fc4ae5ec68a91f830804 (diff)
add REGRESS_EXPECTED_FAILURES variable,
for those tests that are expected to fail because they're not yet implemented. okay bluhm@
Diffstat (limited to 'share/mk/bsd.regress.mk')
-rw-r--r--share/mk/bsd.regress.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/share/mk/bsd.regress.mk b/share/mk/bsd.regress.mk
index b54e3fcf776..b66b1e4b5a7 100644
--- a/share/mk/bsd.regress.mk
+++ b/share/mk/bsd.regress.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.regress.mk,v 1.20 2019/06/15 07:30:26 espie Exp $
+# $OpenBSD: bsd.regress.mk,v 1.21 2019/06/17 17:20:24 espie Exp $
# Documented in bsd.regress.mk(5)
# No man pages for regression tests.
@@ -62,6 +62,7 @@ REGRESS_SKIP_TARGETS+=${REGRESS_ROOT_TARGETS}
. endif
.endif
+REGRESS_EXPECTED_FAILURES?=
REGRESS_SETUP?=
REGRESS_SETUP_ONCE?=
REGRESS_CLEANUP?=
@@ -86,6 +87,15 @@ regress: .SILENT
. if ${REGRESS_SKIP_TARGETS:M${RT}}
echo -n "SKIP " ${_REGRESS_OUT}
echo SKIPPED
+. elif ${REGRESS_EXPECTED_FAILURES:M${RT}}
+ if ${MAKE} -C ${.CURDIR} ${RT}; then \
+ echo -n "XPASS " ${_REGRESS_OUT} ; \
+ echo UNEXPECTED_PASS; \
+ ${_REGRESS_FAILED}; \
+ else \
+ echo -n "XFAIL " ${_REGRESS_OUT} ; \
+ echo EXPECTED_FAIL; \
+ fi
. else
if ${MAKE} -C ${.CURDIR} ${RT}; then \
echo -n "SUCCESS " ${_REGRESS_OUT} ; \