1258299Sjmmv# $FreeBSD: stable/11/share/examples/tests/tests/tap/Makefile 320443 2017-06-28 08:22:04Z ngie $
2258299Sjmmv
3299094Sngie# The release package to use for the tests contained within the directory
4299094Sngie#
5299094Sngie# This applies to components which rely on ^/projects/release-pkg support
6299094Sngie# (see UPDATING XXXXXXXXX / svn revision r298107).
7298107SgjbPACKAGE=	tests
8298107Sgjb
9258299Sjmmv# Directory into which the Kyuafile provided by this directory will be
10258299Sjmmv# installed.
11258299Sjmmv#
12258299Sjmmv# This is always a subdirectory of ${TESTSBASE}/.  The remainder of the
13258299Sjmmv# path has to match the relative path within the source tree in which
14258299Sjmmv# these files are found modulo the tests/ component at the end.
15258299Sjmmv#
16258299Sjmmv# For example: if this Makefile were in src/bin/cp/tests/, its TESTSDIR
17258299Sjmmv# would point at ${TESTSBASE}/bin/cp/.
18320443SngieTESTSDIR=	${TESTSBASE}/share/examples/tests/tap
19258299Sjmmv
20258299Sjmmv# List of test programs to build.  Note that we can build more than one
21258299Sjmmv# test from a single directory, and this is expected.
22320443SngieTAP_TESTS_C=	printf_test
23320443SngieTAP_TESTS_SH=	cp_test
24258299Sjmmv
25258299Sjmmv# Tell bsd.test.mk that we are providing a hand-crafted Kyuafile in this
26258299Sjmmv# directory.  We do so because the file in this directory exists for
27258299Sjmmv# documentation purposes.
28258299Sjmmv#
29258299Sjmmv# In general, however, you should NOT define KYUAFILE at all to allow
30258299Sjmmv# bsd.test.mk auto-generate one for you based on the PLAIN_TESTS_*
31258299Sjmmv# definitions from above.
32258299SjmmvKYUAFILE=	yes
33258299Sjmmv
34299094Sngie# Install file1 and file2 as files via bsd.prog.mk. Please note the intentional
35299094Sngie# ${PACKAGE} namespace of files.
36299094Sngie#
37299094Sngie# The basic semantics of this are the same as FILES in bsd.prog.mk, e.g. the
38299094Sngie# installation of the files can be manipulated via ${PACKAGE}FILESDIR,
39299094Sngie# ${PACKAGE}FILESMODE, etc.
40299094Sngie#
41299094Sngie# Please see comment above about ${PACKAGE}. Feel free to omit the ${PACKAGE}
42299094Sngie# namespace if release package support isn't needed.
43299094Sngie${PACKAGE}FILES+=	file1
44299094SngieCLEANFILES+=		file1
45299094Sngie
46299094Sngiefile1:
47299094Sngie	@echo "File 1" > ${.TARGET}
48299094Sngie
49263161Sjmmv.include <bsd.test.mk>
50