rb_cdio 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ext/CdIo.h +0 -9
- data/ext/CdIo_Cd.c +1 -1
- data/ext/CdIo_Cdda.c +7 -1
- data/ext/extconf.rb +6 -6
- data/ext/mkmf.log +45 -20
- data/test/{testbincue.rb → test_bincue.rb} +0 -0
- data/test/{testclose.rb → test_close.rb} +0 -0
- data/test/{testmethods.rb → test_methods.rb} +1 -1
- data/test/{testtoc.rb → test_toc.rb} +4 -2
- data/test/testall.rb +4 -4
- metadata +195 -406
- data/doc/classes/CdIo.html +0 -511
- data/doc/classes/CdIo.src/M000001.html +0 -17
- data/doc/classes/CdIo.src/M000002.html +0 -17
- data/doc/classes/CdIo.src/M000003.html +0 -17
- data/doc/classes/CdIo.src/M000004.html +0 -17
- data/doc/classes/CdIo.src/M000005.html +0 -17
- data/doc/classes/CdIo.src/M000006.html +0 -17
- data/doc/classes/CdIo.src/M000007.html +0 -17
- data/doc/classes/CdIo.src/M000008.html +0 -17
- data/doc/classes/CdIo/Cd.html +0 -348
- data/doc/classes/CdIo/Cd.src/M000020.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000021.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000022.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000023.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000024.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000025.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000026.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000027.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000028.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000029.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000030.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000031.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000032.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000033.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000034.html +0 -17
- data/doc/classes/CdIo/Cd.src/M000035.html +0 -17
- data/doc/classes/CdIo/Cdda.html +0 -428
- data/doc/classes/CdIo/Cdda.src/M000009.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000010.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000011.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000012.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000013.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000014.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000015.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000016.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000017.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000018.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000019.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000020.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000021.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000022.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000023.html +0 -17
- data/doc/classes/CdIo/Cdda.src/M000024.html +0 -17
- data/doc/classes/CdIo/Exception.html +0 -118
- data/doc/classes/CdIo/Exception/BadParameter.html +0 -111
- data/doc/classes/CdIo/Exception/BadPointer.html +0 -111
- data/doc/classes/CdIo/Exception/CddbConn.html +0 -111
- data/doc/classes/CdIo/Exception/CddbError.html +0 -111
- data/doc/classes/CdIo/Exception/Error.html +0 -111
- data/doc/classes/CdIo/Exception/NoDriver.html +0 -111
- data/doc/classes/CdIo/Exception/NotPermitted.html +0 -111
- data/doc/classes/CdIo/Exception/Unsupported.html +0 -111
- data/doc/classes/CdIo/Track.html +0 -246
- data/doc/classes/CdIo/Track.src/M000017.html +0 -17
- data/doc/classes/CdIo/Track.src/M000018.html +0 -17
- data/doc/classes/CdIo/Track.src/M000019.html +0 -17
- data/doc/classes/CdIo/Track.src/M000025.html +0 -17
- data/doc/classes/CdIo/Track.src/M000026.html +0 -17
- data/doc/classes/CdIo/Track.src/M000027.html +0 -17
- data/doc/classes/CdIo/TrackCdda.html +0 -169
- data/doc/classes/CdIo/TrackCdda.src/M000031.html +0 -17
- data/doc/classes/CdIo/TrackCdda.src/M000039.html +0 -17
- data/doc/classes/CdIo/TrackCdda.src/M000040.html +0 -17
- data/doc/classes/CdIo/TrackCdda.src/M000041.html +0 -17
- data/doc/classes/CdIo/TrackIso9660.html +0 -159
- data/doc/classes/CdIo/Tracks.html +0 -199
- data/doc/classes/CdIo/Tracks.src/M000028.html +0 -17
- data/doc/classes/CdIo/Tracks.src/M000029.html +0 -17
- data/doc/classes/CdIo/Tracks.src/M000030.html +0 -17
- data/doc/classes/CdIo/Tracks.src/M000036.html +0 -17
- data/doc/classes/CdIo/Tracks.src/M000037.html +0 -17
- data/doc/classes/CdIo/Tracks.src/M000038.html +0 -17
- data/doc/created.rid +0 -1
- data/doc/files/__/rb_cdio_def_rb.html +0 -235
- data/doc/files/rb_cdio_def_rb.html +0 -244
- data/doc/fr_class_index.html +0 -42
- data/doc/fr_file_index.html +0 -27
- data/doc/fr_method_index.html +0 -67
- data/doc/index.html +0 -24
- data/mkmf.log +0 -26
- data/svn-commit.tmp +0 -5
- data/tags +0 -47
- data/test/data/check_common_fn.in +0 -186
- data/test/data/check_cue.sh.in +0 -117
- data/test/data/check_iso.sh.in +0 -52
- data/test/data/check_nrg.sh.in +0 -70
- data/test/data/check_paranoia.sh.in +0 -78
- data/test/data/check_sizeof +0 -117
- data/test/data/check_sizeof.c +0 -77
- data/test/data/testassert.c +0 -36
- data/test/data/testbincue.c +0 -104
- data/test/data/testdefault.c +0 -202
- data/test/data/testischar.c +0 -71
- data/test/data/testiso9660.c +0 -158
- data/test/data/testparanoia.c +0 -185
- data/test/data/testtoc.c +0 -114
@@ -1,186 +0,0 @@
|
|
1
|
-
# $Id: check_common_fn.in,v 1.11 2005/01/29 14:50:34 rocky Exp $
|
2
|
-
#
|
3
|
-
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
4
|
-
#
|
5
|
-
# This program is free software; you can redistribute it and/or modify
|
6
|
-
# it under the terms of the GNU General Public License as published by
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
8
|
-
# (at your option) any later version.
|
9
|
-
#
|
10
|
-
# This program is distributed in the hope that it will be useful,
|
11
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
# GNU General Public License for more details.
|
14
|
-
#
|
15
|
-
# You should have received a copy of the GNU General Public License
|
16
|
-
# along with this program; if not, write to the Free Software
|
17
|
-
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18
|
-
#
|
19
|
-
# Common routines and setup for regression testing.
|
20
|
-
SKIP_TEST_EXITCODE=77
|
21
|
-
|
22
|
-
# Some output changes depending on TZ and locale. Set this so we get known
|
23
|
-
# results
|
24
|
-
TZ=CUT
|
25
|
-
LC_TIME='en_US'
|
26
|
-
export TZ LC_TIME
|
27
|
-
|
28
|
-
check_result() {
|
29
|
-
RC=$1
|
30
|
-
shift
|
31
|
-
msg=$1
|
32
|
-
shift
|
33
|
-
cmdline=$*
|
34
|
-
if test $RC -ne 0 ; then
|
35
|
-
if test $RC -ne $SKIP_TEST_EXITCODE ; then
|
36
|
-
echo "$0: $msg failed in comparing output."
|
37
|
-
if test -n "$cmdline" ; then
|
38
|
-
echo "$0: failed command:"
|
39
|
-
echo " $cmdline"
|
40
|
-
fi
|
41
|
-
exit $RC
|
42
|
-
else
|
43
|
-
echo "$0: $msg skipped."
|
44
|
-
fi
|
45
|
-
else
|
46
|
-
echo "$0: $msg ok."
|
47
|
-
fi
|
48
|
-
}
|
49
|
-
|
50
|
-
test_cdinfo() {
|
51
|
-
|
52
|
-
opts="$1"
|
53
|
-
outfile="$2"
|
54
|
-
rightfile="$3"
|
55
|
-
|
56
|
-
CD_INFO="../src/cd-info"
|
57
|
-
|
58
|
-
if [ ! -x ${CD_INFO} ]; then
|
59
|
-
echo "$0: No ${CD_INFO}"
|
60
|
-
return 1
|
61
|
-
fi
|
62
|
-
|
63
|
-
if ${CD_INFO} --no-header ${opts} >${outfile} 2>&1 ; then
|
64
|
-
if test "@DIFF@" != no; then
|
65
|
-
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
66
|
-
rm -f $outfile
|
67
|
-
return 0
|
68
|
-
else
|
69
|
-
return 3
|
70
|
-
fi
|
71
|
-
else
|
72
|
-
echo "$0: No diff(1) or cmp(1) found - cannot test ${CD_INFO}"
|
73
|
-
rm -f $outfile
|
74
|
-
return 77
|
75
|
-
fi
|
76
|
-
else
|
77
|
-
echo "$0 failed running: ${CD_INFO} ${opts}"
|
78
|
-
return 2
|
79
|
-
fi
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
test_iso_info() {
|
84
|
-
|
85
|
-
opts="$1"
|
86
|
-
outfile="$2"
|
87
|
-
rightfile="$3"
|
88
|
-
|
89
|
-
ISO_INFO="../src/iso-info"
|
90
|
-
|
91
|
-
if [ ! -x ${ISO_INFO} ]; then
|
92
|
-
echo "$0: No ${ISO_INFO}"
|
93
|
-
return 1
|
94
|
-
fi
|
95
|
-
|
96
|
-
cmdline="${ISO_INFO} --no-header ${opts}"
|
97
|
-
if $cmdline >${outfile} 2>&1 ; then
|
98
|
-
if test "/usr/bin/diff" != no; then
|
99
|
-
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
100
|
-
rm -f $outfile
|
101
|
-
return 0
|
102
|
-
else
|
103
|
-
return 3
|
104
|
-
fi
|
105
|
-
else
|
106
|
-
echo "$0: No diff(1) or cmp(1 found - cannot test ${ISO_INFO}"
|
107
|
-
rm -f $outfile
|
108
|
-
return 77
|
109
|
-
fi
|
110
|
-
else
|
111
|
-
echo "$0 failed running: $cmdline"
|
112
|
-
return 2
|
113
|
-
fi
|
114
|
-
|
115
|
-
}
|
116
|
-
|
117
|
-
test_iso_read() {
|
118
|
-
|
119
|
-
opts="$1"
|
120
|
-
outfile="$2"
|
121
|
-
rightfile="$3"
|
122
|
-
|
123
|
-
ISO_READ="../src/iso-read"
|
124
|
-
|
125
|
-
if [ ! -x ${ISO_READ} ]; then
|
126
|
-
echo "$0: No ${ISO_READ}"
|
127
|
-
return 1
|
128
|
-
fi
|
129
|
-
|
130
|
-
if ${ISO_READ} ${opts} -o ${outfile} 2>&1 ; then
|
131
|
-
if test "@DIFF@" != no; then
|
132
|
-
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
133
|
-
rm -f $outfile
|
134
|
-
return 0
|
135
|
-
else
|
136
|
-
return 3
|
137
|
-
fi
|
138
|
-
else
|
139
|
-
echo "$0: No diff(1) or cmp(1 found - cannot test ${ISO_READ}"
|
140
|
-
rm -f $outfile
|
141
|
-
return 77
|
142
|
-
fi
|
143
|
-
else
|
144
|
-
echo "$0 failed running: ${ISO_READ} ${opts}"
|
145
|
-
return 2
|
146
|
-
fi
|
147
|
-
|
148
|
-
}
|
149
|
-
|
150
|
-
test_cd_read() {
|
151
|
-
|
152
|
-
opts="$1"
|
153
|
-
outfile="$2"
|
154
|
-
rightfile="$3"
|
155
|
-
|
156
|
-
CD_READ="../src/cd-read"
|
157
|
-
|
158
|
-
if [ ! -x ${CD_READ} ]; then
|
159
|
-
echo "$0: No ${CD_READ}"
|
160
|
-
return 1
|
161
|
-
fi
|
162
|
-
|
163
|
-
if ${CD_READ} --no-header ${opts} >${outfile} 2>&1 ; then
|
164
|
-
if test "@DIFF@" != no; then
|
165
|
-
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
166
|
-
rm -f $outfile
|
167
|
-
return 0
|
168
|
-
else
|
169
|
-
return 3
|
170
|
-
fi
|
171
|
-
else
|
172
|
-
echo "$0: No diff(1) or cmp(1 found - cannot test ${CD_READ}"
|
173
|
-
rm -f $outfile
|
174
|
-
return 77
|
175
|
-
fi
|
176
|
-
else
|
177
|
-
echo "$0 failed running: ${CD_READ} ${opts}"
|
178
|
-
return 2
|
179
|
-
fi
|
180
|
-
|
181
|
-
}
|
182
|
-
|
183
|
-
#;;; Local Variables: ***
|
184
|
-
#;;; mode:shell-script ***
|
185
|
-
#;;; eval: (sh-set-shell "bash") ***
|
186
|
-
#;;; End: ***
|
data/test/data/check_cue.sh.in
DELETED
@@ -1,117 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#$Id: check_cue.sh.in,v 1.28 2005/04/11 02:36:36 rocky Exp $
|
3
|
-
# Tests to see that BIN/CUE and cdrdao TOC file iamge reading is correct
|
4
|
-
# (via cd-info).
|
5
|
-
|
6
|
-
if test "@VCDINFO_LIBS@X" != "X" ; then
|
7
|
-
vcd_opt='--no-vcd'
|
8
|
-
fi
|
9
|
-
|
10
|
-
if test "X$srcdir" = "X" ; then
|
11
|
-
srcdir=`pwd`
|
12
|
-
fi
|
13
|
-
|
14
|
-
if test "X$top_srcdir" = "X" ; then
|
15
|
-
top_srcdir=`pwd`/..
|
16
|
-
fi
|
17
|
-
|
18
|
-
. ${srcdir}/check_common_fn
|
19
|
-
|
20
|
-
if test ! -x $top_srcdir/src/cd-info ; then
|
21
|
-
exit 77
|
22
|
-
fi
|
23
|
-
|
24
|
-
BASE=`basename $0 .sh`
|
25
|
-
|
26
|
-
fname=cdda
|
27
|
-
testnum=CD-DA
|
28
|
-
opts="--quiet --no-device-info --cue-file ${srcdir}/${fname}.cue --no-cddb"
|
29
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
30
|
-
RC=$?
|
31
|
-
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
32
|
-
|
33
|
-
|
34
|
-
opts="--quiet --no-device-info --bin-file ${srcdir}/${fname}.bin --no-cddb"
|
35
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
36
|
-
RC=$?
|
37
|
-
check_result $RC "cd-info BIN test $testnum" "${CD_INFO} $opts"
|
38
|
-
|
39
|
-
opts="--quiet --no-device-info --toc-file ${srcdir}/${fname}.toc --no-cddb"
|
40
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
41
|
-
RC=$?
|
42
|
-
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
43
|
-
|
44
|
-
fname=isofs-m1
|
45
|
-
testnum='ISO 9660 mode1 CUE'
|
46
|
-
if test -f ${srcdir}/${fname}.bin ; then
|
47
|
-
opts="-q --no-device-info --no-disc-mode --cue-file ${srcdir}/${fname}.cue --iso9660"
|
48
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
49
|
-
RC=$?
|
50
|
-
check_result $RC "cd-info Rock-Ridge CUE test $testnum" "${CD_INFO} $opts"
|
51
|
-
|
52
|
-
opts="-q --no-device-info --no-disc-mode --no-rock-ridge --cue-file ${srcdir}/${fname}.cue --iso9660"
|
53
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}-no-rr.right
|
54
|
-
RC=$?
|
55
|
-
check_result $RC "cd-info no Rock-Ridge CUE test $testnum" "${CD_INFO} $opts"
|
56
|
-
|
57
|
-
else
|
58
|
-
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
59
|
-
fi
|
60
|
-
|
61
|
-
testnum='ISO 9660 mode1 TOC'
|
62
|
-
if test -f ${srcdir}/${fname}.bin ; then
|
63
|
-
opts="-q --no-device-info --no-disc-mode --toc-file ${srcdir}/${fname}.toc --iso9660"
|
64
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
65
|
-
RC=$?
|
66
|
-
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
67
|
-
else
|
68
|
-
echo "Don't see TOC file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
69
|
-
fi
|
70
|
-
|
71
|
-
fname=vcd_demo
|
72
|
-
if test -z "@VCDINFO_LIBS@" ; then
|
73
|
-
right=${srcdir}/${fname}.right
|
74
|
-
else
|
75
|
-
right=${srcdir}/${fname}_vcdinfo.right
|
76
|
-
fi
|
77
|
-
testnum='Video CD'
|
78
|
-
if test -f ${srcdir}/${fname}.bin ; then
|
79
|
-
opts="-q --no-device-info --no-disc-mode -c ${srcdir}/${fname}.cue --iso9660"
|
80
|
-
test_cdinfo "$opts" ${fname}.dump $right
|
81
|
-
RC=$?
|
82
|
-
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
83
|
-
|
84
|
-
if test -z "@VCDINFO_LIBS@" ; then
|
85
|
-
right=${srcdir}/${fname}.right
|
86
|
-
else
|
87
|
-
right=${srcdir}/${fname}_vcdinfo.right
|
88
|
-
fi
|
89
|
-
opts="-q --no-device-info --no-disc-mode -t ${srcdir}/${fname}.toc --iso9660"
|
90
|
-
if test -f ${srcdir}/${fname}.toc ; then
|
91
|
-
test_cdinfo "$opts" ${fname}.dump $right
|
92
|
-
RC=$?
|
93
|
-
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
94
|
-
else
|
95
|
-
echo "Don't see TOC file ${srcdir}/${fname}.toc. Test $testnum skipped."
|
96
|
-
fi
|
97
|
-
else
|
98
|
-
echo "Don't see CUE file ${srcdir}/${fname}.cue. Test $testnum skipped."
|
99
|
-
fi
|
100
|
-
|
101
|
-
fname=svcd_ogt_test_ntsc
|
102
|
-
testnum='Super Video CD'
|
103
|
-
if test -f ${srcdir}/${fname}.bin ; then
|
104
|
-
opts="-q --no-device-info --no-disc-mode --cue-file ${srcdir}/${fname}.cue $vcd_opt --iso9660"
|
105
|
-
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
106
|
-
RC=$?
|
107
|
-
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
108
|
-
else
|
109
|
-
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
110
|
-
fi
|
111
|
-
|
112
|
-
exit $RC
|
113
|
-
|
114
|
-
#;;; Local Variables: ***
|
115
|
-
#;;; mode:shell-script ***
|
116
|
-
#;;; eval: (sh-set-shell "bash") ***
|
117
|
-
#;;; End: ***
|
data/test/data/check_iso.sh.in
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#$Id: check_iso.sh.in,v 1.9 2005/03/05 23:51:40 rocky Exp $
|
3
|
-
|
4
|
-
if test -z $srcdir ; then
|
5
|
-
srcdir=`pwd`
|
6
|
-
fi
|
7
|
-
|
8
|
-
. ${srcdir}/check_common_fn
|
9
|
-
|
10
|
-
if test ! -x ../src/iso-info ; then
|
11
|
-
exit 77
|
12
|
-
fi
|
13
|
-
|
14
|
-
BASE=`basename $0 .sh`
|
15
|
-
fname=copying
|
16
|
-
|
17
|
-
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
|
18
|
-
test_iso_info "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
19
|
-
RC=$?
|
20
|
-
check_result $RC 'iso-info basic test' "$ISO_INFO $opts"
|
21
|
-
|
22
|
-
opts="--image ${srcdir}/${fname}.iso --extract $fname "
|
23
|
-
test_iso_read "$opts" ${fname} ${srcdir}/../COPYING
|
24
|
-
RC=$?
|
25
|
-
check_result $RC 'iso-read basic test' "$ISO_READ $opts"
|
26
|
-
|
27
|
-
fname=copying-rr
|
28
|
-
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
|
29
|
-
test_iso_info "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
30
|
-
RC=$?
|
31
|
-
check_result $RC 'iso-info Rock Ridge test' "$ISO_INFO $opts"
|
32
|
-
|
33
|
-
if test -n "@HAVE_JOLIET@" ; then
|
34
|
-
BASE=`basename $0 .sh`
|
35
|
-
fname=joliet
|
36
|
-
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
|
37
|
-
test_iso_info "$opts" ${fname}-nojoliet.dump ${srcdir}/${fname}.right
|
38
|
-
RC=$?
|
39
|
-
check_result $RC 'iso-info Joliet test' "$cmdline"
|
40
|
-
opts="--quiet ${srcdir}/${fname}.iso --iso9660 --no-joliet "
|
41
|
-
test_iso_info "$opts" ${fname}-nojoliet.dump \
|
42
|
-
${srcdir}/${fname}-nojoliet.right
|
43
|
-
RC=$?
|
44
|
-
check_result $RC 'iso-info --no-joliet test' "$cmdline"
|
45
|
-
fi
|
46
|
-
|
47
|
-
exit $RC
|
48
|
-
|
49
|
-
#;;; Local Variables: ***
|
50
|
-
#;;; mode:shell-script ***
|
51
|
-
#;;; eval: (sh-set-shell "bash") ***
|
52
|
-
#;;; End: ***
|
data/test/data/check_nrg.sh.in
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#$Id: check_nrg.sh.in,v 1.15 2005/04/11 02:36:36 rocky Exp $
|
3
|
-
|
4
|
-
if test "@VCDINFO_LIBS@X" != "X" ; then
|
5
|
-
vcd_opt='--no-vcd'
|
6
|
-
fi
|
7
|
-
|
8
|
-
if test "X$srcdir" = "X" ; then
|
9
|
-
srcdir=`pwd`
|
10
|
-
fi
|
11
|
-
|
12
|
-
if test "X$top_srcdir" = "X" ; then
|
13
|
-
top_srcdir=`pwd`/..
|
14
|
-
fi
|
15
|
-
|
16
|
-
. ${srcdir}/check_common_fn
|
17
|
-
|
18
|
-
if test ! -x $top_srcdir/src/cd-info ; then
|
19
|
-
exit 77
|
20
|
-
fi
|
21
|
-
|
22
|
-
BASE=`basename $0 .sh`
|
23
|
-
test_name=videocd
|
24
|
-
opts="--quiet --no-device-info --nrg-file ${srcdir}/${test_name}.nrg $vcd_opt --iso9660"
|
25
|
-
test_cdinfo "$opts" ${test_name}.dump ${srcdir}/${test_name}.right
|
26
|
-
RC=$?
|
27
|
-
check_result $RC 'cd-info NRG test 1' "${CD_INFO} $opts"
|
28
|
-
|
29
|
-
BASE=`basename $0 .sh`
|
30
|
-
nrg_file=${srcdir}/monvoisin.nrg
|
31
|
-
|
32
|
-
if test -f $nrg_file ; then
|
33
|
-
test_cdinfo "-q --no-device-info --nrg-file $nrg_file $vcd_opt --iso9660 " \
|
34
|
-
monvoisin.dump ${srcdir}/monvoisin.right
|
35
|
-
RC=$?
|
36
|
-
check_result $RC 'cd-info NRG test 2'
|
37
|
-
else
|
38
|
-
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
39
|
-
exit 0
|
40
|
-
fi
|
41
|
-
|
42
|
-
test_name='svcdgs'
|
43
|
-
nrg_file=${srcdir}/${test_name}.nrg
|
44
|
-
opts="-q --no-device-info --nrg-file $nrg_file $vcd_opt --iso9660"
|
45
|
-
if test -f $nrg_file ; then
|
46
|
-
test_cdinfo "$opts" ${test_name}.dump ${srcdir}/${test_name}.right
|
47
|
-
RC=$?
|
48
|
-
check_result $RC "cd-info NRG $test_name" "${CD_INFO} $opts"
|
49
|
-
else
|
50
|
-
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
51
|
-
exit $SKIP_TEST_EXITCODE
|
52
|
-
fi
|
53
|
-
|
54
|
-
test_name='cdda-mcn'
|
55
|
-
nrg_file=${srcdir}/${test_name}.nrg
|
56
|
-
opts="-q --no-device-info --nrg-file $nrg_file --no-cddb"
|
57
|
-
if test -f $nrg_file ; then
|
58
|
-
test_cdinfo "$opts" ${test_name}.dump ${srcdir}/${test_name}.right
|
59
|
-
RC=$?
|
60
|
-
check_result $RC "cd-info NRG $test_name" "${CD_INFO} $opts"
|
61
|
-
exit $RC
|
62
|
-
else
|
63
|
-
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
64
|
-
exit $SKIP_TEST_EXITCODE
|
65
|
-
fi
|
66
|
-
|
67
|
-
#;;; Local Variables: ***
|
68
|
-
#;;; mode:shell-script ***
|
69
|
-
#;;; eval: (sh-set-shell "bash") ***
|
70
|
-
#;;; End: ***
|
@@ -1,78 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# $Id: check_paranoia.sh.in,v 1.10 2005/04/11 02:36:36 rocky Exp $
|
3
|
-
# Compare our cd-paranoia with an installed cdparanoia
|
4
|
-
|
5
|
-
if test "X$srcdir" = "X" ; then
|
6
|
-
srcdir=`pwd`
|
7
|
-
fi
|
8
|
-
|
9
|
-
if test "X$top_builddir" = "X" ; then
|
10
|
-
top_builddir=`pwd`/..
|
11
|
-
fi
|
12
|
-
|
13
|
-
if test "X$top_srcdir" = "X" ; then
|
14
|
-
top_srcdir=`pwd`/..
|
15
|
-
fi
|
16
|
-
|
17
|
-
if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
|
18
|
-
$top_srcdir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -v -r -- "1-"
|
19
|
-
if test $? -ne 0 ; then
|
20
|
-
exit 6
|
21
|
-
fi
|
22
|
-
dd bs=16 skip=17 if=cdda.raw of=cdda-1.raw
|
23
|
-
dd bs=16 if=cdda.bin of=cdda-2.raw count=44377
|
24
|
-
if @CMP@ cdda-1.raw cdda-2.raw ; then
|
25
|
-
echo "** Raw cdda.bin extraction okay"
|
26
|
-
else
|
27
|
-
echo "** Raw cdda.bin extraction differ"
|
28
|
-
exit 3
|
29
|
-
fi
|
30
|
-
mv cdda.raw cdda-good.raw
|
31
|
-
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 64 -v -r -- "1-"
|
32
|
-
mv cdda.raw cdda-underrun.raw
|
33
|
-
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -r -- "1-"
|
34
|
-
if test $? -ne 0 ; then
|
35
|
-
exit 6
|
36
|
-
fi
|
37
|
-
if @CMP@ cdda-underrun.raw cdda-good.raw ; then
|
38
|
-
echo "** Under-run correction okay"
|
39
|
-
else
|
40
|
-
echo "** Under-run correction problem"
|
41
|
-
exit 3
|
42
|
-
fi
|
43
|
-
# Start out with small jitter
|
44
|
-
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 5 -v -r -- "1-"
|
45
|
-
if test $? -ne 0 ; then
|
46
|
-
exit 6
|
47
|
-
fi
|
48
|
-
mv cdda.raw cdda-jitter.raw
|
49
|
-
if @CMP@ cdda-jitter.raw cdda-good.raw ; then
|
50
|
-
echo "** Small jitter correction okay"
|
51
|
-
else
|
52
|
-
echo "** Small jitter correction problem"
|
53
|
-
exit 3
|
54
|
-
fi
|
55
|
-
# A more massive set of failures: underrun + medium jitter
|
56
|
-
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 70 -v -r -- "1-"
|
57
|
-
if test $? -ne 0 ; then
|
58
|
-
exit 6
|
59
|
-
fi
|
60
|
-
mv cdda.raw cdda-jitter.raw
|
61
|
-
if @CMP@ cdda-jitter.raw cdda-good.raw ; then
|
62
|
-
echo "** under-run + jitter correction okay"
|
63
|
-
else
|
64
|
-
echo "** under-run + jitter correction problem"
|
65
|
-
exit 3
|
66
|
-
fi
|
67
|
-
### FIXME: large jitter is known to fail. Investigate.
|
68
|
-
exit 0
|
69
|
-
else
|
70
|
-
echo "Don't see libcdio cd-paranoia program. Test skipped."
|
71
|
-
exit 77
|
72
|
-
fi
|
73
|
-
fi
|
74
|
-
#;;; Local Variables: ***
|
75
|
-
#;;; mode:shell-script ***
|
76
|
-
#;;; eval: (sh-set-shell "bash") ***
|
77
|
-
#;;; End: ***
|
78
|
-
|