annotate tests/Makefile @ 34243:61a7a648b002

Avoid running video-only test on audio-only files. Saves on run-time and also makes it easier to spot video files that fail to decode (result in 0-size output files).
author reimar
date Tue, 08 Nov 2011 21:12:37 +0000
parents aecd1f1bfeaf
children 0d7b77bd5744
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34241
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
1 include ../config.mak
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
2
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
3 BROKEN_SAMPLES= \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
4 h264-conformance/CABA3_TOSHIBA_E.264 \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
5 h264-conformance/CAPA1_TOSHIBA_B.264 \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
6 h264-conformance/CI1_FT_B.264 \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
7 h264-conformance/FM1_FT_E.264 \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
8 lmlm4/LMLM4_CIFat30fps.divx \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
9 pva/PVA_test-partial.pva \
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
10
34243
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
11 AUDIO_ONLY_SAMPLES = \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
12 aac/% ac3/% amrnb/% amrwb/% atrac1/% atrac3/% bink/binkaudio% \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
13 creative/% dts/% duck/%-audio-only.avi eac3/% gsm/% imc/% \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
14 lossless-audio/% mp3-conformance/% musepack/% nellymoser/% \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
15 qt-surge-suite/% real/ra% sipr/% truespeech/% vorbis/% \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
16 vqf/% w64/% wmapro/% wmavoice/% \
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
17
34241
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
18 ALLSAMPLES_FULLPATH=$(wildcard $(FATE_SAMPLES)/*/*.*)
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
19 ALLSAMPLES=$(patsubst $(FATE_SAMPLES)/%,%,$(ALLSAMPLES_FULLPATH))
34243
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
20 SAMPLES:=$(filter-out $(BROKEN_SAMPLES),$(ALLSAMPLES))
61a7a648b002 Avoid running video-only test on audio-only files.
reimar
parents: 34242
diff changeset
21 SAMPLES:=$(filter-out $(AUDIO_ONLY_SAMPLES),$(SAMPLES))
34241
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
22 RESULTS=$(patsubst %,res/%.md5,$(SAMPLES))
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
23
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
24 fatetest: $(RESULTS)
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
25
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
26 res/%.md5: ../mplayer$(EXESUF) $(FATE_SAMPLES)/%
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
27 @./faterun.sh $*
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
28
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
29 clean:
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
30 rm -rf res
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
31
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
32 .PHONY: fatetest clean