Deleted Added
full compact
plain.test.mk (263161) plain.test.mk (268445)
1# $FreeBSD: head/share/mk/plain.test.mk 263161 2014-03-14 08:56:19Z jmmv $
1# $FreeBSD: head/share/mk/plain.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 plain test programs. A plain test programs it not
6# supposed to use any specific testing framework: all it does is run some code
7# and report the test's pass or fail status via a 0 or 1 exit code.
8
9.if !target(__<bsd.test.mk>__)

--- 42 unchanged lines hidden (view full) ---

52TEST_INTERFACE.${_T}= plain
53CLEANFILES+= ${_T} ${_T}.tmp
54# TODO(jmmv): It seems to me that this SED and SRC functionality should
55# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if
56# this proves to be useful within the tests.
57PLAIN_TESTS_SH_SED_${_T}?= # empty
58PLAIN_TESTS_SH_SRC_${_T}?= ${_T}.sh
59${_T}: ${PLAIN_TESTS_SH_SRC_${_T}}
2#
3# You must include bsd.test.mk instead of this file from your Makefile.
4#
5# Logic to build and install plain test programs. A plain test programs it not
6# supposed to use any specific testing framework: all it does is run some code
7# and report the test's pass or fail status via a 0 or 1 exit code.
8
9.if !target(__<bsd.test.mk>__)

--- 42 unchanged lines hidden (view full) ---

52TEST_INTERFACE.${_T}= plain
53CLEANFILES+= ${_T} ${_T}.tmp
54# TODO(jmmv): It seems to me that this SED and SRC functionality should
55# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if
56# this proves to be useful within the tests.
57PLAIN_TESTS_SH_SED_${_T}?= # empty
58PLAIN_TESTS_SH_SRC_${_T}?= ${_T}.sh
59${_T}: ${PLAIN_TESTS_SH_SRC_${_T}}
60 cat ${.ALLSRC} | sed ${PLAIN_TESTS_SH_SED_${_T}} >${.TARGET}.tmp
60 cat ${.ALLSRC:N*Makefile*} \
61 | sed ${PLAIN_TESTS_SH_SED_${_T}} >${.TARGET}.tmp
61 chmod +x ${.TARGET}.tmp
62 mv ${.TARGET}.tmp ${.TARGET}
63.endfor
64.endif
62 chmod +x ${.TARGET}.tmp
63 mv ${.TARGET}.tmp ${.TARGET}
64.endfor
65.endif