From: Jakub Bogusz Date: Mon, 6 Mar 2023 05:40:30 +0000 (+0100) Subject: - try to skip tests unsupported on host CPU X-Git-Tag: auto/th/libgav1-0.18.0-2~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=8b2c064242a5981ca2a1ca48040d201f71458f2b;p=packages%2Flibgav1.git - try to skip tests unsupported on host CPU --- 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