History

Merge commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a'

* commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a': fate: Add --ignore-tests configure option for omitting specific FATE tests

Clément Bœsch committed 9 years ago

Commit f5218b22 parents a5fdda7 35d1f725 files · +23 −3Browse files

Unified · Split

5 files
  1. configure +11 −0
  2. doc/fate_config.sh.template +1 −0
  3. tests/Makefile +3 −1
  4. tests/fate-run.sh +7 −2
  5. tests/fate.sh +1 −0
configure+11−0
@@ -440,6 +440,8 @@ Developer options (useful when working on FFmpeg itself): · 439 unmodified lines
440440 (only applies to --disable-optimizations builds)
441441 --enable-osfuzz Enable building fuzzer tool
442442 --libfuzzer=PATH path to libfuzzer
443+ --ignore-tests=TESTS comma-separated list (without "fate-" prefix
444+ in the name) of tests whose result is ignored
443445
444446 NOTE: Object files are built at the place where configure is launched.
445447 EOF
@@ -2209,6 +2211,7 @@ CMDLINE_SET=" · 1763 unmodified lines
22092211 host_ld
22102212 host_ldflags
22112213 host_os
2214+ ignore_tests
22122215 install
22132216 ld
22142217 ln_s
@@ -6617,6 +6620,13 @@ for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf ind · 4402 unmodified lines
66176620 echo
66186621 done
66196622
6623+if test -n "$ignore_tests"; then
6624+ ignore_tests=$(echo $ignore_tests | tr ',' ' ')
6625+ echo "Ignored FATE tests:"
6626+ echo $ignore_tests | print_in_columns
6627+ echo
6628+fi
6629+
66206630 echo "License: $license"
66216631
66226632 echo "Creating configuration files ..."
@@ -6754,6 +6764,7 @@ VERSION_SCRIPT_POSTPROCESS_CMD=${VERSION_SCRIPT_POSTPROCESS_CMD} · 131 unmodified lines
67546764 SAMPLES:=${samples:-\$(FATE_SAMPLES)}
67556765 NOREDZONE_FLAGS=$noredzone_flags
67566766 LIBFUZZER_PATH=$libfuzzer_path
6767+IGNORE_TESTS=$ignore_tests
67576768 EOF
67586769
67596770 map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> ffbuild/config.mak' $LIBRARY_LIST
doc/fate_config.sh.template+1−0
@@ -6,6 +6,7 @@ workdir= # directory in which to do all the work · 5 unmodified lines
66 #fate_recv="ssh -T fate@fate.ffmpeg.org" # command to submit report
77 comment= # optional description
88 build_only= # set to "yes" for a compile-only instance that skips tests
9+ignore_tests=
910
1011 # the following are optional and map to configure options
1112 arch=
tests/Makefile+3−1
@@ -212,12 +212,14 @@ FATE_UTILS = base64 tiny_psnr tiny_ssim audiomatch · 211 unmodified lines
212212
213213 TOOL = ffmpeg
214214
215+$(addprefix fate-, $(IGNORE_TESTS)): REPORT=ignore
216+
215217 fate:: $(FATE)
216218
217219 $(FATE) $(FATE_TESTS-no): export PROGSUF = $(PROGSSUF)
218220 $(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
219221 @echo "TEST $(@:fate-%=%)"
220− $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(TARGET_SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)' '$(HWACCEL)'
222+ $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(TARGET_SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)' '$(HWACCEL)' '$(REPORT)'
221223
222224 fate-list:
223225 @printf '%s\n' $(sort $(FATE))
tests/fate-run.sh+7−2
@@ -24,6 +24,7 @@ size_tolerance=${14:-0} · 23 unmodified lines
2424 cmp_unit=${15:-2}
2525 gen=${16:-no}
2626 hwaccel=${17:-none}
27+report_type=${18:-standard}
2728
2829 outdir="tests/data/fate"
2930 outfile="${outdir}/${test}"
@@ -362,13 +363,17 @@ if test -e "$ref" || test $cmp = "oneline" || test $cmp = "grep" ; then · 332 unmodified lines
362363 esac
363364 cmperr=$?
364365 test $err = 0 && err=$cmperr
365− test $err = 0 || cat $cmpfile
366+ if [ "$report_type" = "ignore" ]; then
367+ test $err = 0 || echo "IGNORE fate-${test}" && err=0
368+ else
369+ test $err = 0 || cat $cmpfile
370+ fi
366371 else
367372 echo "reference file '$ref' not found"
368373 err=1
369374 fi
370375
371−if [ $err -eq 0 ]; then
376+if [ $err -eq 0 ] && test $report_type = "standard" ; then
372377 unset cmpo erro
373378 else
374379 cmpo="$($base64 <$cmpfile)"
tests/fate.sh+1−0
@@ -49,6 +49,7 @@ configure()( · 48 unmodified lines
4949 --enable-gpl \
5050 --enable-memory-poisoning \
5151 --enable-avresample \
52+ ${ignore_tests:+--ignore-tests="$ignore_tests"} \
5253 ${arch:+--arch=$arch} \
5354 ${cpu:+--cpu="$cpu"} \
5455 ${toolchain:+--toolchain="$toolchain"} \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t