From 2fad0977886f99e11ec1e27f79bcb9c56737bdb0 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Mon, 15 Mar 2010 19:23:24 +0000 Subject: 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 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3