aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-15 19:23:24 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-15 19:23:24 +0000
commit2fad0977886f99e11ec1e27f79bcb9c56737bdb0 (patch)
tree06b2473e23f3581abd75a66e7390cb176f4ee1b4 /Makefile
parentf75ab7a64534c1a114f71da92d0fafc622d65244 (diff)
downloadffmpeg-2fad0977886f99e11ec1e27f79bcb9c56737bdb0.tar.gz
Add FATE tests
This adds a "fate" make target which runs the full FATE test suite. Individual tests can be run with "make fate-$testname". The location of the FATE test samples must be specified with the --samples=PATH option to configure. The tests/fate-update.sh script regenerates the references files and test list from the online FATE database. These are checked in since generating them requires non-standard tools. Originally committed as revision 22552 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f7a8bd6a4c..2d37c0a440 100644
--- a/Makefile
+++ b/Makefile
@@ -330,5 +330,15 @@ tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF)
tests/seek_test$(EXESUF): tests/seek_test.o $(FF_DEP_LIBS)
$(LD) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
+ifdef SAMPLES
+include $(SRC_PATH_BARE)/tests/fate.mak
+fate: $(FATE_TESTS)
+$(FATE_TESTS):
+ @echo "TEST FATE $(@:fate-%=%)"
+ @$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)'
+else
+fate:
+ @echo "SAMPLES not specified, cannot run FATE"
+endif
.PHONY: documentation *test regtest-* zlib-error alltools check config