]> git.sesse.net Git - ffmpeg/commitdiff
tests: Unify output directory creation
authorDiego Biurrun <diego@biurrun.de>
Fri, 1 Feb 2019 21:40:38 +0000 (22:40 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sat, 16 Feb 2019 12:09:35 +0000 (13:09 +0100)
tests/Makefile
tests/fate-run.sh
tests/lavf-regression.sh
tests/regression-funcs.sh

index c3dd5879bfe2da653454282e6ffd8ed51cfae95a..8d9a42433f835e93d840a494425dd77214bc782a 100644 (file)
@@ -2,7 +2,8 @@ THREADS = 1
 VREF = tests/vsynth1/00.pgm
 AREF = tests/data/asynth1.sw
 
-OUTDIRS += tests/data tests/vsynth1 tests/data/filtergraphs
+FATE_OUTDIRS = tests/data tests/data/fate tests/data/filtergraphs tests/data/lavf tests/data/pixfmt tests/vsynth1
+OUTDIRS += $(FATE_OUTDIRS)
 
 $(VREF): tests/videogen$(HOSTEXESUF) | tests/vsynth1
        $(M)./$< 'tests/vsynth1/'
@@ -149,7 +150,7 @@ $(addprefix fate-, $(IGNORE_TESTS)): REPORT=ignore
 
 fate: $(FATE)
 
-$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
+$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF)) | $(FATE_OUTDIRS)
        @echo "TEST    $(@:fate-%=%)"
        $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)' '$(HWACCEL)' '$(REPORT)'
 
index 8de749d4a75ec70338303bd94a407dfeb785c679..b9b3d9763e7edcf4352b71a1084c29f140b1dd8f 100755 (executable)
@@ -196,8 +196,6 @@ null(){
     :
 }
 
-mkdir -p "$outdir"
-
 exec 3>&2
 eval $command >"$outfile" 2>$errfile
 err=$?
index fd4f5548d0a0b09a087ffd2698772e9106a5f143..6a8919bdc2533a68c7c726d75265d356a64d2275 100755 (executable)
@@ -237,7 +237,6 @@ fi
 
 if [ -n "$do_pixfmt" ] ; then
 outfile="$datadir/pixfmt/"
-mkdir -p "$outfile"
 conversions="yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p \
              yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow \
              monob yuv440p yuvj440p"
index 3728d4498085a869e6889fa8ac0710353e1aeb11..fad2057a73b248f5281740c43941847f7ed1122f 100755 (executable)
@@ -29,9 +29,6 @@ target_crcfile="$target_datadir/$this.crc"
 cleanfiles="$raw_dst $crcfile"
 trap 'rm -f -- $cleanfiles' EXIT
 
-mkdir -p "$datadir"
-mkdir -p "$outfile"
-
 [ "${V-0}" -gt 0 ] && echov=echov || echov=:
 
 echov(){