[packages/libgav1] - try to skip tests unsupported on host CPU

qboosh qboosh at pld-linux.org
Mon Mar 6 06:38:35 CET 2023


commit 8b2c064242a5981ca2a1ca48040d201f71458f2b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 6 06:40:30 2023 +0100

    - try to skip tests unsupported on host CPU

 libgav1.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/libgav1.spec b/libgav1.spec
index 00033c2..bf218e0 100644
--- a/libgav1.spec
+++ b/libgav1.spec
@@ -77,6 +77,12 @@ cd build
 %if %{with tests}
 # how to execute all automatically?
 for f in $(echo ./*_test) ; do
+	if [ "$f" = "./common_avx2_test"] && ! grep -Fs avx2 ; then
+		continue
+	fi
+	if [ "$f" = "./common_sse4_test"] && ! grep -Fs sse4_1 ; then
+		continue
+	fi
 	$f
 done
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgav1.git/commitdiff/8b2c064242a5981ca2a1ca48040d201f71458f2b



More information about the pld-cvs-commit mailing list