fate: add flac encode/decode tests with various options
authorMans Rullgard <mans@mansr.com>
Mon, 2 Jul 2012 15:07:42 +0000 (16:07 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 4 Jul 2012 00:22:40 +0000 (01:22 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
tests/Makefile
tests/fate/flac.mak [new file with mode: 0644]

index 429762b..12928c7 100644 (file)
@@ -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 (file)
index 0000000..c534059
--- /dev/null
@@ -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)