view tests/Makefile @ 34254:f4c0388ddc74

Sanitize channel count for libaf to avoid crashes since it is used unchecked. af_downmix is an example of a function that can/will crash for invalid values. 0 is not invalid since it is used as "autodetect" for output.
author reimar
date Fri, 11 Nov 2011 17:15:13 +0000
parents 0d7b77bd5744
children
line wrap: on
line source

include ../config.mak

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 %,res/%.md5,$(SAMPLES))

fatetest: $(RESULTS)

res/%.md5: ../mplayer$(EXESUF) $(FATE_SAMPLES)/%
	@./faterun.sh $*

clean:
	rm -rf res

.PHONY: fatetest clean