summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-12-31 15:45:12 +0000
committermarkj <markj@FreeBSD.org>2013-12-31 15:45:12 +0000
commite7dbbf7b9650bec1f35d1203f68e262933fc6167 (patch)
tree38c2a2e184045dbe4f316b5ef1e38ccad82d19cb /tools
parent31d017a7a550725d8ee0bcdf542095d06346d7ea (diff)
downloadFreeBSD-src-e7dbbf7b9650bec1f35d1203f68e262933fc6167.zip
FreeBSD-src-e7dbbf7b9650bec1f35d1203f68e262933fc6167.tar.gz
Some DTrace tests (mostly in the pid provider directory) make use of
executable ksh scripts. These are currently not copied into the test directory the way that compiled executables are, so the tests which make use of them cannot work. This changes the test Makefile to copy the scripts into the test directory.
Diffstat (limited to 'tools')
-rw-r--r--tools/test/dtrace/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/test/dtrace/Makefile b/tools/test/dtrace/Makefile
index fc8af34..bf3e787 100644
--- a/tools/test/dtrace/Makefile
+++ b/tools/test/dtrace/Makefile
@@ -297,6 +297,8 @@ ${_d}_TSTD!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.d"
${_d}_TSTC!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.c"
${_d}_SHERR!= find ${TESTSRCDIR}/tst/common/${_d} -name "err.*.ksh"
${_d}_SHTST!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.ksh"
+${_d}_EXE!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.exe" -o \
+ -name "err.*.exe"
${_d}_TF= ${${_d}_ERR} ${${_d}_TSTD} ${${_d}_SHERR} ${${_d}_SHTST}
# Go through the list of test files and prepare another list that contains
@@ -317,15 +319,16 @@ ${_d}_TFCS+= ${_f}
.endfor
ALL_TESTCFILES+= ${${_d}_TFCS}
+ALL_TESTEXEFILES+= ${${_d}_EXE}
-${_d} : ${${_d}_TFCS:T:S/c$/exe/}
+${_d} : ${${_d}_TFCS:T:S/c$/exe/} ${${_d}_EXE:T}
@${DTEST} ${${_d}_TFS}
.endfor
# --------------------------------------------------------------------------------
#
-PRGS= ${ALL_TESTCFILES:T:S/c$/exe/}
+PRGS= ${ALL_TESTCFILES:T:S/c$/exe/} ${ALL_TESTEXEFILES:T}
listprgs :
@echo ${PRGS}
@@ -338,6 +341,12 @@ ${_f:T:S/c$/exe/} : ${_f}
gcc -o ${.TARGET} ${_f} -lrt
.endfor
+.for _f in ${ALL_TESTEXEFILES}
+${_f:T} : ${_f}
+ cp -f ${_f} ${.TARGET}
+ chmod a+x ${.TARGET}
+.endfor
+
listcfiles :
@echo ${ALL_TESTCFILES}
OpenPOWER on IntegriCloud