mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
rsyslog: Use python3 in ptests
Adjusts rdeps accordingly Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -77,6 +77,12 @@ PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi,"
|
|||||||
PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,,"
|
PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,,"
|
||||||
PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind,"
|
PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind,"
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
sed -i -e 's|python |python3 |g' ${S}/tests/*.sh
|
||||||
|
sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/*.py
|
||||||
|
sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/testsuites/*.py
|
||||||
|
}
|
||||||
|
|
||||||
TESTDIR = "tests"
|
TESTDIR = "tests"
|
||||||
do_compile_ptest() {
|
do_compile_ptest() {
|
||||||
echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
|
echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
|
||||||
@@ -186,6 +192,6 @@ VALGRIND_riscv64 = ""
|
|||||||
|
|
||||||
RDEPENDS_${PN}-ptest += "\
|
RDEPENDS_${PN}-ptest += "\
|
||||||
make diffutils gzip bash gawk coreutils procps \
|
make diffutils gzip bash gawk coreutils procps \
|
||||||
libgcc python-core python-io \
|
libgcc python3-core python3-io \
|
||||||
"
|
"
|
||||||
RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}"
|
RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}"
|
||||||
|
|||||||
Reference in New Issue
Block a user