Makefile revision 302408
116359Sasami# $FreeBSD: stable/11/share/examples/tests/tests/atf/Makefile 299094 2016-05-04 23:20:53Z ngie $
216359Sasami
316359Sasami.include <bsd.own.mk>
416359Sasami
516359Sasami# The release package to use for the tests contained within the directory
624112Skato#
716359Sasami# This applies to components which rely on ^/projects/release-pkg support
816359Sasami# (see UPDATING XXXXXXXXX / svn revision r298107).
916359SasamiPACKAGE=	tests
1016359Sasami
1116359Sasami# Directory into which the Kyuafile provided by this directory will be
1216359Sasami# installed.
1316359Sasami#
1416359Sasami# This is always a subdirectory of ${TESTSBASE}/.  The remainder of the
1516359Sasami# path has to match the relative path within the source tree in which
1616359Sasami# these files are found modulo the tests/ component at the end.
1716359Sasami#
1816359Sasami# For example: if this Makefile were in src/bin/cp/tests/, its TESTSDIR
1916359Sasami# would point at ${TESTSBASE}/bin/cp/.
2016359SasamiTESTSDIR=	${TESTSBASE}/share/examples/tests/atf
2116359Sasami
2216359Sasami# List of test programs to build.  Note that we can build more than one
2316359Sasami# test from a single directory, and this is expected.
2416359SasamiATF_TESTS_C=	printf_test
2516359SasamiATF_TESTS_SH=	cp_test
2616359Sasami
2716359Sasami# Tell bsd.test.mk that we are providing a hand-crafted Kyuafile in this
2816359Sasami# directory.  We do so because the file in this directory exists for
2916359Sasami# documentation purposes.
3016359Sasami#
3116359Sasami# In general, however, you should NOT define KYUAFILE at all to allow
3216359Sasami# bsd.test.mk auto-generate one for you based on the ATF_TESTS_*
3318846Sasami# definitions from above.
3416359SasamiKYUAFILE=	yes
3516359Sasami
3616359Sasami# Install file1 and file2 as files via bsd.prog.mk. Please note the intentional
3716359Sasami# ${PACKAGE} namespace of files.
3816359Sasami#
3916359Sasami# The basic semantics of this are the same as FILES in bsd.prog.mk, e.g. the
4016359Sasami# installation of the files can be manipulated via ${PACKAGE}FILESDIR,
4116359Sasami# ${PACKAGE}FILESMODE, etc.
4216359Sasami#
4320494Skato# Please see comment above about ${PACKAGE}. Feel free to omit the ${PACKAGE}
4420494Skato# namespace if release package support isn't needed.
4520494Skato${PACKAGE}FILES+=	file1
4620494SkatoCLEANFILES+=		file1
4720494Skato
4820494Skatofile1:
4920494Skato	@echo "File 1" > ${.TARGET}
5016359Sasami
5116359Sasami.include <bsd.test.mk>
5216359Sasami