rb_cdio 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.txt +17 -2
- data/VERSION +1 -1
- data/doc/classes/CdIo.html +19 -31
- data/doc/classes/CdIo.src/M000001.html +1 -1
- data/doc/classes/CdIo.src/M000002.html +1 -1
- data/doc/classes/CdIo.src/M000003.html +1 -1
- data/doc/classes/CdIo.src/M000004.html +1 -1
- data/doc/classes/CdIo.src/M000005.html +1 -1
- data/doc/classes/CdIo.src/M000006.html +1 -1
- data/doc/classes/CdIo.src/M000007.html +1 -1
- data/doc/classes/CdIo.src/M000008.html +1 -1
- data/doc/classes/CdIo/Cd.html +51 -51
- data/doc/classes/CdIo/Cd.src/{M000011.html → M000020.html} +1 -1
- data/doc/classes/CdIo/Cd.src/M000021.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000022.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000023.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000024.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000025.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000026.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000027.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000028.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000029.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000030.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000031.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000032.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000033.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000034.html +3 -3
- data/doc/classes/CdIo/Cd.src/M000035.html +3 -3
- data/doc/classes/CdIo/Cdda.html +428 -0
- data/doc/classes/CdIo/{Cd.src/M000016.html → Cdda.src/M000009.html} +3 -3
- data/doc/classes/CdIo/{Cd.src/M000013.html → Cdda.src/M000010.html} +3 -3
- data/doc/classes/CdIo/{Cd.src/M000036.html → Cdda.src/M000011.html} +3 -3
- data/doc/classes/CdIo/{Cd.src/M000014.html → Cdda.src/M000012.html} +3 -3
- data/doc/classes/CdIo/Cdda.src/M000013.html +17 -0
- data/doc/classes/CdIo/{Cd.src/M000019.html → Cdda.src/M000014.html} +3 -3
- data/doc/classes/CdIo/Cdda.src/M000015.html +17 -0
- data/doc/classes/CdIo/Cdda.src/M000016.html +17 -0
- data/doc/classes/CdIo/Cdda.src/M000017.html +17 -0
- data/doc/classes/CdIo/Cdda.src/M000018.html +17 -0
- data/doc/classes/CdIo/Cdda.src/M000019.html +17 -0
- data/doc/classes/CdIo/{Cd.src/M000015.html → Cdda.src/M000020.html} +3 -3
- data/doc/classes/CdIo/{Cd.src/M000017.html → Cdda.src/M000021.html} +3 -3
- data/doc/classes/CdIo/{Cd.src/M000018.html → Cdda.src/M000022.html} +3 -3
- data/doc/classes/CdIo/Cdda.src/M000023.html +17 -0
- data/doc/classes/CdIo/Cdda.src/M000024.html +17 -0
- data/doc/classes/CdIo/Exception.html +118 -0
- data/doc/classes/CdIo/Exception/BadParameter.html +111 -0
- data/doc/classes/CdIo/Exception/BadPointer.html +111 -0
- data/doc/classes/CdIo/{Device.html → Exception/CddbConn.html} +5 -5
- data/doc/classes/CdIo/Exception/CddbError.html +111 -0
- data/doc/classes/CdIo/{CdText.html → Exception/Error.html} +5 -5
- data/doc/{files/test/testall_rb.html → classes/CdIo/Exception/NoDriver.html} +26 -25
- data/doc/classes/CdIo/Exception/NotPermitted.html +111 -0
- data/doc/classes/CdIo/Exception/Unsupported.html +111 -0
- data/doc/classes/CdIo/Track.html +16 -16
- data/doc/classes/CdIo/Track.src/M000017.html +3 -3
- data/doc/classes/CdIo/Track.src/M000018.html +3 -3
- data/doc/classes/CdIo/Track.src/M000019.html +3 -3
- data/doc/classes/CdIo/Track.src/{M000009.html → M000025.html} +1 -1
- data/doc/classes/CdIo/Track.src/{M000010.html → M000026.html} +1 -1
- data/doc/classes/CdIo/Track.src/{M000011.html → M000027.html} +1 -1
- data/doc/classes/CdIo/TrackCdda.html +169 -0
- data/doc/classes/CdIo/TrackCdda.src/M000031.html +17 -0
- data/doc/classes/CdIo/TrackCdda.src/M000039.html +17 -0
- data/doc/classes/CdIo/TrackCdda.src/M000040.html +17 -0
- data/doc/classes/CdIo/TrackCdda.src/M000041.html +17 -0
- data/doc/classes/CdIo/Tracks.html +15 -15
- data/doc/classes/CdIo/Tracks.src/{M000020.html → M000028.html} +1 -1
- data/doc/classes/CdIo/Tracks.src/{M000021.html → M000029.html} +1 -1
- data/doc/classes/CdIo/Tracks.src/{M000022.html → M000030.html} +1 -1
- data/doc/classes/CdIo/{Cd.src/M000012.html → Tracks.src/M000036.html} +3 -3
- data/doc/classes/CdIo/Tracks.src/M000037.html +17 -0
- data/doc/classes/CdIo/Tracks.src/M000038.html +17 -0
- data/doc/created.rid +1 -1
- data/doc/files/__/rb_cdio_def_rb.html +235 -0
- data/doc/files/rb_cdio_def_rb.html +80 -5
- data/doc/fr_class_index.html +11 -0
- data/doc/fr_method_index.html +33 -14
- data/ext/CdIo.c +58 -3
- data/ext/CdIo.h +74 -1
- data/ext/CdIo_Cd.c +33 -80
- data/ext/CdIo_Cdda.c +607 -0
- data/ext/CdIo_Common.c +53 -8
- data/ext/CdIo_Modulo.c +12 -4
- data/ext/CdIo_Track.c +23 -35
- data/ext/CdIo_TrackCdda.c +13 -0
- data/ext/CdIo_TrackIso9660.c +1 -9
- data/ext/CdIo_Tracks.c +12 -2
- data/ext/extconf.rb +3 -0
- data/ext/mkmf.log +23 -0
- data/lib/rb_cdio_read.rb +23 -14
- data/rb_cdio.def.rb +157 -16
- data/test/data/bad-file.toc +13 -0
- data/test/data/cdda-read.right +3 -0
- data/test/data/cdda.cue +1 -0
- data/test/data/cdda.right +5 -28
- data/test/data/cdda.toc +2 -1
- data/test/data/check_common_fn +9 -9
- data/test/data/check_common_fn.in +9 -9
- data/test/data/check_cue.sh.in +35 -20
- data/test/data/check_iso.sh.in +23 -3
- data/test/data/check_nrg.sh.in +18 -16
- data/test/data/check_opts0.right +2 -24
- data/test/data/check_opts1.right +2 -24
- data/test/data/check_opts2.right +5 -27
- data/test/data/check_opts3.right +5 -27
- data/test/data/check_opts4.right +5 -27
- data/test/data/check_opts5.right +5 -27
- data/test/data/check_opts6.right +5 -27
- data/test/data/check_opts7.right +5 -27
- data/test/data/check_paranoia.sh.in +78 -0
- data/test/data/check_sizeof.c +5 -5
- data/test/data/copying-rr.iso +0 -0
- data/test/data/copying-rr.right +25 -0
- data/test/data/copying.right +3 -3
- data/test/data/data5.toc +3 -3
- data/test/data/data6.toc +2 -2
- data/test/data/data7.toc +3 -3
- data/test/data/isofs-m1-no-rr.right +33 -0
- data/test/data/isofs-m1-read.right +3 -0
- data/test/data/isofs-m1.right +12 -36
- data/test/data/joliet-nojoliet.right +23 -0
- data/test/data/joliet.iso +0 -0
- data/test/data/joliet.right +23 -0
- data/test/data/testbincue.c +19 -3
- data/test/data/testdefault.c +8 -2
- data/test/data/testiso9660.c +10 -5
- data/test/data/testparanoia.c +185 -0
- data/test/data/testtoc.c +18 -5
- data/test/data/vcd2.toc +23 -0
- data/test/data/vcd_demo.right +55 -79
- data/test/data/vcd_demo_vcdinfo.right +97 -0
- data/test/data/videocd.right +37 -61
- data/test/test_cdda.rb +73 -0
- data/test/testall.rb +1 -0
- data/test/testbincue.rb +6 -1
- data/test/testclose.rb +6 -1
- data/test/testmethods.rb +29 -21
- data/test/testtoc.rb +9 -2
- metadata +137 -80
- data/doc/classes/CdIo.src/M000009.html +0 -17
- data/doc/classes/CdIo.src/M000010.html +0 -17
- data/doc/classes/CdIo.src/M000011.html +0 -17
- data/doc/classes/CdIo.src/M000012.html +0 -17
- data/doc/classes/CdIo.src/M000013.html +0 -17
- data/doc/classes/CdIo.src/M000014.html +0 -17
- data/doc/classes/CdIo.src/M000015.html +0 -17
- data/doc/classes/CdIo.src/M000016.html +0 -17
- data/doc/classes/CdIo/Track.src/M000020.html +0 -17
- data/test/data/check_cd_read.sh +0 -53
- data/test/data/check_cue.sh +0 -102
- data/test/data/check_iso.sh +0 -32
- data/test/data/check_nrg.sh +0 -68
- data/test/data/check_opts.sh +0 -33
data/test/data/cdda-read.right
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
This is free software; see the source for copying conditions.
|
2
|
+
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
|
+
PARTICULAR PURPOSE.
|
1
4
|
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
|
2
5
|
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
|
3
6
|
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
|
data/test/data/cdda.cue
CHANGED
data/test/data/cdda.right
CHANGED
@@ -1,37 +1,16 @@
|
|
1
1
|
This is free software; see the source for copying conditions.
|
2
2
|
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
3
|
PARTICULAR PURPOSE.
|
4
|
-
Hardware : Disk Image
|
5
|
-
Can eject : No
|
6
|
-
Can close tray : No
|
7
|
-
Can disable manual eject : No
|
8
|
-
Can select juke-box disc : No
|
9
|
-
|
10
|
-
Can set drive speed : No
|
11
|
-
Can detect if CD changed : No
|
12
|
-
Can read multiple sessions : No
|
13
|
-
Can hard reset device : No
|
14
|
-
|
15
|
-
Reading....
|
16
|
-
Can play audio : Yes
|
17
|
-
Can read CD-R : Yes
|
18
|
-
Can read CD-RW : Yes
|
19
|
-
Can read DVD-ROM : No
|
20
|
-
|
21
|
-
Writing....
|
22
|
-
Can write CD-RW : No
|
23
|
-
Can write DVD-R : No
|
24
|
-
Can write DVD-RAM : No
|
25
|
-
Can write DVD-RW : No
|
26
|
-
Can write DVD+RW : No
|
27
4
|
__________________________________
|
28
5
|
|
29
6
|
Disc mode is listed as: CD-DA
|
30
7
|
CD-ROM Track List (1 - 1)
|
31
|
-
#: MSF LSN
|
32
|
-
1: 00:02:00 000000
|
33
|
-
170: 00:06:02 000302
|
8
|
+
#: MSF LSN Type Green? Copy? Channels Premphasis?
|
9
|
+
1: 00:02:00 000000 audio false yes 2 no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 693 KB formatted)
|
34
11
|
Media Catalog Number (MCN): 0000010271955
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
13
|
+
audio status: not implemented
|
35
14
|
__________________________________
|
36
15
|
CD Analysis Report
|
37
16
|
Audio CD, CDDB disc ID is 02000401
|
@@ -40,5 +19,3 @@ CD-TEXT for Disc:
|
|
40
19
|
PERFORMER: Richard Stallman
|
41
20
|
TITLE: Join us now we have the software
|
42
21
|
CD-TEXT for Track 1:
|
43
|
-
PERFORMER: Richard Stallman
|
44
|
-
TITLE: Join us now we have the software
|
data/test/data/cdda.toc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// $Id: cdda.toc,v 1.
|
1
|
+
// $Id: cdda.toc,v 1.4 2004/12/31 07:51:43 rocky Exp $
|
2
2
|
|
3
3
|
// Language number should always start with 0
|
4
4
|
LANGUAGE 0 {
|
@@ -10,4 +10,5 @@ CATALOG "0000010271955"
|
|
10
10
|
CD_DA
|
11
11
|
|
12
12
|
TRACK AUDIO
|
13
|
+
COPY
|
13
14
|
FILE "cdda.bin" 00:00:00 00:00:00
|
data/test/data/check_common_fn
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# $Id: check_common_fn.in,v 1.
|
1
|
+
# $Id: check_common_fn.in,v 1.11 2005/01/29 14:50:34 rocky Exp $
|
2
2
|
#
|
3
|
-
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
3
|
+
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
4
4
|
#
|
5
5
|
# This program is free software; you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
@@ -33,10 +33,9 @@ check_result() {
|
|
33
33
|
cmdline=$*
|
34
34
|
if test $RC -ne 0 ; then
|
35
35
|
if test $RC -ne $SKIP_TEST_EXITCODE ; then
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
echo "$0: $msg failed running:"
|
36
|
+
echo "$0: $msg failed in comparing output."
|
37
|
+
if test -n "$cmdline" ; then
|
38
|
+
echo "$0: failed command:"
|
40
39
|
echo " $cmdline"
|
41
40
|
fi
|
42
41
|
exit $RC
|
@@ -94,7 +93,8 @@ test_iso_info() {
|
|
94
93
|
return 1
|
95
94
|
fi
|
96
95
|
|
97
|
-
|
96
|
+
cmdline="${ISO_INFO} --no-header ${opts}"
|
97
|
+
if $cmdline >${outfile} 2>&1 ; then
|
98
98
|
if test "/usr/bin/diff" != no; then
|
99
99
|
if /usr/bin/diff -w --unified ${outfile} ${rightfile} ; then
|
100
100
|
rm -f $outfile
|
@@ -108,7 +108,7 @@ test_iso_info() {
|
|
108
108
|
return 77
|
109
109
|
fi
|
110
110
|
else
|
111
|
-
echo "$0 failed running: $
|
111
|
+
echo "$0 failed running: $cmdline"
|
112
112
|
return 2
|
113
113
|
fi
|
114
114
|
|
@@ -160,7 +160,7 @@ test_cd_read() {
|
|
160
160
|
return 1
|
161
161
|
fi
|
162
162
|
|
163
|
-
if ${CD_READ} ${opts} >${outfile} 2>&1 ; then
|
163
|
+
if ${CD_READ} --no-header ${opts} >${outfile} 2>&1 ; then
|
164
164
|
if test "/usr/bin/diff" != no; then
|
165
165
|
if /usr/bin/diff -w --unified ${outfile} ${rightfile} ; then
|
166
166
|
rm -f $outfile
|
@@ -1,6 +1,6 @@
|
|
1
|
-
# $Id: check_common_fn.in,v 1.
|
1
|
+
# $Id: check_common_fn.in,v 1.11 2005/01/29 14:50:34 rocky Exp $
|
2
2
|
#
|
3
|
-
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
3
|
+
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
4
4
|
#
|
5
5
|
# This program is free software; you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU General Public License as published by
|
@@ -33,10 +33,9 @@ check_result() {
|
|
33
33
|
cmdline=$*
|
34
34
|
if test $RC -ne 0 ; then
|
35
35
|
if test $RC -ne $SKIP_TEST_EXITCODE ; then
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
echo "$0: $msg failed running:"
|
36
|
+
echo "$0: $msg failed in comparing output."
|
37
|
+
if test -n "$cmdline" ; then
|
38
|
+
echo "$0: failed command:"
|
40
39
|
echo " $cmdline"
|
41
40
|
fi
|
42
41
|
exit $RC
|
@@ -94,7 +93,8 @@ test_iso_info() {
|
|
94
93
|
return 1
|
95
94
|
fi
|
96
95
|
|
97
|
-
|
96
|
+
cmdline="${ISO_INFO} --no-header ${opts}"
|
97
|
+
if $cmdline >${outfile} 2>&1 ; then
|
98
98
|
if test "/usr/bin/diff" != no; then
|
99
99
|
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
100
100
|
rm -f $outfile
|
@@ -108,7 +108,7 @@ test_iso_info() {
|
|
108
108
|
return 77
|
109
109
|
fi
|
110
110
|
else
|
111
|
-
echo "$0 failed running: $
|
111
|
+
echo "$0 failed running: $cmdline"
|
112
112
|
return 2
|
113
113
|
fi
|
114
114
|
|
@@ -160,7 +160,7 @@ test_cd_read() {
|
|
160
160
|
return 1
|
161
161
|
fi
|
162
162
|
|
163
|
-
if ${CD_READ} ${opts} >${outfile} 2>&1 ; then
|
163
|
+
if ${CD_READ} --no-header ${opts} >${outfile} 2>&1 ; then
|
164
164
|
if test "@DIFF@" != no; then
|
165
165
|
if @DIFF@ @DIFF_OPTS@ ${outfile} ${rightfile} ; then
|
166
166
|
rm -f $outfile
|
data/test/data/check_cue.sh.in
CHANGED
@@ -1,19 +1,23 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
#$Id: check_cue.sh.in,v 1.
|
2
|
+
#$Id: check_cue.sh.in,v 1.28 2005/04/11 02:36:36 rocky Exp $
|
3
3
|
# Tests to see that BIN/CUE and cdrdao TOC file iamge reading is correct
|
4
4
|
# (via cd-info).
|
5
5
|
|
6
|
-
if test
|
6
|
+
if test "@VCDINFO_LIBS@X" != "X" ; then
|
7
7
|
vcd_opt='--no-vcd'
|
8
8
|
fi
|
9
9
|
|
10
|
-
if test
|
10
|
+
if test "X$srcdir" = "X" ; then
|
11
11
|
srcdir=`pwd`
|
12
12
|
fi
|
13
13
|
|
14
|
+
if test "X$top_srcdir" = "X" ; then
|
15
|
+
top_srcdir=`pwd`/..
|
16
|
+
fi
|
17
|
+
|
14
18
|
. ${srcdir}/check_common_fn
|
15
19
|
|
16
|
-
if test ! -x
|
20
|
+
if test ! -x $top_srcdir/src/cd-info ; then
|
17
21
|
exit 77
|
18
22
|
fi
|
19
23
|
|
@@ -21,39 +25,45 @@ BASE=`basename $0 .sh`
|
|
21
25
|
|
22
26
|
fname=cdda
|
23
27
|
testnum=CD-DA
|
24
|
-
opts="--quiet --cue-file ${srcdir}/${fname}.cue --no-cddb"
|
28
|
+
opts="--quiet --no-device-info --cue-file ${srcdir}/${fname}.cue --no-cddb"
|
25
29
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
26
30
|
RC=$?
|
27
|
-
check_result $RC "cd-info CUE test $testnum" "
|
31
|
+
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
28
32
|
|
29
33
|
|
30
|
-
opts="--quiet --bin-file ${srcdir}/${fname}.bin --no-cddb"
|
34
|
+
opts="--quiet --no-device-info --bin-file ${srcdir}/${fname}.bin --no-cddb"
|
31
35
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
32
36
|
RC=$?
|
33
|
-
check_result $RC "cd-info BIN test $testnum" "
|
37
|
+
check_result $RC "cd-info BIN test $testnum" "${CD_INFO} $opts"
|
34
38
|
|
35
|
-
opts="--quiet --toc-file ${srcdir}/${fname}.toc --no-cddb"
|
39
|
+
opts="--quiet --no-device-info --toc-file ${srcdir}/${fname}.toc --no-cddb"
|
36
40
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
37
41
|
RC=$?
|
38
|
-
check_result $RC "cd-info TOC test $testnum" "
|
42
|
+
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
39
43
|
|
40
44
|
fname=isofs-m1
|
41
45
|
testnum='ISO 9660 mode1 CUE'
|
42
46
|
if test -f ${srcdir}/${fname}.bin ; then
|
43
|
-
opts="-q --no-disc-mode --cue-file ${srcdir}/${fname}.cue --iso9660"
|
47
|
+
opts="-q --no-device-info --no-disc-mode --cue-file ${srcdir}/${fname}.cue --iso9660"
|
44
48
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
45
49
|
RC=$?
|
46
|
-
check_result $RC "cd-info CUE test $testnum" "$opts"
|
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
|
+
|
47
57
|
else
|
48
58
|
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
49
59
|
fi
|
50
60
|
|
51
61
|
testnum='ISO 9660 mode1 TOC'
|
52
62
|
if test -f ${srcdir}/${fname}.bin ; then
|
53
|
-
opts="-q --no-disc-mode --toc-file ${srcdir}/${fname}.toc --iso9660"
|
63
|
+
opts="-q --no-device-info --no-disc-mode --toc-file ${srcdir}/${fname}.toc --iso9660"
|
54
64
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
55
65
|
RC=$?
|
56
|
-
check_result $RC "cd-info TOC test $testnum" "
|
66
|
+
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
57
67
|
else
|
58
68
|
echo "Don't see TOC file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
59
69
|
fi
|
@@ -66,16 +76,21 @@ else
|
|
66
76
|
fi
|
67
77
|
testnum='Video CD'
|
68
78
|
if test -f ${srcdir}/${fname}.bin ; then
|
69
|
-
opts="-q --no-disc-mode -c ${srcdir}/${fname}.cue --iso9660"
|
79
|
+
opts="-q --no-device-info --no-disc-mode -c ${srcdir}/${fname}.cue --iso9660"
|
70
80
|
test_cdinfo "$opts" ${fname}.dump $right
|
71
81
|
RC=$?
|
72
|
-
check_result $RC "cd-info CUE test $testnum" "
|
82
|
+
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
73
83
|
|
74
|
-
|
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"
|
75
90
|
if test -f ${srcdir}/${fname}.toc ; then
|
76
91
|
test_cdinfo "$opts" ${fname}.dump $right
|
77
92
|
RC=$?
|
78
|
-
check_result $RC "cd-info TOC test $testnum" "
|
93
|
+
check_result $RC "cd-info TOC test $testnum" "${CD_INFO} $opts"
|
79
94
|
else
|
80
95
|
echo "Don't see TOC file ${srcdir}/${fname}.toc. Test $testnum skipped."
|
81
96
|
fi
|
@@ -86,10 +101,10 @@ fi
|
|
86
101
|
fname=svcd_ogt_test_ntsc
|
87
102
|
testnum='Super Video CD'
|
88
103
|
if test -f ${srcdir}/${fname}.bin ; then
|
89
|
-
opts="-q --no-disc-mode --cue-file ${srcdir}/${fname}.cue $vcd_opt --iso9660"
|
104
|
+
opts="-q --no-device-info --no-disc-mode --cue-file ${srcdir}/${fname}.cue $vcd_opt --iso9660"
|
90
105
|
test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
91
106
|
RC=$?
|
92
|
-
check_result $RC "cd-info CUE test $testnum" "
|
107
|
+
check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
|
93
108
|
else
|
94
109
|
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
|
95
110
|
fi
|
data/test/data/check_iso.sh.in
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
#$Id: check_iso.sh.in,v 1.
|
2
|
+
#$Id: check_iso.sh.in,v 1.9 2005/03/05 23:51:40 rocky Exp $
|
3
3
|
|
4
4
|
if test -z $srcdir ; then
|
5
5
|
srcdir=`pwd`
|
@@ -17,12 +17,32 @@ fname=copying
|
|
17
17
|
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
|
18
18
|
test_iso_info "$opts" ${fname}.dump ${srcdir}/${fname}.right
|
19
19
|
RC=$?
|
20
|
-
check_result $RC 'iso-info test
|
20
|
+
check_result $RC 'iso-info basic test' "$ISO_INFO $opts"
|
21
21
|
|
22
22
|
opts="--image ${srcdir}/${fname}.iso --extract $fname "
|
23
23
|
test_iso_read "$opts" ${fname} ${srcdir}/../COPYING
|
24
24
|
RC=$?
|
25
|
-
check_result $RC 'iso-read test
|
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
|
26
46
|
|
27
47
|
exit $RC
|
28
48
|
|
data/test/data/check_nrg.sh.in
CHANGED
@@ -1,33 +1,36 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
#$Id: check_nrg.sh.in,v 1.
|
2
|
+
#$Id: check_nrg.sh.in,v 1.15 2005/04/11 02:36:36 rocky Exp $
|
3
3
|
|
4
|
-
if test
|
4
|
+
if test "@VCDINFO_LIBS@X" != "X" ; then
|
5
5
|
vcd_opt='--no-vcd'
|
6
6
|
fi
|
7
7
|
|
8
|
-
if test
|
8
|
+
if test "X$srcdir" = "X" ; then
|
9
9
|
srcdir=`pwd`
|
10
10
|
fi
|
11
11
|
|
12
|
+
if test "X$top_srcdir" = "X" ; then
|
13
|
+
top_srcdir=`pwd`/..
|
14
|
+
fi
|
15
|
+
|
12
16
|
. ${srcdir}/check_common_fn
|
13
17
|
|
14
|
-
if test ! -x
|
18
|
+
if test ! -x $top_srcdir/src/cd-info ; then
|
15
19
|
exit 77
|
16
20
|
fi
|
17
21
|
|
18
22
|
BASE=`basename $0 .sh`
|
19
23
|
test_name=videocd
|
20
|
-
|
21
|
-
test_cdinfo "
|
22
|
-
${test_name}.dump ${srcdir}/${test_name}.right
|
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
|
23
26
|
RC=$?
|
24
|
-
check_result $RC 'cd-info NRG test 1'
|
27
|
+
check_result $RC 'cd-info NRG test 1' "${CD_INFO} $opts"
|
25
28
|
|
26
29
|
BASE=`basename $0 .sh`
|
27
30
|
nrg_file=${srcdir}/monvoisin.nrg
|
28
31
|
|
29
32
|
if test -f $nrg_file ; then
|
30
|
-
test_cdinfo "-q --nrg-file $nrg_file $vcd_opt --iso9660 " \
|
33
|
+
test_cdinfo "-q --no-device-info --nrg-file $nrg_file $vcd_opt --iso9660 " \
|
31
34
|
monvoisin.dump ${srcdir}/monvoisin.right
|
32
35
|
RC=$?
|
33
36
|
check_result $RC 'cd-info NRG test 2'
|
@@ -38,11 +41,11 @@ fi
|
|
38
41
|
|
39
42
|
test_name='svcdgs'
|
40
43
|
nrg_file=${srcdir}/${test_name}.nrg
|
44
|
+
opts="-q --no-device-info --nrg-file $nrg_file $vcd_opt --iso9660"
|
41
45
|
if test -f $nrg_file ; then
|
42
|
-
test_cdinfo "
|
43
|
-
${test_name}.dump ${srcdir}/${test_name}.right
|
46
|
+
test_cdinfo "$opts" ${test_name}.dump ${srcdir}/${test_name}.right
|
44
47
|
RC=$?
|
45
|
-
check_result $RC "cd-info NRG $test_name"
|
48
|
+
check_result $RC "cd-info NRG $test_name" "${CD_INFO} $opts"
|
46
49
|
else
|
47
50
|
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
48
51
|
exit $SKIP_TEST_EXITCODE
|
@@ -50,12 +53,11 @@ fi
|
|
50
53
|
|
51
54
|
test_name='cdda-mcn'
|
52
55
|
nrg_file=${srcdir}/${test_name}.nrg
|
56
|
+
opts="-q --no-device-info --nrg-file $nrg_file --no-cddb"
|
53
57
|
if test -f $nrg_file ; then
|
54
|
-
test_cdinfo "
|
55
|
-
${test_name}.dump ${srcdir}/${test_name}.right
|
58
|
+
test_cdinfo "$opts" ${test_name}.dump ${srcdir}/${test_name}.right
|
56
59
|
RC=$?
|
57
|
-
check_result $RC "cd-info NRG $test_name"
|
58
|
-
|
60
|
+
check_result $RC "cd-info NRG $test_name" "${CD_INFO} $opts"
|
59
61
|
exit $RC
|
60
62
|
else
|
61
63
|
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
data/test/data/check_opts0.right
CHANGED
@@ -1,33 +1,11 @@
|
|
1
1
|
This is free software; see the source for copying conditions.
|
2
2
|
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
3
3
|
PARTICULAR PURPOSE.
|
4
|
-
Hardware : Disk Image
|
5
|
-
Can eject : No
|
6
|
-
Can close tray : No
|
7
|
-
Can disable manual eject : No
|
8
|
-
Can select juke-box disc : No
|
9
|
-
|
10
|
-
Can set drive speed : No
|
11
|
-
Can detect if CD changed : No
|
12
|
-
Can read multiple sessions : No
|
13
|
-
Can hard reset device : No
|
14
|
-
|
15
|
-
Reading....
|
16
|
-
Can play audio : Yes
|
17
|
-
Can read CD-R : Yes
|
18
|
-
Can read CD-RW : Yes
|
19
|
-
Can read DVD-ROM : No
|
20
|
-
|
21
|
-
Writing....
|
22
|
-
Can write CD-RW : No
|
23
|
-
Can write DVD-R : No
|
24
|
-
Can write DVD-RAM : No
|
25
|
-
Can write DVD-RW : No
|
26
|
-
Can write DVD+RW : No
|
27
4
|
__________________________________
|
28
5
|
|
29
|
-
Disc mode is listed as: CD-DATA
|
6
|
+
Disc mode is listed as: CD-DATA (Mode 1)
|
30
7
|
Media Catalog Number (MCN): not available
|
8
|
+
Last CD Session LSN: not supported by drive/driver
|
31
9
|
__________________________________
|
32
10
|
CD Analysis Report
|
33
11
|
CD-ROM with ISO 9660 filesystem
|