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
440 (only applies to --disable-optimizations builds)440 (only applies to --disable-optimizations builds)
441 --enable-osfuzz Enable building fuzzer tool441 --enable-osfuzz Enable building fuzzer tool
442 --libfuzzer=PATH path to libfuzzer442 --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
443 445
444NOTE: Object files are built at the place where configure is launched.446NOTE: Object files are built at the place where configure is launched.
445EOF447EOF
@@ -2209,6 +2211,7 @@ CMDLINE_SET=" · 1763 unmodified lines
2209 host_ld2211 host_ld
2210 host_ldflags2212 host_ldflags
2211 host_os2213 host_os
2214 ignore_tests
2212 install2215 install
2213 ld2216 ld
2214 ln_s2217 ln_s
@@ -6617,6 +6620,13 @@ for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf ind · 4402 unmodified lines
6617 echo6620 echo
6618done6621done
6619 6622
6623if 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
6628fi
6629
6620echo "License: $license"6630echo "License: $license"
6621 6631
6622echo "Creating configuration files ..."6632echo "Creating configuration files ..."
@@ -6754,6 +6764,7 @@ VERSION_SCRIPT_POSTPROCESS_CMD=${VERSION_SCRIPT_POSTPROCESS_CMD} · 131 unmodified lines
6754SAMPLES:=${samples:-\$(FATE_SAMPLES)}6764SAMPLES:=${samples:-\$(FATE_SAMPLES)}
6755NOREDZONE_FLAGS=$noredzone_flags6765NOREDZONE_FLAGS=$noredzone_flags
6756LIBFUZZER_PATH=$libfuzzer_path6766LIBFUZZER_PATH=$libfuzzer_path
6767IGNORE_TESTS=$ignore_tests
6757EOF6768EOF
6758 6769
6759map 'eval echo "${v}_FFLIBS=\$${v}_deps" >> ffbuild/config.mak' $LIBRARY_LIST6770map '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
6#fate_recv="ssh -T fate@fate.ffmpeg.org" # command to submit report6#fate_recv="ssh -T fate@fate.ffmpeg.org" # command to submit report
7comment= # optional description7comment= # optional description
8build_only= # set to "yes" for a compile-only instance that skips tests8build_only= # set to "yes" for a compile-only instance that skips tests
9ignore_tests=
9 10
10# the following are optional and map to configure options11# the following are optional and map to configure options
11arch=12arch=
tests/Makefile+3−1
@@ -212,12 +212,14 @@ FATE_UTILS = base64 tiny_psnr tiny_ssim audiomatch · 211 unmodified lines
212 212
213TOOL = ffmpeg213TOOL = ffmpeg
214 214
215$(addprefix fate-, $(IGNORE_TESTS)): REPORT=ignore
216
215fate:: $(FATE)217fate:: $(FATE)
216 218
217$(FATE) $(FATE_TESTS-no): export PROGSUF = $(PROGSSUF)219$(FATE) $(FATE_TESTS-no): export PROGSUF = $(PROGSSUF)
218$(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))220$(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
219 @echo "TEST $(@:fate-%=%)"221 @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)'
221 223
222fate-list:224fate-list:
223 @printf '%s\n' $(sort $(FATE))225 @printf '%s\n' $(sort $(FATE))
tests/fate-run.sh+7−2
@@ -24,6 +24,7 @@ size_tolerance=${14:-0} · 23 unmodified lines
24cmp_unit=${15:-2}24cmp_unit=${15:-2}
25gen=${16:-no}25gen=${16:-no}
26hwaccel=${17:-none}26hwaccel=${17:-none}
27report_type=${18:-standard}
27 28
28outdir="tests/data/fate"29outdir="tests/data/fate"
29outfile="${outdir}/${test}"30outfile="${outdir}/${test}"
@@ -362,13 +363,17 @@ if test -e "$ref" || test $cmp = "oneline" || test $cmp = "grep" ; then · 332 unmodified lines
362 esac363 esac
363 cmperr=$?364 cmperr=$?
364 test $err = 0 && err=$cmperr365 test $err = 0 && err=$cmperr
365 test $err = 0 || cat $cmpfile366 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
366else371else
367 echo "reference file '$ref' not found"372 echo "reference file '$ref' not found"
368 err=1373 err=1
369fi374fi
370 375
371if [ $err -eq 0 ]; then376if [ $err -eq 0 ] && test $report_type = "standard" ; then
372 unset cmpo erro377 unset cmpo erro
373else378else
374 cmpo="$($base64 <$cmpfile)"379 cmpo="$($base64 <$cmpfile)"
tests/fate.sh+1−0
@@ -49,6 +49,7 @@ configure()( · 48 unmodified lines
49 --enable-gpl \49 --enable-gpl \
50 --enable-memory-poisoning \50 --enable-memory-poisoning \
51 --enable-avresample \51 --enable-avresample \
52 ${ignore_tests:+--ignore-tests="$ignore_tests"} \
52 ${arch:+--arch=$arch} \53 ${arch:+--arch=$arch} \
53 ${cpu:+--cpu="$cpu"} \54 ${cpu:+--cpu="$cpu"} \
54 ${toolchain:+--toolchain="$toolchain"} \55 ${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