summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-03-10 21:15:38 -0300
committerJames Almer <jamrial@gmail.com>2019-03-10 21:15:38 -0300
commit1c9ac700dd141e545538a824f5a8cb81bb0a375d (patch)
treeebeb863f19e10bc519f30889811a0ced9dc60198 /tests
parent06476249cd2332e30b66576633b2827adf3478dd (diff)
parente22ffb3805f6994bd1fd7ab73e6297f36a53f915 (diff)
downloadffmpeg-streaming-1c9ac700dd141e545538a824f5a8cb81bb0a375d.zip
ffmpeg-streaming-1c9ac700dd141e545538a824f5a8cb81bb0a375d.tar.gz
Merge commit 'e22ffb3805f6994bd1fd7ab73e6297f36a53f915'
* commit 'e22ffb3805f6994bd1fd7ab73e6297f36a53f915': tests: Unify output directory creation Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile5
-rwxr-xr-xtests/fate-run.sh2
-rwxr-xr-xtests/lavf-regression.sh1
-rwxr-xr-xtests/regression-funcs.sh3
4 files changed, 3 insertions, 8 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 0e80977..ae65869 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -10,7 +10,8 @@ FFMPEG=ffmpeg$(PROGSSUF)$(EXESUF)
$(AREF): CMP=
APITESTSDIR := tests/api
-OUTDIRS += tests/data tests/vsynth1 tests/data/filtergraphs $(APITESTSDIR)/
+FATE_OUTDIRS = tests/data tests/data/fate tests/data/filtergraphs tests/data/lavf tests/data/lavf-fate tests/data/pixfmt tests/vsynth1 $(APITESTSDIR)
+OUTDIRS += $(FATE_OUTDIRS)
$(VREF): tests/videogen$(HOSTEXESUF) | tests/vsynth1
$(M)./$< 'tests/vsynth1/'
@@ -224,7 +225,7 @@ fate-hw: $(FATE_HW-yes)
FATE += $(FATE_HW-yes)
$(FATE) $(FATE_TESTS-no): export PROGSUF = $(PROGSSUF)
-$(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
+$(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF)) | $(FATE_OUTDIRS)
@echo "TEST $(@:fate-%=%)"
$(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)' '$(KEEP)'
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index aece90a..f1a1e34 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -377,8 +377,6 @@ null(){
:
}
-mkdir -p "$outdir"
-
# Disable globbing: command arguments may contain globbing characters and
# must be kept verbatim
set -f
diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index 45c877e..f3dc84d 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -411,7 +411,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"
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index 0c7d34b..c88828c 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -32,9 +32,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(){
OpenPOWER on IntegriCloud