summaryrefslogtreecommitdiffstats
path: root/share/mk/plain.test.mk
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2013-12-29 12:30:06 +0000
committerjmmv <jmmv@FreeBSD.org>2013-12-29 12:30:06 +0000
commit908cb17891aa83b8eea1a8b01d59548b58a36b44 (patch)
tree1128bd086ee22e2d3e8b1ab064a5f151727f8d4e /share/mk/plain.test.mk
parent5b37933bb72730397999bcb56cd09eb1dd2d7567 (diff)
downloadFreeBSD-src-908cb17891aa83b8eea1a8b01d59548b58a36b44.zip
FreeBSD-src-908cb17891aa83b8eea1a8b01d59548b58a36b44.tar.gz
Add sample test programs.
This is a MFC of the following into stable/10: - r258299 Add some sample test programs. - r258552 Generate plain sh test programs from a source file. As usual, "make tinderbox" clean on ref10-amd64.
Diffstat (limited to 'share/mk/plain.test.mk')
-rw-r--r--share/mk/plain.test.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/mk/plain.test.mk b/share/mk/plain.test.mk
index b41c585..2e2752d 100644
--- a/share/mk/plain.test.mk
+++ b/share/mk/plain.test.mk
@@ -46,6 +46,16 @@ _TESTS+= ${PLAIN_TESTS_SH}
.for _T in ${PLAIN_TESTS_SH}
SCRIPTSDIR_${_T}= ${TESTSDIR}
TEST_INTERFACE.${_T}= plain
+CLEANFILES+= ${_T} ${_T}.tmp
+# TODO(jmmv): It seems to me that this SED and SRC functionality should
+# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if
+# this proves to be useful within the tests.
+PLAIN_TESTS_SH_SED_${_T}?= # empty
+PLAIN_TESTS_SH_SRC_${_T}?= ${_T}.sh
+${_T}: ${PLAIN_TESTS_SH_SRC_${_T}}
+ cat ${.ALLSRC} | sed ${PLAIN_TESTS_SH_SED_${_T}} >${.TARGET}.tmp
+ chmod +x ${.TARGET}.tmp
+ mv ${.TARGET}.tmp ${.TARGET}
.endfor
.endif
OpenPOWER on IntegriCloud