Debian Codegraph @

debian/tests/control

raw
1 Test-Command: id3v2 -h
2 Restrictions: superficial
3
4 Test-Command: id3v2 -v
5 Restrictions: superficial
6
7 Test-Command: id3v2 -f debian/tests/silence.mp3
8
9 Test-Command: cp debian/tests/silence.mp3 $AUTOPKGTEST_TMP;
10 cd $AUTOPKGTEST_TMP;
11 id3v2 --TALB 'A little test!' -a Tux -t 'My system' -y 2020 silence.mp3;
12 id3v2 -l silence.mp3
13
14 # Regression tests for the bugs fixed in 0.1.12+dfsg-10.
15
16 # A missing file operand must yield a non-zero exit status (#784064).
17 # allow-stderr: the diagnostic about the missing file is expected on stderr.
18 Test-Command: if id3v2 -a x $AUTOPKGTEST_TMP/does-not-exist.mp3; then exit 1; else exit 0; fi
19 Restrictions: allow-stderr
20
21 # Two user-defined-text frames with distinct descriptions must both survive
22 # (#271311).
23 Test-Command: cp debian/tests/silence.mp3 $AUTOPKGTEST_TMP/txxx.mp3 &&
24 id3v2 -2 --TXXX 'd1:a' $AUTOPKGTEST_TMP/txxx.mp3 &&
25 id3v2 -2 --TXXX 'd2:b' $AUTOPKGTEST_TMP/txxx.mp3 &&
26 id3v2 -l $AUTOPKGTEST_TMP/txxx.mp3 | grep -q '(d1)' &&
27 id3v2 -l $AUTOPKGTEST_TMP/txxx.mp3 | grep -q '(d2)'
28
29 # A colon escaped as "\:" must end up as a literal colon in the value
30 # (#390781, #681847).
31 Test-Command: cp debian/tests/silence.mp3 $AUTOPKGTEST_TMP/colon.mp3 &&
32 id3v2 -c 'From\: x' $AUTOPKGTEST_TMP/colon.mp3 &&
33 id3v2 -l $AUTOPKGTEST_TMP/colon.mp3 | grep -q 'From: x'
34
35 # A non-MPEG container must be refused with a non-zero exit status (#446427).
36 # allow-stderr: the "Refusing to tag" diagnostic is expected on stderr.
37 Test-Command: printf 'RIFF....WAVEfmt ' > $AUTOPKGTEST_TMP/notaudio.wav &&
38 if id3v2 -a x $AUTOPKGTEST_TMP/notaudio.wav; then exit 1; else exit 0; fi
39 Restrictions: allow-stderr
40
41 # A cover image can be attached and listed back as an APIC frame (#782767).
42 Test-Command: cp debian/tests/silence.mp3 $AUTOPKGTEST_TMP/pic.mp3 &&
43 printf 'GIF89a small cover bytes' > $AUTOPKGTEST_TMP/cover.gif &&
44 id3v2 -p $AUTOPKGTEST_TMP/cover.gif $AUTOPKGTEST_TMP/pic.mp3 &&
45 id3v2 -l $AUTOPKGTEST_TMP/pic.mp3 | grep -qi APIC