summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-02-16 04:11:40 +0000
committerjmmv <jmmv@FreeBSD.org>2014-02-16 04:11:40 +0000
commitffe26dcf3f810ed58414ab7293cfd42431a3e1b6 (patch)
tree2106d1f303973b5d539f193f444046fb77c64602 /tests/Makefile
parent38d1d2ec37f24acc18a00f00b5f72faee4d85c07 (diff)
downloadFreeBSD-src-ffe26dcf3f810ed58414ab7293cfd42431a3e1b6.zip
FreeBSD-src-ffe26dcf3f810ed58414ab7293cfd42431a3e1b6.tar.gz
Install a symlink from /usr/tests/local to /usr/local/tests.
This is to let Kyua descend into any tests that may have been installed by ports under /usr/local/tests when running the test suite from /usr/tests. Some ports (namely those that build Kyua) already install test programs into /usr/local/tests. Just make sure to select the TEST option while building them. MFC after: 3 days
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index ba81cac..00aaffd 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -7,4 +7,8 @@ SUBDIR= sys
TESTSDIR= ${TESTSBASE}
KYUAFILE= yes
+afterinstall: install-tests-local
+install-tests-local: .PHONY
+ ${INSTALL_SYMLINK} ../local/tests ${TESTSDIR}/local
+
.include <bsd.test.mk>
OpenPOWER on IntegriCloud