summaryrefslogtreecommitdiffabout
path: root/tests/set-v2-00.at
blob: c1d72a497cb672bed29e2f1e8435a958782810e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This file is part of idest  -*- autotest -*-
# Copyright (C) 2011 Sergey Poznyakoff
#
# Idest is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Idest is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with idest.  If not, see <http://www.gnu.org/licenses/>.

AT_SETUP([set new fields (v2)])
AT_KEYWORDS([set v2 set-v2-00])

AT_CHECK([
genfile -f file 10k
cp file file.bak
idest -V2 --set title='Something' album='set v2 00' \
      track=2 comment:eng:='Comment' \
      comment:pol:default='Dodatkowy komentarz' \
      artist=gray year=2011 genre='Testsuite' \
      APIC:image/png:0=89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7AF4000000017352474200AECE1CE900000006624B474400FF00FF00FFA0BDA793000000097048597300000B1300000B1301009A9C180000000774494D4507DB071C093A2D7365CBF80000001974455874436F6D6D656E74004372656174656420776974682047494D5057810E17000000954944415458C3ED56D10A002108D3E8FF7F79F7D421125D696107FA16452E5D6E0C00141885826309003313339BF7AFAC40F55EB0FAE2AD1568C9019095CBFF226102D0D1FA6EF97E2F8F72122680049000AE96E3DE749B9D5B5229DD7EE0E4B07419125D21A90DF2CCE801653691169C911991EBE32D98EDF5F65FA0135AE5D8ED07BC04ADAB64EB116DD4822F12A6214900E1001E26BD48441311DC6B0000000049454E44AE426082  file || exit 1
echo structure
idest -i file > struct
off=`sed -n 's/length: //p' struct`
sed 's/length: .*/length: X/' struct
echo tags
idest file
echo all tags
idest -a file
echo file data
dd if=file of=file.raw bs=1 skip=$off 2>/dev/null
cmp file.raw file.bak
],
[0],
[structure
file: file
ntags: 1
version: 2.4.0
offset: 0
length: X
tags
title: Something
album: set v2 00
track: 2
comment:eng:: Comment
comment:pol:default: Dodatkowy komentarz
artist: gray
year: 2011
genre: Testsuite
all tags
TIT2: Something
TALB: set v2 00
TRCK: 2
COMM:eng:: Comment
COMM:pol:default: Dodatkowy komentarz
TPE1: gray
TDRC: 2011
TCON: Testsuite
APIC:image/png:0:: 89504E470D0A1A0A0000000D4948445200000020000000200806000000737A7AF4000000017352474200AECE1CE900000006624B474400FF00FF00FFA0BDA793000000097048597300000B1300000B1301009A9C180000000774494D4507DB071C093A2D7365CBF80000001974455874436F6D6D656E74004372656174656420776974682047494D5057810E17000000954944415458C3ED56D10A002108D3E8FF7F79F7D421125D696107FA16452E5D6E0C00141885826309003313339BF7AFAC40F55EB0FAE2AD1568C9019095CBFF226102D0D1FA6EF97E2F8F72122680049000AE96E3DE749B9D5B5229DD7EE0E4B07419125D21A90DF2CCE801653691169C911991EBE32D98EDF5F65FA0135AE5D8ED07BC04ADAB64EB116DD4822F12A6214900E1001E26BD48441311DC6B0000000049454E44AE426082
file data
])

AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.