mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
gupnp-av: add ptest support
It takes around a second to execute the suite. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
b8d9e45b69
commit
65c2f6de55
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
PTESTS_FAST_META_MULTIMEDIA = "\
|
PTESTS_FAST_META_MULTIMEDIA = "\
|
||||||
gssdp \
|
gssdp \
|
||||||
|
gupnp-av \
|
||||||
libopenmpt\
|
libopenmpt\
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
RET=0
|
||||||
|
cd tests
|
||||||
|
for t in $(find . -type f -executable); do
|
||||||
|
if ./$t; then
|
||||||
|
echo PASS: $t
|
||||||
|
else
|
||||||
|
echo FAIL: $t
|
||||||
|
RET=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit $RET
|
||||||
|
|
@ -6,7 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||||
|
|
||||||
DEPENDS = "gupnp"
|
DEPENDS = "gupnp"
|
||||||
|
|
||||||
inherit gi-docgen meson pkgconfig gobject-introspection vala
|
inherit gi-docgen meson pkgconfig gobject-introspection vala ptest
|
||||||
|
|
||||||
SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz"
|
SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \
|
||||||
|
file://run-ptest"
|
||||||
SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7"
|
SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7"
|
||||||
|
|
||||||
|
do_configure:prepend(){
|
||||||
|
# set ABS_TOP_SRCDIR to ${PTEST_PATH instead of the source-dir on the host}
|
||||||
|
sed -i "s!\(-DABS_TOP_SRCDIR=\"\).*!\1${PTEST_PATH}/tests\"'],!" ${S}/tests/meson.build
|
||||||
|
# same for DATA_PATH in the other test folder
|
||||||
|
sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests\"']!" ${S}/tests/gtest/meson.build
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_ptest(){
|
||||||
|
cd ${B}/tests
|
||||||
|
find . -type f -executable -exec install -D {} ${D}${PTEST_PATH}/tests/{} \;
|
||||||
|
cp -r ${S}/tests/gtest/data ${D}${PTEST_PATH}/tests
|
||||||
|
|
||||||
|
# this test is not enabled for execution in 0.14.4 in meson.build
|
||||||
|
rm ${D}${PTEST_PATH}/tests/test-search-criteria-parser
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user