summaryrefslogtreecommitdiffstats
path: root/usr.bin/atf
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2013-11-08 14:33:41 +0000
committerjmmv <jmmv@FreeBSD.org>2013-11-08 14:33:41 +0000
commita1626fee639681689e4cad1607256138d15f47a1 (patch)
treef0e3133bc90ad92cccea3722aa2d458865c00a41 /usr.bin/atf
parent39ac592d96a91fc379d17655201b826e2da0d2e5 (diff)
downloadFreeBSD-src-a1626fee639681689e4cad1607256138d15f47a1.zip
FreeBSD-src-a1626fee639681689e4cad1607256138d15f47a1.tar.gz
Build and install the atf tests.
Reviewed by: freebsd-testing Approved by: rpaulo (mentor)
Diffstat (limited to 'usr.bin/atf')
-rw-r--r--usr.bin/atf/Makefile2
-rw-r--r--usr.bin/atf/Makefile.inc2
-rw-r--r--usr.bin/atf/atf-sh/Makefile5
-rw-r--r--usr.bin/atf/atf-sh/tests/Makefile18
-rw-r--r--usr.bin/atf/tests/Makefile10
5 files changed, 34 insertions, 3 deletions
diff --git a/usr.bin/atf/Makefile b/usr.bin/atf/Makefile
index 0ea47aa..054cdf2 100644
--- a/usr.bin/atf/Makefile
+++ b/usr.bin/atf/Makefile
@@ -25,6 +25,6 @@
#
# $FreeBSD$
-SUBDIR= atf-sh
+SUBDIR= atf-sh tests
.include <bsd.subdir.mk>
diff --git a/usr.bin/atf/Makefile.inc b/usr.bin/atf/Makefile.inc
index 6572cfe..a79cd6d 100644
--- a/usr.bin/atf/Makefile.inc
+++ b/usr.bin/atf/Makefile.inc
@@ -1,6 +1,4 @@
# $FreeBSD$
-ATF= ${.CURDIR}/../../../contrib/atf
-
BINDIR?= /usr/bin
WARNS?= 3
diff --git a/usr.bin/atf/atf-sh/Makefile b/usr.bin/atf/atf-sh/Makefile
index 8112098..1688b19 100644
--- a/usr.bin/atf/atf-sh/Makefile
+++ b/usr.bin/atf/atf-sh/Makefile
@@ -27,6 +27,7 @@
.include <bsd.init.mk>
+ATF= ${.CURDIR:H:H:H}/contrib/atf
.PATH: ${ATF}/atf-sh
PROG_CXX= atf-sh
@@ -44,4 +45,8 @@ FILESGROUPS= SUBR
SUBRDIR= ${SHAREDIR}/atf
SUBR= libatf-sh.subr
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/usr.bin/atf/atf-sh/tests/Makefile b/usr.bin/atf/atf-sh/tests/Makefile
new file mode 100644
index 0000000..664f25a
--- /dev/null
+++ b/usr.bin/atf/atf-sh/tests/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+.include <bsd.init.mk>
+
+TESTSDIR= ${TESTSBASE}/usr.bin/atf/atf-sh
+
+ATF= ${.CURDIR:H:H:H:H}/contrib/atf
+.PATH: ${ATF}/atf-sh
+
+ATF_TESTS_SH+= atf_check_test
+ATF_TESTS_SH+= config_test
+ATF_TESTS_SH+= integration_test
+ATF_TESTS_SH+= misc_helpers
+ATF_TESTS_SH+= normalize_test
+ATF_TESTS_SH+= tc_test
+ATF_TESTS_SH+= tp_test
+
+.include <atf.test.mk>
diff --git a/usr.bin/atf/tests/Makefile b/usr.bin/atf/tests/Makefile
new file mode 100644
index 0000000..3ff9f93
--- /dev/null
+++ b/usr.bin/atf/tests/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/usr.bin/atf
+
+.PATH: ${.CURDIR:H:H:H}/tests
+KYUAFILE= yes
+
+.include <bsd.test.mk>
OpenPOWER on IntegriCloud