Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check: Add KYUADEBUG to target specific kyua tests #1553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion share/mk/suite.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ KYUAFILE?= auto
# unqualified TEST_METADATA variable.
#TEST_METADATA.<test-program>+= key="value"

# Test name to run with kyua debug instead of running all tests.
#KYUADEBUG

.if ${KYUAFILE:tl} != "no"
${PACKAGE}FILES+= Kyuafile
${PACKAGE}FILESDIR_Kyuafile= ${TESTSDIR}
Expand Down Expand Up @@ -78,6 +81,11 @@ Kyuafile: Makefile

KYUA?= kyua

KYUA_CMD= ${KYUA} test -k ${DESTDIR}${TESTSDIR}/Kyuafile
.if !empty(KYUADEBUG)
KYUA_CMD= ${KYUA} debug -k ${DESTDIR}${TESTSDIR}/Kyuafile ${KYUADEBUG}
.endif

# Definition of the "make check" target and supporting variables.
#
# This target, by necessity, can only work for native builds (i.e. a FreeBSD
Expand All @@ -98,7 +106,7 @@ realcheck: .PHONY
echo "KYUA=\"${LOCALBASE}/bin/kyua\""; \
false; \
fi
@env ${TESTS_ENV:Q} ${KYUA} test -k ${DESTDIR}${TESTSDIR}/Kyuafile
@env ${TESTS_ENV:Q} ${KYUA_CMD}

MAKE_CHECK_SANDBOX_DIR= checkdir
CLEANDIRS+= ${MAKE_CHECK_SANDBOX_DIR}
Expand Down