diff options
author | Julio Merino <jmmv@FreeBSD.org> | 2013-11-08 14:33:41 +0000 |
---|---|---|
committer | Julio Merino <jmmv@FreeBSD.org> | 2013-11-08 14:33:41 +0000 |
commit | fba3cde907930eed2adb8a320524bc250338c729 (patch) | |
tree | f0e3133bc90ad92cccea3722aa2d458865c00a41 /usr.bin | |
parent | cc21b86f50a0eb078c5d42c7ddffbc7ac6dae6e0 (diff) | |
download | src-fba3cde907930eed2adb8a320524bc250338c729.tar.gz src-fba3cde907930eed2adb8a320524bc250338c729.zip |
Build and install the atf tests.
Reviewed by: freebsd-testing
Approved by: rpaulo (mentor)
Notes
Notes:
svn path=/head/; revision=257853
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/atf/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/atf/Makefile.inc | 2 | ||||
-rw-r--r-- | usr.bin/atf/atf-sh/Makefile | 5 | ||||
-rw-r--r-- | usr.bin/atf/atf-sh/tests/Makefile | 18 | ||||
-rw-r--r-- | usr.bin/atf/tests/Makefile | 10 | ||||
-rw-r--r-- | usr.bin/tests/Makefile | 10 |
7 files changed, 46 insertions, 3 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile index cbee3fb2b056..0a6145bc6d49 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -160,6 +160,7 @@ SUBDIR= alias \ tar \ tcopy \ tee \ + ${_tests} \ tftp \ time \ tip \ @@ -330,6 +331,7 @@ SUBDIR+= telnet .if ${MK_TESTS} != "no" _atf= atf +_tests= tests .endif .if ${MK_TEXTPROC} != "no" diff --git a/usr.bin/atf/Makefile b/usr.bin/atf/Makefile index 0ea47aa05e58..054cdf2ac211 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 6572cfed6826..a79cd6defdcc 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 81120984316d..1688b191f5cf 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 000000000000..664f25ab645f --- /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 000000000000..3ff9f93f2dec --- /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> diff --git a/usr.bin/tests/Makefile b/usr.bin/tests/Makefile new file mode 100644 index 000000000000..f8ead8890f2c --- /dev/null +++ b/usr.bin/tests/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +TESTSDIR= ${TESTSBASE}/usr.bin + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include <bsd.test.mk> |