FATE: add a test for the ONE_STR mapping mode of the channelmap filter
authorAnton Khirnov <anton@khirnov.net>
Tue, 4 Mar 2014 06:31:47 +0000 (07:31 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 16 Mar 2014 06:44:03 +0000 (07:44 +0100)
tests/fate/filter-audio.mak
tests/filtergraphs/channelmap [deleted file]
tests/filtergraphs/channelmap_one_int [new file with mode: 0644]
tests/filtergraphs/channelmap_one_str [new file with mode: 0644]

index 9bf148c..fc7ca4f 100644 (file)
@@ -41,13 +41,23 @@ $(FATE_ATRIM): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
 
 FATE_FILTER-$(call FILTERDEMDECENCMUX, ATRIM, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_ATRIM)
 
-FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-channelmap
-fate-filter-channelmap: tests/data/filtergraphs/channelmap
-fate-filter-channelmap: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
-fate-filter-channelmap: tests/data/asynth-44100-6.wav
-fate-filter-channelmap: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap -f wav -flags +bitexact
-fate-filter-channelmap: CMP = oneline
-fate-filter-channelmap: REF = 21f1977c4f9705e2057083f84764e685
+FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-int
+fate-filter-channelmap-one-int: tests/data/filtergraphs/channelmap_one_int
+fate-filter-channelmap-one-int: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
+fate-filter-channelmap-one-int: tests/data/asynth-44100-6.wav
+fate-filter-channelmap-one-int: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_int -f wav -flags +bitexact
+fate-filter-channelmap-one-int: CMP = oneline
+fate-filter-channelmap-one-int: REF = 21f1977c4f9705e2057083f84764e685
+
+FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-str
+fate-filter-channelmap-one-str: tests/data/filtergraphs/channelmap_one_str
+fate-filter-channelmap-one-str: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+fate-filter-channelmap-one-str: tests/data/asynth-44100-2.wav
+fate-filter-channelmap-one-str: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_str -f wav -flags +bitexact
+fate-filter-channelmap-one-str: CMP = oneline
+fate-filter-channelmap-one-str: REF = 9fe9bc452282dfd94fd80e9491607a0c
+
+FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_CHANNELMAP)
 
 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
diff --git a/tests/filtergraphs/channelmap b/tests/filtergraphs/channelmap
deleted file mode 100644 (file)
index e2b6143..0000000
+++ /dev/null
@@ -1 +0,0 @@
-channelmap=map=1|2|0|5|3|4:channel_layout=5.1
diff --git a/tests/filtergraphs/channelmap_one_int b/tests/filtergraphs/channelmap_one_int
new file mode 100644 (file)
index 0000000..e2b6143
--- /dev/null
@@ -0,0 +1 @@
+channelmap=map=1|2|0|5|3|4:channel_layout=5.1
diff --git a/tests/filtergraphs/channelmap_one_str b/tests/filtergraphs/channelmap_one_str
new file mode 100644 (file)
index 0000000..3c658fc
--- /dev/null
@@ -0,0 +1 @@
+channelmap=map=FR|FL:channel_layout=stereo