tap.test.mk (260633) | tap.test.mk (263161) |
---|---|
1# $FreeBSD: head/share/mk/tap.test.mk 260633 2014-01-14 18:35:56Z jmmv $ | 1# $FreeBSD: head/share/mk/tap.test.mk 263161 2014-03-14 08:56:19Z jmmv $ |
2# | 2# |
3# You must include bsd.test.mk instead of this file from your Makefile. 4# |
|
3# Logic to build and install TAP-compliant test programs. 4# 5# This is provided to support existing tests in the FreeBSD source tree 6# (particularly those coming from tools/regression/) that comply with the 7# Test Anything Protocol. It should not be used for new tests. 8 | 5# Logic to build and install TAP-compliant test programs. 6# 7# This is provided to support existing tests in the FreeBSD source tree 8# (particularly those coming from tools/regression/) that comply with the 9# Test Anything Protocol. It should not be used for new tests. 10 |
9.include <bsd.init.mk> | 11.if !target(__<bsd.test.mk>__) 12.error tap.test.mk cannot be included directly. 13.endif |
10 11# List of C, C++ and shell test programs to build. 12# 13# Programs listed here are built according to the semantics of bsd.prog.mk for 14# PROGS, PROGS_CXX and SCRIPTS, respectively. 15# 16# Test programs registered in this manner are set to be installed into TESTSDIR 17# (which should be overriden by the Makefile) and are not required to provide a --- 64 unchanged lines hidden (view full) --- 82TAP_TESTS_SH_SED_${_T}?= # empty 83TAP_TESTS_SH_SRC_${_T}?= ${_T}.sh 84${_T}: ${TAP_TESTS_SH_SRC_${_T}} 85 cat ${.ALLSRC} | sed ${TAP_TESTS_SH_SED_${_T}} >${.TARGET}.tmp 86 chmod +x ${.TARGET}.tmp 87 mv ${.TARGET}.tmp ${.TARGET} 88.endfor 89.endif | 14 15# List of C, C++ and shell test programs to build. 16# 17# Programs listed here are built according to the semantics of bsd.prog.mk for 18# PROGS, PROGS_CXX and SCRIPTS, respectively. 19# 20# Test programs registered in this manner are set to be installed into TESTSDIR 21# (which should be overriden by the Makefile) and are not required to provide a --- 64 unchanged lines hidden (view full) --- 86TAP_TESTS_SH_SED_${_T}?= # empty 87TAP_TESTS_SH_SRC_${_T}?= ${_T}.sh 88${_T}: ${TAP_TESTS_SH_SRC_${_T}} 89 cat ${.ALLSRC} | sed ${TAP_TESTS_SH_SED_${_T}} >${.TARGET}.tmp 90 chmod +x ${.TARGET}.tmp 91 mv ${.TARGET}.tmp ${.TARGET} 92.endfor 93.endif |
90 91.include <bsd.test.mk> | |