1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fate: add id3v2 test

Adds basic unit test for parsing ID3v2 tags.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Richard Shaffer 2018-01-27 18:21:28 -08:00 committed by James Almer
parent caaa40d2c6
commit 4be6307cbf
4 changed files with 15 additions and 0 deletions

View File

@ -130,6 +130,7 @@ include $(SRC_PATH)/tests/fate/gapless.mak
include $(SRC_PATH)/tests/fate/gif.mak
include $(SRC_PATH)/tests/fate/h264.mak
include $(SRC_PATH)/tests/fate/hevc.mak
include $(SRC_PATH)/tests/fate/id3v2.mak
include $(SRC_PATH)/tests/fate/image.mak
include $(SRC_PATH)/tests/fate/indeo.mak
include $(SRC_PATH)/tests/fate/libavcodec.mak

View File

@ -88,6 +88,10 @@ probefmt(){
run ffprobe${PROGSUF} -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@"
}
probetags(){
run ffprobe${PROGSUF} -show_entries format_tags -v 0 "$@"
}
runlocal(){
test "${V:-0}" -gt 0 && echo ${base}/"$@" ${base} >&3
${base}/"$@" ${base}

5
tests/fate/id3v2.mak Normal file
View File

@ -0,0 +1,5 @@
FATE_SAMPLES_ID3V2-$(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)

View File

@ -0,0 +1,5 @@
[FORMAT]
TAG:title=id3v2-test
TAG:id3v2_priv.testowner=testdata
TAG:id3v2_priv.testowner2=\x00\x01\x02
[/FORMAT]