mirror of
git://git.openembedded.org/meta-openembedded
synced 2025-12-31 13:38:06 +00:00
crossguid: add ptest support
Execution takes less than a second. Sample output: root@qemux86-64:~# ptest-runner START: ptest-runner 2025-12-24T16:06 BEGIN: /usr/lib/crossguid/ptest 0d154108-445a-4d20-9d74-623eb15c0ebe c79e3cdf-fe16-4a9c-bad2-0fadf5761d05 ac7f9a04-f63f-49ee-a95b-6020378bff6f All tests passed! PASS: crossguid-test DURATION: 0 END: /usr/lib/crossguid/ptest 2025-12-24T16:06 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
fa3a2a7193
commit
fe1b915f23
@ -7,6 +7,7 @@
|
||||
# ptests which take less than ~30s each
|
||||
|
||||
PTESTS_FAST_META_MULTIMEDIA = "\
|
||||
crossguid \
|
||||
gssdp \
|
||||
gupnp-av \
|
||||
gupnp-igd \
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
RET=0
|
||||
cd tests
|
||||
if ./crossguid-test; then
|
||||
echo PASS: crossguid-test
|
||||
else
|
||||
echo FAIL: crossguid-test
|
||||
RET=1
|
||||
fi
|
||||
exit $RET
|
||||
@ -9,11 +9,16 @@ DEPENDS += "util-linux"
|
||||
|
||||
SRCREV = "ca1bf4b810e2d188d04cb6286f957008ee1b7681"
|
||||
SRC_URI = "git://github.com/graeme-hill/crossguid;protocol=https;branch=master \
|
||||
file://run-ptest \
|
||||
file://0001-include-missing-cstdint.patch"
|
||||
|
||||
|
||||
inherit cmake
|
||||
inherit cmake ptest
|
||||
|
||||
do_install:append() {
|
||||
sed -i -e 's|${STAGING_DIR_HOST}||g' ${D}${datadir}/crossguid/cmake/crossguid-config.cmake
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
install -D ${B}/crossguid-test ${D}${PTEST_PATH}/tests/crossguid-test
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user