diff mbox series

[FFmpeg-devel,04/10] fate/id3v2: Add a test for remuxing id3v2 private tags

Message ID HE1PR0301MB2154B2C3E57DCD903FFD07CC8F4D9@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit 8364643f68ede9cf9b5c5d36728e0975b3df44e8
Headers show
Series [FFmpeg-devel,01/10] fate/filter-video: Remove SAMPLES depedency from refcmp tests
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt April 15, 2021, 8:16 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate/id3v2.mak            | 12 +++++++++---
 tests/ref/fate/id3v2-priv-remux | 18 ++++++++++++++++++
 2 files changed, 27 insertions(+), 3 deletions(-)
 create mode 100644 tests/ref/fate/id3v2-priv-remux
diff mbox series

Patch

diff --git a/tests/fate/id3v2.mak b/tests/fate/id3v2.mak
index 873f593d8c..1bf95129bd 100644
--- a/tests/fate/id3v2.mak
+++ b/tests/fate/id3v2.mak
@@ -1,5 +1,11 @@ 
-FATE_SAMPLES_ID3V2-$(CONFIG_MP3_DEMUXER) += fate-id3v2-priv
+FATE_ID3V2_FFPROBE-$(CONFIG_MP3_DEMUXER) += fate-id3v2-priv
 fate-id3v2-priv: CMD = probetags $(TARGET_SAMPLES)/id3v2/id3v2_priv.mp3
 
-FATE_SAMPLES_FFPROBE += $(FATE_SAMPLES_ID3V2-yes)
-fate-id3v2: $(FATE_SAMPLES_ID3V2-yes)
+FATE_ID3V2_FFMPEG_FFPROBE-$(call ALLYES, FILE_PROTOCOL MP3_DEMUXER MP3_MUXER \
+                                         FRAMECRC_MUXER PIPE_PROTOCOL)       \
+                            += fate-id3v2-priv-remux
+fate-id3v2-priv-remux: CMD = transcode mp3 $(TARGET_SAMPLES)/id3v2/id3v2_priv.mp3 mp3 "-c copy" "-c copy -t 0.1" "" "-show_entries format_tags"
+
+FATE_SAMPLES_FFPROBE        += $(FATE_ID3V2_FFPROBE-yes)
+FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_ID3V2_FFMPEG_FFPROBE-yes)
+fate-id3v2: $(FATE_ID3V2_FFPROBE-yes) $(FATE_ID3V2_FFMPEG_FFPROBE-yes)
diff --git a/tests/ref/fate/id3v2-priv-remux b/tests/ref/fate/id3v2-priv-remux
new file mode 100644
index 0000000000..0fdd5d9d0a
--- /dev/null
+++ b/tests/ref/fate/id3v2-priv-remux
@@ -0,0 +1,18 @@ 
+3e99254aa892a9578ce31da17b012a44 *tests/data/fate/id3v2-priv-remux.mp3
+8542 tests/data/fate/id3v2-priv-remux.mp3
+#tb 0: 1/14112000
+#media_type 0: audio
+#codec_id 0: mp3
+#sample_rate 0: 48000
+#channel_layout 0: 4
+#channel_layout_name 0: mono
+0,    -155528,    -155528,   338688,      192, 0x3774510e, S=1,       10, 0x00bc0013
+0,     183160,     183160,   338688,      192, 0x856c5b02
+0,     521848,     521848,   338688,      192, 0xb86e557f
+0,     860536,     860536,   338688,      192, 0x3b6c5cb7
+0,    1199224,    1199224,   338688,      192, 0xe1bc5c76
+[FORMAT]
+TAG:title=id3v2-test
+TAG:id3v2_priv.testowner2=\x00\x01\x02
+TAG:id3v2_priv.testowner=testdata
+[/FORMAT]