svn commit: r281476 - user/ngie/more-tests/share/mk

Garrett Cooper ngie at FreeBSD.org
Sun Apr 12 22:44:48 UTC 2015


Author: ngie
Date: Sun Apr 12 22:44:47 2015
New Revision: 281476
URL: https://svnweb.freebsd.org/changeset/base/281476

Log:
  Put kyuafile-check in beforetest so the target isn't evaluated when iterating
  through subdirs (like bin/), thus causing the build to fail

Modified:
  user/ngie/more-tests/share/mk/suite.test.mk

Modified: user/ngie/more-tests/share/mk/suite.test.mk
==============================================================================
--- user/ngie/more-tests/share/mk/suite.test.mk	Sun Apr 12 22:40:27 2015	(r281475)
+++ user/ngie/more-tests/share/mk/suite.test.mk	Sun Apr 12 22:44:47 2015	(r281476)
@@ -85,7 +85,26 @@ KYUA?= ${KYUA_PREFIX}/bin/kyua
 
 _kyuafile=	${DESTDIR}${TESTSDIR}/Kyuafile
 
-kyuafile-check:
+realtest: .PHONY
+.if exists(${KYUA})
+# Definition of the "make test" target and supporting variables.
+#
+# This target, by necessity, can only work for native builds (i.e. a FreeBSD
+# host building a release for the same system).  The target runs Kyua, which is
+# not in the toolchain, and the tests execute code built for the target host.
+#
+# Due to the dependencies of the binaries built by the source tree and how they
+# are used by tests, it is highly possible for a execution of "make test" to
+# report bogus results unless the new binaries are put in place.
+realtest:
+	@${KYUA} test -k ${_kyuafile}
+.endif
+
+beforetest: .PHONY
+.if !defined(TESTSDIR)
+	@echo "*** No TESTSDIR defined; nothing to do."
+	@false
+.endif
 .if ${KYUAFILE:tl} != "no"
 	@if [ ! -f ${_kyuafile} ]; then \
 		echo "*** Please run make install and make test for" \
@@ -104,24 +123,3 @@ kyuafile-check:
 		false; \
 	fi
 .endif
-
-.if exists(${KYUA})
-# Definition of the "make test" target and supporting variables.
-#
-# This target, by necessity, can only work for native builds (i.e. a FreeBSD
-# host building a release for the same system).  The target runs Kyua, which is
-# not in the toolchain, and the tests execute code built for the target host.
-#
-# Due to the dependencies of the binaries built by the source tree and how they
-# are used by tests, it is highly possible for a execution of "make test" to
-# report bogus results unless the new binaries are put in place.
-realtest: .PHONY
-	${KYUA} test -k ${_kyuafile}
-.endif
-
-beforetest: .PHONY
-beforetest: kyuafile-check
-.if !defined(TESTSDIR)
-	@echo "*** No TESTSDIR defined; nothing to do."
-	@false
-.endif


More information about the svn-src-user mailing list