This can be useful to filter out noise in known-broken scenarios like
miscompilation by legacy compilers and similar.
---

Updated help text description, removed stray extra whitespace.

 configure      | 11 +++++++++++
 doc/fate.texi  |  1 +
 tests/Makefile |  2 +-
 tests/fate.sh  |  1 +
 4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 9b24a91..0ae384b 100755
--- a/configure
+++ b/configure
@@ -347,6 +347,9 @@ Developer options (useful when working on Libav itself):
   --random-seed=VALUE      seed value for --enable/disable-random
   --disable-valgrind-backtrace do not print a backtrace under Valgrind
                            (only applies to --disable-optimizations builds)
+  --ignore-tests=TESTS     whitespace-separated list (without "fate-" prefix
+                           in the name) of tests not to run as part of the
+                           fate target
 
 NOTE: Object files are built at the place where configure is launched.
 EOF
@@ -1799,6 +1802,7 @@ CMDLINE_SET="
     host_ldflags
     host_libs
     host_os
+    ignore_tests
     ld
     logfile
     malloc_prefix
@@ -5189,6 +5193,12 @@ for type in decoder encoder hwaccel parser demuxer muxer 
protocol filter bsf ind
     echo
 done
 
+if test -n "$ignore_tests"; then
+    echo "Ignored FATE tests:"
+    echo $ignore_tests | print_3_columns
+    echo
+fi
+
 license="LGPL version 2.1 or later"
 if enabled nonfree; then
     license="nonfree and unredistributable"
@@ -5313,6 +5323,7 @@ SLIB_INSTALL_EXTRA_LIB=${SLIB_INSTALL_EXTRA_LIB}
 SLIB_INSTALL_EXTRA_SHLIB=${SLIB_INSTALL_EXTRA_SHLIB}
 VERSION_SCRIPT_POSTPROCESS_CMD=${VERSION_SCRIPT_POSTPROCESS_CMD}
 SAMPLES:=${samples:-\$(LIBAV_SAMPLES)}
+IGNORE_TESTS=$ignore_tests
 EOF
 
 get_version(){
diff --git a/doc/fate.texi b/doc/fate.texi
index 9b8d953..1cc7c6c 100644
--- a/doc/fate.texi
+++ b/doc/fate.texi
@@ -139,6 +139,7 @@ workdir=                                # directory in 
which to do all the work
 fate_recv="ssh -T fate@@fate.libav.org"  # command to submit report
 comment=                                # optional description
 build_only=     # set to "yes" for a compile-only instance that skips tests
+ignore_tests=
 
 # the following are optional and map to configure options
 arch=
diff --git a/tests/Makefile b/tests/Makefile
index 36a3a72..8c2f927 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -142,7 +142,7 @@ endif
 
 FATE_UTILS = base64 tiny_psnr
 
-fate: $(FATE)
+fate: $(filter-out $(addprefix fate-,$(IGNORE_TESTS)),$(FATE))
 
 $(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
        @echo "TEST    $(@:fate-%=%)"
diff --git a/tests/fate.sh b/tests/fate.sh
index b8ee1ae..21c7ffe 100755
--- a/tests/fate.sh
+++ b/tests/fate.sh
@@ -47,6 +47,7 @@ configure()(
         --prefix="${inst}"                                              \
         --samples="${samples}"                                          \
         --enable-gpl                                                    \
+        ${ignore_tests:+--ignore-tests="$ignore_tests"}                 \
         ${arch:+--arch=$arch}                                           \
         ${cpu:+--cpu="$cpu"}                                            \
         ${toolchain:+--toolchain="$toolchain"}                          \
-- 
2.1.4

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to