Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions share/man/man7/build.7
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ The default directory used is
.Pa ${.OBJDIR} ,
but the check directory can be changed with
.Pa ${CHECKDIR} .
A specific test can be run in debug mode with
.Pa KYUADEBUG=test_file:case_name .
.It Cm checkworld
Run the
.Fx
Expand Down
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
Loading