Makefile revision 321646
138494Sobrien# $FreeBSD: stable/10/share/examples/tests/tests/tap/Makefile 321646 2017-07-28 03:30:46Z ngie $ 2310490Scy 338494Sobrien# Directory into which the Kyuafile provided by this directory will be 438494Sobrien# installed. 538494Sobrien# 638494Sobrien# This is always a subdirectory of ${TESTSBASE}/. The remainder of the 738494Sobrien# path has to match the relative path within the source tree in which 838494Sobrien# these files are found modulo the tests/ component at the end. 938494Sobrien# 1038494Sobrien# For example: if this Makefile were in src/bin/cp/tests/, its TESTSDIR 1138494Sobrien# would point at ${TESTSBASE}/bin/cp/. 1238494SobrienTESTSDIR= ${TESTSBASE}/share/examples/tests/tap 1338494Sobrien 1438494Sobrien# List of test programs to build. Note that we can build more than one 1538494Sobrien# test from a single directory, and this is expected. 1638494SobrienTAP_TESTS_C= printf_test 1738494SobrienTAP_TESTS_SH= cp_test 1838494Sobrien 19310490Scy# Tell bsd.test.mk that we are providing a hand-crafted Kyuafile in this 2038494Sobrien# directory. We do so because the file in this directory exists for 2138494Sobrien# documentation purposes. 2238494Sobrien# 2338494Sobrien# In general, however, you should NOT define KYUAFILE at all to allow 2438494Sobrien# bsd.test.mk auto-generate one for you based on the PLAIN_TESTS_* 2538494Sobrien# definitions from above. 2638494SobrienKYUAFILE= yes 2738494Sobrien 2838494Sobrien# Install file1 and file2 as files via bsd.prog.mk. 2938494SobrienFILES+= file1 3038494SobrienFILESDIR= ${TESTSDIR} 3138494SobrienCLEANFILES+= file1 3238494Sobrien 3338494Sobrienfile1: 3438494Sobrien @echo "File 1" > ${.TARGET} 3538494Sobrien 36174299Sobrien.include <bsd.test.mk> 37131706Smbr