Deleted Added
full compact
bsd.test.mk (260632) bsd.test.mk (263161)
1# $FreeBSD: head/share/mk/bsd.test.mk 260632 2014-01-14 18:32:47Z jmmv $
1# $FreeBSD: head/share/mk/bsd.test.mk 263161 2014-03-14 08:56:19Z jmmv $
2#
3# Generic build infrastructure for test programs.
4#
2#
3# Generic build infrastructure for test programs.
4#
5# The code in this file is independent of the implementation of the test
6# programs being built; this file just provides generic infrastructure for the
7# build and the definition of various helper variables and targets.
8#
9# Makefiles should never include this file directly. Instead, they should
10# include one of the various *.test.mk depending on the specific test programs
11# being built.
5# This is the only public file that should be included by Makefiles when
6# tests are to be built. All other *.test.mk files are internal and not
7# to be included directly.
12
13.include <bsd.init.mk>
14
8
9.include <bsd.init.mk>
10
11__<bsd.test.mk>__:
12
15# Directory in which to install tests defined by the current Makefile.
16# Makefiles have to override this to point to a subdirectory of TESTSBASE.
17TESTSDIR?= .
18
19# Name of the test suite these tests belong to. Should rarely be changed for
20# Makefiles built into the FreeBSD src tree.
21TESTSUITE?= FreeBSD
22

--- 39 unchanged lines hidden (view full) ---

62TESTS_PATH+= ${DESTDIR}/bin ${DESTDIR}/sbin \
63 ${DESTDIR}/usr/bin ${DESTDIR}/usr/sbin
64TESTS_ENV+= PATH=${TESTS_PATH:tW:C/ +/:/g}
65
66# Ordered list of directories to construct the LD_LIBRARY_PATH for the tests.
67TESTS_LD_LIBRARY_PATH+= ${DESTDIR}/lib ${DESTDIR}/usr/lib
68TESTS_ENV+= LD_LIBRARY_PATH=${TESTS_LD_LIBRARY_PATH:tW:C/ +/:/g}
69
13# Directory in which to install tests defined by the current Makefile.
14# Makefiles have to override this to point to a subdirectory of TESTSBASE.
15TESTSDIR?= .
16
17# Name of the test suite these tests belong to. Should rarely be changed for
18# Makefiles built into the FreeBSD src tree.
19TESTSUITE?= FreeBSD
20

--- 39 unchanged lines hidden (view full) ---

60TESTS_PATH+= ${DESTDIR}/bin ${DESTDIR}/sbin \
61 ${DESTDIR}/usr/bin ${DESTDIR}/usr/sbin
62TESTS_ENV+= PATH=${TESTS_PATH:tW:C/ +/:/g}
63
64# Ordered list of directories to construct the LD_LIBRARY_PATH for the tests.
65TESTS_LD_LIBRARY_PATH+= ${DESTDIR}/lib ${DESTDIR}/usr/lib
66TESTS_ENV+= LD_LIBRARY_PATH=${TESTS_LD_LIBRARY_PATH:tW:C/ +/:/g}
67
70# List of all tests being built. This variable is internal should not be
71# defined by the Makefile. The various *.test.mk modules extend this variable
72# as needed.
73_TESTS?=
74
75# Path to the prefix of the installed Kyua CLI, if any.
76#
77# If kyua is installed from ports, we automatically define a realtest target
78# below to run the tests using this tool. The tools are searched for in the
79# hierarchy specified by this variable.
80KYUA_PREFIX?= /usr/local
81
68# Path to the prefix of the installed Kyua CLI, if any.
69#
70# If kyua is installed from ports, we automatically define a realtest target
71# below to run the tests using this tool. The tools are searched for in the
72# hierarchy specified by this variable.
73KYUA_PREFIX?= /usr/local
74
75# List of all tests being built. The various *.test.mk modules extend this
76# variable as needed.
77_TESTS=
78
79# Pull in the definitions of all supported test interfaces.
80.include <atf.test.mk>
81.include <plain.test.mk>
82.include <tap.test.mk>
83
82.if !empty(TESTS_SUBDIRS)
83SUBDIR+= ${TESTS_SUBDIRS}
84.endif
85
86# it is rare for test cases to have man pages
87.if !defined(MAN)
88WITHOUT_MAN=yes
89.export WITHOUT_MAN

--- 108 unchanged lines hidden ---
84.if !empty(TESTS_SUBDIRS)
85SUBDIR+= ${TESTS_SUBDIRS}
86.endif
87
88# it is rare for test cases to have man pages
89.if !defined(MAN)
90WITHOUT_MAN=yes
91.export WITHOUT_MAN

--- 108 unchanged lines hidden ---