diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-02 21:44:05 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-02 15:54:06 -0800 |
| commit | e7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd (patch) | |
| tree | 9f5428a150a637d15c97f93c0b852536da38a7cc | |
| parent | dd108a46f88102a998a71c41f14ee6aec1ea90ea (diff) | |
| download | meta-openembedded-e7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd.tar.gz | |
gupnp: add ptest support
It takes almost 50 seconds on my machine to execute.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 26 insertions, 1 deletions
diff --git a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc index 7eb06f98ba..081ace6d22 100644 --- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc | |||
| @@ -12,6 +12,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\ | |||
| 12 | " | 12 | " |
| 13 | 13 | ||
| 14 | PTESTS_SLOW_META_MULTIMEDIA = "\ | 14 | PTESTS_SLOW_META_MULTIMEDIA = "\ |
| 15 | gupnp \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | PTESTS_PROBLEMS_META_MULTIMEDIA = "\ | 18 | PTESTS_PROBLEMS_META_MULTIMEDIA = "\ |
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest new file mode 100644 index 0000000000..2efcbcb773 --- /dev/null +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | RET=0 | ||
| 3 | cd tests | ||
| 4 | for t in $(find . -type f -executable -maxdepth 1); do | ||
| 5 | if ./$t; then | ||
| 6 | echo PASS: $t | ||
| 7 | else | ||
| 8 | echo FAIL: $t | ||
| 9 | RET=1 | ||
| 10 | fi | ||
| 11 | done | ||
| 12 | exit $RET | ||
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb index ee980cd382..e2bfcb5ed7 100644 --- a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb | |||
| @@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
| 5 | 5 | ||
| 6 | DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2" | 6 | DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2" |
| 7 | 7 | ||
| 8 | inherit gnomebase pkgconfig vala gobject-introspection | 8 | inherit gnomebase pkgconfig vala gobject-introspection ptest |
| 9 | SRC_URI += "file://run-ptest" | ||
| 9 | SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b" | 10 | SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b" |
| 10 | 11 | ||
| 11 | SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" | 12 | SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" |
| @@ -18,3 +19,14 @@ gupnp_sysroot_preprocess () { | |||
| 18 | FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" | 19 | FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" |
| 19 | 20 | ||
| 20 | RDEPENDS:${PN}-dev += "python3-core python3-xml" | 21 | RDEPENDS:${PN}-dev += "python3-core python3-xml" |
| 22 | |||
| 23 | do_configure:prepend(){ | ||
| 24 | # change the test-datadir from source-folder to ptest-folder | ||
| 25 | sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!" ${S}/tests/meson.build | ||
| 26 | } | ||
| 27 | |||
| 28 | do_install_ptest(){ | ||
| 29 | install -d ${D}${PTEST_PATH}/tests | ||
| 30 | find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; | ||
| 31 | cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/ | ||
| 32 | } | ||
