mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-27 14:08:07 +00:00
audiofile: add ptest support
It's under 15 seconds to execute it. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 85ded08df0ad850928eea9919674161d94da5454)
This commit is contained in:
parent
2953cc85a1
commit
615409d45c
@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
|
|||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
${GNOME_MIRROR}/audiofile/0.3/${BP}.tar.xz \
|
${GNOME_MIRROR}/audiofile/0.3/${BP}.tar.xz \
|
||||||
|
file://run-ptest \
|
||||||
file://0001-fix-negative-shift-constants.patch \
|
file://0001-fix-negative-shift-constants.patch \
|
||||||
file://0002-fix-build-on-gcc6.patch \
|
file://0002-fix-build-on-gcc6.patch \
|
||||||
file://0003-fix-CVE-2015-7747.patch \
|
file://0003-fix-CVE-2015-7747.patch \
|
||||||
@ -24,7 +25,7 @@ SRC_URI = " \
|
|||||||
SRC_URI[md5sum] = "235dde14742317328f0109e9866a8008"
|
SRC_URI[md5sum] = "235dde14742317328f0109e9866a8008"
|
||||||
SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782"
|
SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782"
|
||||||
|
|
||||||
inherit autotools lib_package pkgconfig
|
inherit autotools lib_package pkgconfig ptest
|
||||||
|
|
||||||
DEPENDS = " \
|
DEPENDS = " \
|
||||||
asciidoc-native \
|
asciidoc-native \
|
||||||
@ -32,3 +33,18 @@ DEPENDS = " \
|
|||||||
libogg \
|
libogg \
|
||||||
flac \
|
flac \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
do_compile_ptest(){
|
||||||
|
oe_runmake -C gtest libgtest.la
|
||||||
|
cd test
|
||||||
|
# Query the TESTS variable value, remove the $(...) parts from it,
|
||||||
|
# compile as make target along with FLAC (which is an optional test)
|
||||||
|
oe_runmake `make -p | grep "^TESTS = " | sed 's/$([^)]*)//g' | cut -d= -f2` FLAC
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_ptest(){
|
||||||
|
install -d ${D}${PTEST_PATH}/test
|
||||||
|
for t in test/.libs/*; do
|
||||||
|
install $t ${D}${PTEST_PATH}/test/
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|||||||
14
meta-oe/recipes-multimedia/audiofile/files/run-ptest
Normal file
14
meta-oe/recipes-multimedia/audiofile/files/run-ptest
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
RES=0
|
||||||
|
cd test
|
||||||
|
for t in *; do
|
||||||
|
if ./$t; then
|
||||||
|
echo PASS: $t
|
||||||
|
else
|
||||||
|
echo FAIL: $t
|
||||||
|
RES=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $RES
|
||||||
Loading…
x
Reference in New Issue
Block a user