---
Fixed test for 3.99 (and had to rename ref for it)

P.S. I've even uploaded samples for it at last.
---
 tests/Makefile                           |    1 +
 tests/fate/lossless-audio.mak            |    3 ---
 tests/fate/monkeysaudio.mak              |   20 ++++++++++++++++++++
 tests/ref/fate/lossless-monkeysaudio     |    1 -
 tests/ref/fate/lossless-monkeysaudio-399 |    1 +
 5 files changed, 22 insertions(+), 4 deletions(-)
 create mode 100644 tests/fate/monkeysaudio.mak
 delete mode 100644 tests/ref/fate/lossless-monkeysaudio
 create mode 100644 tests/ref/fate/lossless-monkeysaudio-399

diff --git a/tests/Makefile b/tests/Makefile
index 939490b..1b3f319 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -76,6 +76,7 @@ include $(SRC_PATH)/tests/fate/libavutil.mak
 include $(SRC_PATH)/tests/fate/lossless-audio.mak
 include $(SRC_PATH)/tests/fate/lossless-video.mak
 include $(SRC_PATH)/tests/fate/microsoft.mak
+include $(SRC_PATH)/tests/fate/monkeysaudio.mak
 include $(SRC_PATH)/tests/fate/mp3.mak
 include $(SRC_PATH)/tests/fate/mpc.mak
 include $(SRC_PATH)/tests/fate/pcm.mak
diff --git a/tests/fate/lossless-audio.mak b/tests/fate/lossless-audio.mak
index 0794241..e8f01e1 100644
--- a/tests/fate/lossless-audio.mak
+++ b/tests/fate/lossless-audio.mak
@@ -4,9 +4,6 @@ fate-lossless-alac: CMD = md5 -i 
$(SAMPLES)/lossless-audio/inside.m4a -f s16le
 FATE_SAMPLES_AVCONV-$(call DEMDEC, MLP, MLP) += fate-lossless-meridianaudio
 fate-lossless-meridianaudio: CMD = md5 -i 
$(SAMPLES)/lossless-audio/luckynight-partial.mlp -f s16le
 
-FATE_SAMPLES_AVCONV-$(call DEMDEC, APE, APE) += fate-lossless-monkeysaudio
-fate-lossless-monkeysaudio: CMD = md5 -i 
$(SAMPLES)/lossless-audio/luckynight-partial.ape -f s16le
-
 FATE_SAMPLES_AVCONV-$(call DEMDEC, RM, RALF) += fate-ralf
 fate-ralf: CMD = md5 -i $(SAMPLES)/lossless-audio/luckynight-partial.rmvb -vn 
-f s16le
 
diff --git a/tests/fate/monkeysaudio.mak b/tests/fate/monkeysaudio.mak
new file mode 100644
index 0000000..70fca49
--- /dev/null
+++ b/tests/fate/monkeysaudio.mak
@@ -0,0 +1,20 @@
+APE_VERSIONS = 380 388 389b1 391b1 392b2 394b1
+
+define FATE_APE_SUITE
+FATE_APE += fate-lossless-monkeysaudio-$(1)-normal
+fate-lossless-monkeysaudio-$(1)-normal: CMD = crc -i 
$(SAMPLES)/lossless-audio/luckynight-mac$(1)-c2000.ape -af 
atrim=end_sample=73728
+fate-lossless-monkeysaudio-$(1)-normal: REF = CRC=0x5d08c17e
+fate-lossless-monkeysaudio-$(1)-normal: CMP = oneline
+FATE_APE += fate-lossless-monkeysaudio-$(1)-extrahigh
+fate-lossless-monkeysaudio-$(1)-extrahigh: CMD = crc -i 
$(SAMPLES)/lossless-audio/luckynight-mac$(1)-c4000.ape -af 
atrim=end_sample=73728
+fate-lossless-monkeysaudio-$(1)-extrahigh: REF = CRC=0x5d08c17e
+fate-lossless-monkeysaudio-$(1)-extrahigh: CMP = oneline
+endef
+
+$(foreach N,$(APE_VERSIONS),$(eval $(call FATE_APE_SUITE,$(N))))
+
+FATE_APE += fate-lossless-monkeysaudio-399
+fate-lossless-monkeysaudio-399: CMD = md5 -i 
$(SAMPLES)/lossless-audio/luckynight-partial.ape -f s16le
+
+FATE_SAMPLES_AVCONV-$(call DEMDEC, APE, APE) += $(FATE_APE)
+fate-lossless-monkeysaudio: $(FATE_APE)
diff --git a/tests/ref/fate/lossless-monkeysaudio 
b/tests/ref/fate/lossless-monkeysaudio
deleted file mode 100644
index 4b8caa1..0000000
--- a/tests/ref/fate/lossless-monkeysaudio
+++ /dev/null
@@ -1 +0,0 @@
-a28d4e5f2192057f7d4bece870f40bd0
diff --git a/tests/ref/fate/lossless-monkeysaudio-399 
b/tests/ref/fate/lossless-monkeysaudio-399
new file mode 100644
index 0000000..4b8caa1
--- /dev/null
+++ b/tests/ref/fate/lossless-monkeysaudio-399
@@ -0,0 +1 @@
+a28d4e5f2192057f7d4bece870f40bd0
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to