1 2# The release package to use for the tests contained within the directory 3# 4# This applies to components which rely on ^/projects/release-pkg support 5# (see UPDATING XXXXXXXXX / svn revision r298107). 6PACKAGE= tests 7 8# Directory into which the Kyuafile provided by this directory will be 9# installed. 10# 11# This is always a subdirectory of ${TESTSBASE}/. The remainder of the 12# path has to match the relative path within the source tree in which 13# these files are found modulo the tests/ component at the end. 14# 15# For example: if this Makefile were in src/bin/cp/tests/, its TESTSDIR 16# would point at ${TESTSBASE}/bin/cp/. 17TESTSDIR= ${TESTSBASE}/share/examples/tests/plain 18 19# List of test programs to build. Note that we can build more than one 20# test from a single directory, and this is expected. 21PLAIN_TESTS_C= printf_test 22PLAIN_TESTS_SH= cp_test 23 24# Tell bsd.test.mk that we are providing a hand-crafted Kyuafile in this 25# directory. We do so because the file in this directory exists for 26# documentation purposes. 27# 28# In general, however, you should NOT define KYUAFILE at all to allow 29# bsd.test.mk auto-generate one for you based on the PLAIN_TESTS_* 30# definitions from above. 31KYUAFILE= yes 32 33# Install file1 and file2 as files via bsd.progs.mk. Please note the intentional 34# ${PACKAGE} namespace of files. 35# 36# The basic semantics of this are the same as FILES in bsd.progs.mk, e.g. the 37# installation of the files can be manipulated via ${PACKAGE}FILESDIR, 38# ${PACKAGE}FILESMODE, etc. 39# 40# Please see comment above about ${PACKAGE}. Feel free to omit the ${PACKAGE} 41# namespace if release package support isn't needed. 42${PACKAGE}FILES+= file1 43CLEANFILES+= file1 44 45file1: 46 @echo "File 1" > ${.TARGET} 47 48.include <bsd.test.mk> 49 50.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 180000 51CWARNFLAGS.printf_test.c+= -Wno-format-truncation 52.endif 53