From 8b2c064242a5981ca2a1ca48040d201f71458f2b Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 6 Mar 2023 06:40:30 +0100 Subject: [PATCH] - 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 -- 2.44.0