summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2013-11-18 13:41:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-18 12:44:05 +0000
commit9a9a597193e3667e32ecc189ac489614c9d77c8b (patch)
tree33567e3a2b83d0636c3033090b8937da864db346 /meta/recipes-kernel
parentbba44c613f12079081fb0a20cbd2e99adc5276c3 (diff)
downloadpoky-9a9a597193e3667e32ecc189ac489614c9d77c8b.tar.gz
lttng-tools: Fixes incorrect path of ptest cases
In ptest cases, some paths are still the source code path. Continue to fix the paths of executable files in ptest cases to make them work on target. (From OE-Core rev: 95a0eb99b9fd88288b6f03c7d0173c392d25de28) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb21
1 files changed, 13 insertions, 8 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb
index f2a43b4cb5..49c0992068 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb
@@ -38,17 +38,22 @@ INSANE_SKIP_${PN}-dbg = "libexec"
38do_install_ptest () { 38do_install_ptest () {
39 chmod +x ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh 39 chmod +x ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh
40 for i in `find ${D}/${libdir}/${PN}/ptest -perm /u+x -type f`; do 40 for i in `find ${D}/${libdir}/${PN}/ptest -perm /u+x -type f`; do
41 sed -e "s:\$TESTDIR.*/src/bin/lttng/\$LTTNG_BIN:\$LTTNG_BIN:" \ 41 sed -e "s:\$TESTDIR.*/src/bin/lttng/\$LTTNG_BIN:\$LTTNG_BIN:g" \
42 -e "s:\$TESTDIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:" \ 42 -e "s:\$TESTDIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \
43 -e "s:\$DIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:" \ 43 -e "s:\$DIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \
44 -e "s:\$TESTDIR/../src/bin/lttng-consumerd/:${libedir}/lttng/libexec/:" \ 44 -e "s:\$TESTDIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \
45 -e "s:\$DIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:" \ 45 -e "s:\$DIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \
46 -e "s:\$TESTDIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:" \ 46 -e "s:\$TESTDIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \
47 -e "s:\$DIR/../src/bin/lttng-sessiond/lttng-sessiond:\$SESSIOND_BIN:g" \
48 -e "s:\$DIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \
49 -e "s:\$DIR/../bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \
47 -i $i 50 -i $i
48 done 51 done
49 52
50 sed -e "s:src/bin/lttng-sessiond:$bindir:" \ 53 sed -e "s:src/bin/lttng-sessiond:$bindir:g" \
51 -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:" \ 54 -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:g" \
52 -i ${D}/${libdir}/${PN}/ptest/tests/regression/run-report.py 55 -i ${D}/${libdir}/${PN}/ptest/tests/regression/run-report.py
56 sed -e "s:src/bin:bin:g" \
57 -i ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh
53 58
54} 59}