xref: /freebsd/share/examples/tests/tests/Makefile (revision e17f5b1d)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5# Directory into which the Kyuafile provided by this directory will be
6# installed.
7#
8# This is always a subdirectory of ${TESTSBASE}/.  The remainder of the
9# path has to match the relative path within the source tree in which
10# these files are found modulo the tests/ component at the end.
11#
12# For example: if this Makefile were in src/bin/cp/tests/, its TESTSDIR
13# would point at ${TESTSBASE}/bin/cp/.
14#
15# The default path specified by bsd.test.mk is `${TESTSBASE}/${RELDIR:H}`,
16# which happens to be the same as `${TESTSBASE}/share/examples/tests`.
17#TESTSDIR=	${TESTSBASE}/share/examples/tests
18
19# List of subdirectories into which we want to recurse during the build
20# of the system.  We use TESTS_SUBDIRS instead of SUBDIR because we want
21# the auto-generated Kyuafile to recurse into these directories.
22TESTS_SUBDIRS+=	atf
23TESTS_SUBDIRS+=	plain
24TESTS_SUBDIRS+=	tap
25
26.if ${MK_GOOGLETEST} != no
27TESTS_SUBDIRS+= googletest
28.endif
29
30# We leave KYUAFILE unset so that bsd.test.mk auto-generates a Kyuafile
31# for us based on the contents of the TESTS_SUBDIRS line above.  The
32# generated file will tell the tests run-time engine to recurse into the
33# directories listed above.
34#KYUAFILE=	auto
35
36.include <bsd.test.mk>
37