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/check_opts1.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
|
data/test/data/check_opts2.right
CHANGED
@@ -1,34 +1,12 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
data/test/data/check_opts3.right
CHANGED
@@ -1,34 +1,12 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
data/test/data/check_opts4.right
CHANGED
@@ -1,37 +1,15 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
35
13
|
__________________________________
|
36
14
|
CD Analysis Report
|
37
15
|
CD-ROM with ISO 9660 filesystem
|
data/test/data/check_opts5.right
CHANGED
@@ -1,37 +1,15 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
35
13
|
__________________________________
|
36
14
|
CD Analysis Report
|
37
15
|
CD-ROM with ISO 9660 filesystem
|
data/test/data/check_opts6.right
CHANGED
@@ -1,37 +1,15 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
35
13
|
__________________________________
|
36
14
|
CD Analysis Report
|
37
15
|
CD-ROM with ISO 9660 filesystem
|
data/test/data/check_opts7.right
CHANGED
@@ -1,37 +1,15 @@
|
|
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
|
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?
|
9
|
+
1: 00:02:00 000000 data false no
|
10
|
+
170: 00:06:02 000302 leadout (693 KB raw, 604 KB formatted)
|
34
11
|
Media Catalog Number (MCN): not available
|
12
|
+
Last CD Session LSN: not supported by drive/driver
|
35
13
|
__________________________________
|
36
14
|
CD Analysis Report
|
37
15
|
CD-ROM with ISO 9660 filesystem
|
@@ -0,0 +1,78 @@
|
|
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
|
+
|
data/test/data/check_sizeof.c
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
$Id: check_sizeof.c,v 1.
|
2
|
+
$Id: check_sizeof.c,v 1.4 2005/02/12 10:23:18 rocky Exp $
|
3
3
|
|
4
4
|
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
|
5
5
|
|
@@ -60,10 +60,10 @@ int main (int argc, const char *argv[])
|
|
60
60
|
CHECK_SIZEOF(msf_t);
|
61
61
|
|
62
62
|
/* "iso9660_private.h" */
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
CHECK_SIZEOF(iso_volume_descriptor_t);
|
64
|
+
CHECK_SIZEOF(iso9660_pvd_t);
|
65
|
+
CHECK_SIZEOF(iso_path_table_t);
|
66
|
+
CHECK_SIZEOF(iso9660_dir_t);
|
67
67
|
|
68
68
|
#define iso9660_xa_t_SIZEOF 14
|
69
69
|
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
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.
|
4
|
+
__________________________________
|
5
|
+
ISO-9660 Information
|
6
|
+
/:
|
7
|
+
dr-xr-xr-x 4 0 0 [LSN 23] 2048 Oct 22 2004 02:21:14 .
|
8
|
+
dr-xr-xr-x 2 0 0 [LSN 23] 2048 Oct 22 2004 02:21:14 ..
|
9
|
+
dr-xr-xr-x 2 0 0 [LSN 24] 2048 Mar 05 2005 16:12:25 copy
|
10
|
+
lr-xr-xr-x 1 0 0 [LSN 27] 7 Mar 05 2005 15:26:00 Copy2 -> COPYING
|
11
|
+
-r--r--r-- 1 0 0 [LSN 27] 17992 Mar 05 2005 15:25:51 COPYING
|
12
|
+
br--r--r-- 1 0 0 [LSN 36] 0 Mar 05 2005 15:32:05 fd0
|
13
|
+
dr-xr-xr-x 2 0 0 [LSN 25] 2048 Mar 05 2005 16:12:25 tmp
|
14
|
+
cr--r--r-- 1 0 0 [LSN 36] 0 Mar 05 2005 15:31:42 zero
|
15
|
+
|
16
|
+
/copy/:
|
17
|
+
dr-xr-xr-x 2 0 0 [LSN 24] 2048 Mar 05 2005 16:12:25 .
|
18
|
+
dr-xr-xr-x 4 0 0 [LSN 23] 2048 Mar 05 2005 16:12:25 ..
|
19
|
+
lr-xr-xr-x 1 0 0 [LSN 36] 10 Mar 05 2005 15:27:05 COPYING -> ../COPYING
|
20
|
+
|
21
|
+
/tmp/:
|
22
|
+
dr-xr-xr-x 2 0 0 [LSN 25] 2048 Mar 05 2005 16:12:25 .
|
23
|
+
dr-xr-xr-x 4 0 0 [LSN 23] 2048 Mar 05 2005 16:12:25 ..
|
24
|
+
lr-xr-xr-x 1 0 0 [LSN 36] 18 Mar 05 2005 15:51:05 COPYING -> ../copying/COPYING
|
25
|
+
|
data/test/data/copying.right
CHANGED
@@ -4,7 +4,7 @@ PARTICULAR PURPOSE.
|
|
4
4
|
__________________________________
|
5
5
|
ISO-9660 Information
|
6
6
|
/:
|
7
|
-
Jan 10 2004 00:47 .
|
8
|
-
Jan 10 2004 00:47 ..
|
9
|
-
Jan 10 2004 00:47 copying
|
7
|
+
d [LSN 23] 2048 Jan 10 2004 00:47:39 .
|
8
|
+
d [LSN 23] 2048 Jan 10 2004 00:47:39 ..
|
9
|
+
- [LSN 24] 17992 Jan 10 2004 00:47:28 copying
|
10
10
|
|
data/test/data/data5.toc
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
// $Id: data5.toc,v 1.
|
1
|
+
// $Id: data5.toc,v 1.2 2005/01/23 00:45:57 rocky Exp $
|
2
2
|
// XA disk
|
3
3
|
//
|
4
4
|
|
5
5
|
CD_ROM_XA
|
6
6
|
|
7
7
|
TRACK MODE2_FORM2
|
8
|
-
FILE "
|
8
|
+
FILE "isofs-m1.bin" 00:00:00 00:13:57
|
9
9
|
|
10
10
|
TRACK MODE2_FORM1
|
11
11
|
PREGAP 0:2:0
|
12
|
-
FILE "
|
12
|
+
FILE "isofs-m1.bin" 00:20:71 00:00:00
|
13
13
|
|