summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-07-02 16:07:42 +0100
committerMans Rullgard <mans@mansr.com>2012-07-04 01:22:40 +0100
commit983fa8bc46a7365b0fdb71c85535da433b262776 (patch)
tree92ab7007b907814ef0f2e94715df19140d67843c /tests
parent360aa2465a7cba8b66f96b27365011958787c72b (diff)
downloadffmpeg-983fa8bc46a7365b0fdb71c85535da433b262776.tar.gz
fate: add flac encode/decode tests with various options
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/fate/flac.mak19
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 429762be7c..12928c7926 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -41,6 +41,7 @@ include $(SRC_PATH)/tests/fate/demux.mak
include $(SRC_PATH)/tests/fate/dfa.mak
include $(SRC_PATH)/tests/fate/dpcm.mak
include $(SRC_PATH)/tests/fate/ea.mak
+include $(SRC_PATH)/tests/fate/flac.mak
include $(SRC_PATH)/tests/fate/fft.mak
include $(SRC_PATH)/tests/fate/h264.mak
include $(SRC_PATH)/tests/fate/image.mak
diff --git a/tests/fate/flac.mak b/tests/fate/flac.mak
new file mode 100644
index 0000000000..c5340590d1
--- /dev/null
+++ b/tests/fate/flac.mak
@@ -0,0 +1,19 @@
+FATE_FLAC += fate-flac-chmode-indep \
+ fate-flac-chmode-left_side \
+ fate-flac-chmode-mid_side \
+ fate-flac-chmode-right_side \
+ fate-flac-fixed \
+ fate-flac-lpc-cholesky \
+ fate-flac-lpc-levinson \
+
+fate-flac-chmode-%: OPTS = -ch_mode $(@:fate-flac-chmode-%=%)
+fate-flac-fixed: OPTS = -lpc_type fixed
+fate-flac-lpc-%: OPTS = -lpc_type $(@:fate-flac-lpc-%=%)
+
+fate-flac-%: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
+fate-flac-%: CMD = enc_dec_pcm flac wav s16le $(REF) -c flac $(OPTS)
+fate-flac-%: CMP = oneoff
+fate-flac-%: FUZZ = 0
+
+FATE_AVCONV += $(FATE_FLAC)
+fate-flac: $(FATE_FLAC)