Mercurial > mplayer.hg
diff Makefile @ 34418:6faf474f9ce3
build: Merge tests/Makefile into top-level Makefile and test non-recursively.
Recursive Make is broken by design, always.
author | diego |
---|---|
date | Thu, 05 Jan 2012 12:08:36 +0000 |
parents | 6e7f60f6f9d4 |
children | 96469d9632eb |
line wrap: on
line diff
--- a/Makefile Thu Jan 05 12:06:03 2012 +0000 +++ b/Makefile Thu Jan 05 12:08:36 2012 +0000 @@ -956,7 +956,7 @@ clean: -$(MAKE) -C ffmpeg $@ - -$(MAKE) -C tests clean + -rm -rf tests/res -rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~) -rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder) @@ -980,6 +980,35 @@ +###### regression tests ####### + +BROKEN_SAMPLES = \ + h264-conformance/CABA3_TOSHIBA_E.264 \ + h264-conformance/CAPA1_TOSHIBA_B.264 \ + h264-conformance/CI1_FT_B.264 \ + h264-conformance/FM1_FT_E.264 \ + pva/PVA_test-partial.pva \ + +AUDIO_ONLY_SAMPLES = \ + aac/% ac3/% amrnb/% amrwb/% atrac1/% atrac3/% bink/binkaudio% \ + creative/% dts/% duck/%-audio-only.avi eac3/% gsm/% imc/% \ + lossless-audio/% mp3-conformance/% musepack/% nellymoser/% \ + qt-surge-suite/% real/ra% sipr/% truespeech/% vorbis/% \ + vqf/% w64/% wmapro/% wmavoice/% \ + +ALLSAMPLES_FULLPATH = $(wildcard $(FATE_SAMPLES)/*/*.*) +ALLSAMPLES = $(patsubst $(FATE_SAMPLES)/%,%,$(ALLSAMPLES_FULLPATH)) +SAMPLES := $(filter-out $(BROKEN_SAMPLES),$(ALLSAMPLES)) +SAMPLES := $(filter-out $(AUDIO_ONLY_SAMPLES),$(SAMPLES)) +RESULTS = $(patsubst %,tests/res/%.md5,$(SAMPLES)) + +fatetest: $(RESULTS) + +tests/res/%.md5: mplayer$(EXESUF) $(FATE_SAMPLES)/% + @tests/faterun.sh $* + + + ###### tests / tools ####### TEST_OBJS = mp_msg.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm @@ -1119,9 +1148,6 @@ -rm -f vidix/dhahelper/*.o vidix/dhahelper/*~ vidix/dhahelper/test -rm -f $(addprefix vidix/dhahelperwin/,*.o *~ dhahelper.sys dhasetup.exe base.tmp temp.exp) -fatetest: mplayer$(EXESUF) - $(MAKE) -C tests fatetest - -include $(DEP_FILES) $(DRIVER_DEP_FILES) $(TESTS_DEP_FILES) $(TOOLS_DEP_FILES) $(DHAHELPER_DEP_FILES)