From: Lee Chee Yang <[email protected]>
Signed-off-by: Lee Chee Yang <[email protected]>
Signed-off-by: Lee Chee Yang <[email protected]>
---
recipes-graphics/libva/libva-intel-utils/run-ptest | 9 +++++++++
recipes-graphics/libva/libva-intel-utils_2.13.0.bb | 14 ++++++++++++--
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100755 recipes-graphics/libva/libva-intel-utils/run-ptest
diff --git a/recipes-graphics/libva/libva-intel-utils/run-ptest
b/recipes-graphics/libva/libva-intel-utils/run-ptest
new file mode 100755
index 00000000..0239eeb8
--- /dev/null
+++ b/recipes-graphics/libva/libva-intel-utils/run-ptest
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+test_va_api
+if [ $? -eq 0 ]; then
+ echo 'PASS: test_va_api'
+else
+ echo 'FAIL: test_va_api'
+fi
+
diff --git a/recipes-graphics/libva/libva-intel-utils_2.13.0.bb
b/recipes-graphics/libva/libva-intel-utils_2.13.0.bb
index 7accee5f..db7ec78c 100644
--- a/recipes-graphics/libva/libva-intel-utils_2.13.0.bb
+++ b/recipes-graphics/libva/libva-intel-utils_2.13.0.bb
@@ -14,7 +14,9 @@ SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=b148fc8adf19dc9aec17cf9cd29a9a5e"
-SRC_URI =
"git://github.com/intel/libva-utils.git;branch=v2.13-branch;protocol=https"
+SRC_URI =
"git://github.com/intel/libva-utils.git;branch=v2.13-branch;protocol=https \
+ file://run-ptest \
+"
SRCREV = "7bad184b2cf2ffaf4fb3cc71d4df63d7b142d592"
S = "${WORKDIR}/git"
@@ -22,7 +24,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
DEPENDS = "libva"
-inherit meson pkgconfig features_check
+inherit meson pkgconfig features_check ptest
+
+EXTRA_OEMESON += "-Dtests=true"
# depends on libva which requires opengl
REQUIRED_DISTRO_FEATURES = "opengl"
@@ -33,3 +37,9 @@ PACKAGECONFIG[wayland] = "-Dwayland=true,
-Dwayland=false,wayland-native wayland
PROVIDES = "libva-utils"
RPROVIDES:${PN} += "libva-utils"
+
+do_install_ptest(){
+ install -m 0755 ${B}/test/test_va_api ${D}${PTEST_PATH}
+}
+
+RDEPENDS:${PN}-ptest = "bash libva intel-media-driver"
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7482):
https://lists.yoctoproject.org/g/meta-intel/message/7482
Mute This Topic: https://lists.yoctoproject.org/mt/90258754/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-