Deleted Added
full compact
plain.test.mk (260037) plain.test.mk (264483)
1# $FreeBSD: stable/10/share/mk/plain.test.mk 260037 2013-12-29 12:30:06Z jmmv $
1# $FreeBSD: stable/10/share/mk/plain.test.mk 264483 2014-04-14 23:51:57Z jmmv $
2#
2#
3# You must include bsd.test.mk instead of this file from your Makefile.
4#
3# Logic to build and install plain test programs. A plain test programs it not
4# supposed to use any specific testing framework: all it does is run some code
5# and report the test's pass or fail status via a 0 or 1 exit code.
6
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
7.include <bsd.init.mk>
9.if !target(__<bsd.test.mk>__)
10.error plain.test.mk cannot be included directly.
11.endif
8
9# List of C, C++ and shell test programs to build.
10#
11# Programs listed here are built according to the semantics of bsd.prog.mk for
12# PROGS, PROGS_CXX and SCRIPTS, respectively.
13#
14# Test programs registered in this manner are set to be installed into TESTSDIR
15# (which should be overriden by the Makefile) and are not required to provide a

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

53PLAIN_TESTS_SH_SED_${_T}?= # empty
54PLAIN_TESTS_SH_SRC_${_T}?= ${_T}.sh
55${_T}: ${PLAIN_TESTS_SH_SRC_${_T}}
56 cat ${.ALLSRC} | sed ${PLAIN_TESTS_SH_SED_${_T}} >${.TARGET}.tmp
57 chmod +x ${.TARGET}.tmp
58 mv ${.TARGET}.tmp ${.TARGET}
59.endfor
60.endif
12
13# List of C, C++ and shell test programs to build.
14#
15# Programs listed here are built according to the semantics of bsd.prog.mk for
16# PROGS, PROGS_CXX and SCRIPTS, respectively.
17#
18# Test programs registered in this manner are set to be installed into TESTSDIR
19# (which should be overriden by the Makefile) and are not required to provide a

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

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
61 chmod +x ${.TARGET}.tmp
62 mv ${.TARGET}.tmp ${.TARGET}
63.endfor
64.endif
61
62.include <bsd.test.mk>