]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lttng-tools: make ptest able to work on target
authorRoy.Li <rongqing.li@windriver.com>
Wed, 30 Oct 2013 06:05:06 +0000 (14:05 +0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 1 Nov 2013 06:57:03 +0000 (23:57 -0700)
The paths of executable files in test cases are the source code path,
need to fix to make them work on target

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-kernel/lttng/lttng-tools_2.3.0.bb

index 4322027d7d03cf07b48ced2978b2139fb9c9cb12..f2a43b4cb55cd8228a2ea5dcc05bd38285dda182 100644 (file)
@@ -33,3 +33,22 @@ FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug"
 # the libexec insane test so skip it.
 INSANE_SKIP_${PN} = "libexec"
 INSANE_SKIP_${PN}-dbg = "libexec"
+
+
+do_install_ptest () {
+       chmod +x ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh
+       for i in `find ${D}/${libdir}/${PN}/ptest -perm /u+x -type f`; do
+               sed -e "s:\$TESTDIR.*/src/bin/lttng/\$LTTNG_BIN:\$LTTNG_BIN:" \
+                 -e "s:\$TESTDIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:" \
+                 -e "s:\$DIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:" \
+                 -e "s:\$TESTDIR/../src/bin/lttng-consumerd/:${libedir}/lttng/libexec/:" \
+                 -e "s:\$DIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:" \
+                 -e "s:\$TESTDIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:" \
+                 -i $i
+       done
+
+       sed -e "s:src/bin/lttng-sessiond:$bindir:" \
+           -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:" \
+       -i ${D}/${libdir}/${PN}/ptest/tests/regression/run-report.py
+
+}