diff mbox series

[meta-arago,master/kirkstone,PATCHv2] ti-test: add piglit to ARAGO_TEST

Message ID 20230606195101.1611396-1-rs@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,master/kirkstone,PATCHv2] ti-test: add piglit to ARAGO_TEST | expand

Commit Message

Randolph Sapp June 6, 2023, 7:51 p.m. UTC
From: Randolph Sapp <rs@ti.com>

Piglit is an OpenGL test suite and test-suite runner with support for
OpenGLES, Vulkan, OpenCL compliance tests. This in particular is very
nice in tracking feature regressions and driver conformance.

Signed-off-by: Randolph Sapp <rs@ti.com>
---

Ugh. I love how yocto will arbitrarily pad certain fields with
whitespace and simultaneously expect you to pad others manually.

 meta-arago-distro/conf/distro/arago.conf                | 3 +++
 meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 3 +++
 2 files changed, 6 insertions(+)

Comments

Denys Dmytriyenko June 6, 2023, 11:02 p.m. UTC | #1
On Tue, Jun 06, 2023 at 02:51:01PM -0500, rs@ti.com wrote:
> From: Randolph Sapp <rs@ti.com>
> 
> Piglit is an OpenGL test suite and test-suite runner with support for
> OpenGLES, Vulkan, OpenCL compliance tests. This in particular is very
> nice in tracking feature regressions and driver conformance.
> 
> Signed-off-by: Randolph Sapp <rs@ti.com>
> ---
> 
> Ugh. I love how yocto will arbitrarily pad certain fields with
> whitespace and simultaneously expect you to pad others manually.

Sections 3.1.8, 3.1.9 and 3.1.10 of Bitbake manual:

3.1.8 Appending (+=) and prepending (=+) With Spaces
3.1.9 Appending (.=) and Prepending (=.) Without Spaces
3.1.10 Appending and Prepending (:append Override Style Syntax)

https://docs.yoctoproject.org/bitbake/2.4/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-with-spaces
https://docs.yoctoproject.org/bitbake/2.4/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-without-spaces
https://docs.yoctoproject.org/bitbake/2.4/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-override-style-syntax


>  meta-arago-distro/conf/distro/arago.conf                | 3 +++
>  meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> index a6425fae..2f81f118 100644
> --- a/meta-arago-distro/conf/distro/arago.conf
> +++ b/meta-arago-distro/conf/distro/arago.conf
> @@ -95,6 +95,9 @@ PACKAGECONFIG:pn-curl = "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6",
>  
>  PACKAGECONFIG:pn-glmark2 = "drm-gles2 wayland-gles2"
>  
> +# Enable testing for opencl and vulkan with piglit
> +PACKAGECONFIG:append:pn-piglit = " ${@bb.utils.filter("DISTRO_FEATURES", "opencl vulkan", d)}"
> +
>  # Enable encryption support in open62541
>  PACKAGECONFIG:append:pn-open62541 = " encrypt"
>  
> diff --git a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
> index 0b6e1eed..929d63c7 100644
> --- a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
> +++ b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
> @@ -39,6 +39,9 @@ ARAGO_TEST = "\
>      nbench-byte \
>      stream \
>      cryptodev-tests \
> +    piglit \
> +    ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} \
> +    ${@bb.utils.contains("DISTRO_FEATURES", "vulkan", "vulkan-cts", "", d)} \
>  "
>  
>  ARAGO_TEST:append:armv7a = " \
> -- 
> 2.40.1
>
diff mbox series

Patch

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index a6425fae..2f81f118 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -95,6 +95,9 @@  PACKAGECONFIG:pn-curl = "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6",
 
 PACKAGECONFIG:pn-glmark2 = "drm-gles2 wayland-gles2"
 
+# Enable testing for opencl and vulkan with piglit
+PACKAGECONFIG:append:pn-piglit = " ${@bb.utils.filter("DISTRO_FEATURES", "opencl vulkan", d)}"
+
 # Enable encryption support in open62541
 PACKAGECONFIG:append:pn-open62541 = " encrypt"
 
diff --git a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
index 0b6e1eed..929d63c7 100644
--- a/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
+++ b/meta-arago-distro/recipes-core/packagegroups/ti-test.bb
@@ -39,6 +39,9 @@  ARAGO_TEST = "\
     nbench-byte \
     stream \
     cryptodev-tests \
+    piglit \
+    ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} \
+    ${@bb.utils.contains("DISTRO_FEATURES", "vulkan", "vulkan-cts", "", d)} \
 "
 
 ARAGO_TEST:append:armv7a = " \