This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: test-media: add -32-time64 option
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Sun Sep 29 11:17:01 2024 +0200

This will test with 32-bit v4l2-ctl/compliance with 64 bit time_t.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 contrib/test/test-media | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=be0649f7c1ece1230f3eb795eb8199831833645a
diff --git a/contrib/test/test-media b/contrib/test/test-media
index d6ecf7719ad3..81b0ee5c3060 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -47,6 +47,7 @@ if [ -z "$1" ]; then
        echo "-E: exit on fail"
        echo "-W: exit on warn"
        echo "-32: use v4l2-ctl-32 and v4l2-compliance-32 to test the 32 bit 
compat layer"
+       echo "-32-time64: use v4l2-ctl-32-time64 and v4l2-compliance-32-time64 
to test the 32 bit compat layer with 64 bit time_t"
        echo "-setup: load and configure all the drivers, but do not run tests"
        echo
        echo Test Targets:
@@ -100,6 +101,23 @@ while [ ! -z "$1" ]; do
                        echo /sys/kernel/debug/kmemleak not found, disable 
memleak testing
                fi
                ;;
+       -32-time64)
+               v4l2_ctl=v4l2-ctl-32-time64
+               v4l2_compliance=v4l2-compliance-32-time64
+               if ! which $v4l2_ctl >/dev/null ; then
+                       echo v4l2-ctl-32-time64 is not installed.
+                       exit 0
+               fi
+               if ! which $v4l2_compliance >/dev/null ; then
+                       echo v4l2-compliance-32-time64 is not installed.
+                       exit 0
+               fi
+               if ! `$v4l2_compliance --version | grep -q "64-bit time_t"` ; 
then
+                       echo $v4l2_compliance is not using 64 bit time_t:
+                       $v4l2_compliance --version
+                       exit 0
+               fi
+               ;;
        -32)
                v4l2_ctl=v4l2-ctl-32
                v4l2_compliance=v4l2-compliance-32
@@ -111,6 +129,11 @@ while [ ! -z "$1" ]; do
                        echo v4l2-compliance-32 is not installed.
                        exit 0
                fi
+               if ! `$v4l2_compliance --version | grep -q "32-bit time_t"` ; 
then
+                       echo $$v4l2_compliance is not using 32 bit time_t:
+                       $v4l2_compliance --version
+                       exit 0
+               fi
                ;;
        all)
                vidtv=1

Reply via email to