mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
lttng-tools: make ptest able to work on target
The paths of executable files in test cases are the source code path, need to fix to make them work on target (From OE-Core rev: 48067c2093e397255e41b0222da3b7612f1458a7) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user