Deleted Added
full compact
tap.test.mk (264483) tap.test.mk (271298)
1# $FreeBSD: stable/10/share/mk/tap.test.mk 264483 2014-04-14 23:51:57Z jmmv $
1# $FreeBSD: stable/10/share/mk/tap.test.mk 271298 2014-09-09 04:00:30Z ngie $
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 ---