tap.test.mk (263161) | tap.test.mk (268445) |
---|---|
1# $FreeBSD: head/share/mk/tap.test.mk 263161 2014-03-14 08:56:19Z jmmv $ | 1# $FreeBSD: head/share/mk/tap.test.mk 268445 2014-07-09 00:55:50Z jmmv $ |
2# 3# You must include bsd.test.mk instead of this file from your Makefile. 4# 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. --- 51 unchanged lines hidden (view full) --- 61# TODO(jmmv): It seems to me that this SED and SRC functionality should 62# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if 63# this proves to be useful within the tests. 64TAP_TESTS_PERL_SED_${_T}?= # empty 65TAP_TESTS_PERL_SRC_${_T}?= ${_T}.pl 66${_T}: ${TAP_TESTS_PERL_SRC_${_T}} 67 { \ 68 echo '#! ${TAP_PERL_INTERPRETER}'; \ | 2# 3# You must include bsd.test.mk instead of this file from your Makefile. 4# 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. --- 51 unchanged lines hidden (view full) --- 61# TODO(jmmv): It seems to me that this SED and SRC functionality should 62# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if 63# this proves to be useful within the tests. 64TAP_TESTS_PERL_SED_${_T}?= # empty 65TAP_TESTS_PERL_SRC_${_T}?= ${_T}.pl 66${_T}: ${TAP_TESTS_PERL_SRC_${_T}} 67 { \ 68 echo '#! ${TAP_PERL_INTERPRETER}'; \ |
69 cat ${.ALLSRC} | sed ${TAP_TESTS_PERL_SED_${_T}}; \ | 69 cat ${.ALLSRC:N*Makefile*} | sed ${TAP_TESTS_PERL_SED_${_T}}; \ |
70 } >${.TARGET}.tmp 71 chmod +x ${.TARGET}.tmp 72 mv ${.TARGET}.tmp ${.TARGET} 73.endfor 74.endif 75 76.if !empty(TAP_TESTS_SH) 77SCRIPTS+= ${TAP_TESTS_SH} --- 16 unchanged lines hidden --- | 70 } >${.TARGET}.tmp 71 chmod +x ${.TARGET}.tmp 72 mv ${.TARGET}.tmp ${.TARGET} 73.endfor 74.endif 75 76.if !empty(TAP_TESTS_SH) 77SCRIPTS+= ${TAP_TESTS_SH} --- 16 unchanged lines hidden --- |