rb_cdio 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. data/ChangeLog.txt +17 -2
  2. data/VERSION +1 -1
  3. data/doc/classes/CdIo.html +19 -31
  4. data/doc/classes/CdIo.src/M000001.html +1 -1
  5. data/doc/classes/CdIo.src/M000002.html +1 -1
  6. data/doc/classes/CdIo.src/M000003.html +1 -1
  7. data/doc/classes/CdIo.src/M000004.html +1 -1
  8. data/doc/classes/CdIo.src/M000005.html +1 -1
  9. data/doc/classes/CdIo.src/M000006.html +1 -1
  10. data/doc/classes/CdIo.src/M000007.html +1 -1
  11. data/doc/classes/CdIo.src/M000008.html +1 -1
  12. data/doc/classes/CdIo/Cd.html +51 -51
  13. data/doc/classes/CdIo/Cd.src/{M000011.html → M000020.html} +1 -1
  14. data/doc/classes/CdIo/Cd.src/M000021.html +3 -3
  15. data/doc/classes/CdIo/Cd.src/M000022.html +3 -3
  16. data/doc/classes/CdIo/Cd.src/M000023.html +3 -3
  17. data/doc/classes/CdIo/Cd.src/M000024.html +3 -3
  18. data/doc/classes/CdIo/Cd.src/M000025.html +3 -3
  19. data/doc/classes/CdIo/Cd.src/M000026.html +3 -3
  20. data/doc/classes/CdIo/Cd.src/M000027.html +3 -3
  21. data/doc/classes/CdIo/Cd.src/M000028.html +3 -3
  22. data/doc/classes/CdIo/Cd.src/M000029.html +3 -3
  23. data/doc/classes/CdIo/Cd.src/M000030.html +3 -3
  24. data/doc/classes/CdIo/Cd.src/M000031.html +3 -3
  25. data/doc/classes/CdIo/Cd.src/M000032.html +3 -3
  26. data/doc/classes/CdIo/Cd.src/M000033.html +3 -3
  27. data/doc/classes/CdIo/Cd.src/M000034.html +3 -3
  28. data/doc/classes/CdIo/Cd.src/M000035.html +3 -3
  29. data/doc/classes/CdIo/Cdda.html +428 -0
  30. data/doc/classes/CdIo/{Cd.src/M000016.html → Cdda.src/M000009.html} +3 -3
  31. data/doc/classes/CdIo/{Cd.src/M000013.html → Cdda.src/M000010.html} +3 -3
  32. data/doc/classes/CdIo/{Cd.src/M000036.html → Cdda.src/M000011.html} +3 -3
  33. data/doc/classes/CdIo/{Cd.src/M000014.html → Cdda.src/M000012.html} +3 -3
  34. data/doc/classes/CdIo/Cdda.src/M000013.html +17 -0
  35. data/doc/classes/CdIo/{Cd.src/M000019.html → Cdda.src/M000014.html} +3 -3
  36. data/doc/classes/CdIo/Cdda.src/M000015.html +17 -0
  37. data/doc/classes/CdIo/Cdda.src/M000016.html +17 -0
  38. data/doc/classes/CdIo/Cdda.src/M000017.html +17 -0
  39. data/doc/classes/CdIo/Cdda.src/M000018.html +17 -0
  40. data/doc/classes/CdIo/Cdda.src/M000019.html +17 -0
  41. data/doc/classes/CdIo/{Cd.src/M000015.html → Cdda.src/M000020.html} +3 -3
  42. data/doc/classes/CdIo/{Cd.src/M000017.html → Cdda.src/M000021.html} +3 -3
  43. data/doc/classes/CdIo/{Cd.src/M000018.html → Cdda.src/M000022.html} +3 -3
  44. data/doc/classes/CdIo/Cdda.src/M000023.html +17 -0
  45. data/doc/classes/CdIo/Cdda.src/M000024.html +17 -0
  46. data/doc/classes/CdIo/Exception.html +118 -0
  47. data/doc/classes/CdIo/Exception/BadParameter.html +111 -0
  48. data/doc/classes/CdIo/Exception/BadPointer.html +111 -0
  49. data/doc/classes/CdIo/{Device.html → Exception/CddbConn.html} +5 -5
  50. data/doc/classes/CdIo/Exception/CddbError.html +111 -0
  51. data/doc/classes/CdIo/{CdText.html → Exception/Error.html} +5 -5
  52. data/doc/{files/test/testall_rb.html → classes/CdIo/Exception/NoDriver.html} +26 -25
  53. data/doc/classes/CdIo/Exception/NotPermitted.html +111 -0
  54. data/doc/classes/CdIo/Exception/Unsupported.html +111 -0
  55. data/doc/classes/CdIo/Track.html +16 -16
  56. data/doc/classes/CdIo/Track.src/M000017.html +3 -3
  57. data/doc/classes/CdIo/Track.src/M000018.html +3 -3
  58. data/doc/classes/CdIo/Track.src/M000019.html +3 -3
  59. data/doc/classes/CdIo/Track.src/{M000009.html → M000025.html} +1 -1
  60. data/doc/classes/CdIo/Track.src/{M000010.html → M000026.html} +1 -1
  61. data/doc/classes/CdIo/Track.src/{M000011.html → M000027.html} +1 -1
  62. data/doc/classes/CdIo/TrackCdda.html +169 -0
  63. data/doc/classes/CdIo/TrackCdda.src/M000031.html +17 -0
  64. data/doc/classes/CdIo/TrackCdda.src/M000039.html +17 -0
  65. data/doc/classes/CdIo/TrackCdda.src/M000040.html +17 -0
  66. data/doc/classes/CdIo/TrackCdda.src/M000041.html +17 -0
  67. data/doc/classes/CdIo/Tracks.html +15 -15
  68. data/doc/classes/CdIo/Tracks.src/{M000020.html → M000028.html} +1 -1
  69. data/doc/classes/CdIo/Tracks.src/{M000021.html → M000029.html} +1 -1
  70. data/doc/classes/CdIo/Tracks.src/{M000022.html → M000030.html} +1 -1
  71. data/doc/classes/CdIo/{Cd.src/M000012.html → Tracks.src/M000036.html} +3 -3
  72. data/doc/classes/CdIo/Tracks.src/M000037.html +17 -0
  73. data/doc/classes/CdIo/Tracks.src/M000038.html +17 -0
  74. data/doc/created.rid +1 -1
  75. data/doc/files/__/rb_cdio_def_rb.html +235 -0
  76. data/doc/files/rb_cdio_def_rb.html +80 -5
  77. data/doc/fr_class_index.html +11 -0
  78. data/doc/fr_method_index.html +33 -14
  79. data/ext/CdIo.c +58 -3
  80. data/ext/CdIo.h +74 -1
  81. data/ext/CdIo_Cd.c +33 -80
  82. data/ext/CdIo_Cdda.c +607 -0
  83. data/ext/CdIo_Common.c +53 -8
  84. data/ext/CdIo_Modulo.c +12 -4
  85. data/ext/CdIo_Track.c +23 -35
  86. data/ext/CdIo_TrackCdda.c +13 -0
  87. data/ext/CdIo_TrackIso9660.c +1 -9
  88. data/ext/CdIo_Tracks.c +12 -2
  89. data/ext/extconf.rb +3 -0
  90. data/ext/mkmf.log +23 -0
  91. data/lib/rb_cdio_read.rb +23 -14
  92. data/rb_cdio.def.rb +157 -16
  93. data/test/data/bad-file.toc +13 -0
  94. data/test/data/cdda-read.right +3 -0
  95. data/test/data/cdda.cue +1 -0
  96. data/test/data/cdda.right +5 -28
  97. data/test/data/cdda.toc +2 -1
  98. data/test/data/check_common_fn +9 -9
  99. data/test/data/check_common_fn.in +9 -9
  100. data/test/data/check_cue.sh.in +35 -20
  101. data/test/data/check_iso.sh.in +23 -3
  102. data/test/data/check_nrg.sh.in +18 -16
  103. data/test/data/check_opts0.right +2 -24
  104. data/test/data/check_opts1.right +2 -24
  105. data/test/data/check_opts2.right +5 -27
  106. data/test/data/check_opts3.right +5 -27
  107. data/test/data/check_opts4.right +5 -27
  108. data/test/data/check_opts5.right +5 -27
  109. data/test/data/check_opts6.right +5 -27
  110. data/test/data/check_opts7.right +5 -27
  111. data/test/data/check_paranoia.sh.in +78 -0
  112. data/test/data/check_sizeof.c +5 -5
  113. data/test/data/copying-rr.iso +0 -0
  114. data/test/data/copying-rr.right +25 -0
  115. data/test/data/copying.right +3 -3
  116. data/test/data/data5.toc +3 -3
  117. data/test/data/data6.toc +2 -2
  118. data/test/data/data7.toc +3 -3
  119. data/test/data/isofs-m1-no-rr.right +33 -0
  120. data/test/data/isofs-m1-read.right +3 -0
  121. data/test/data/isofs-m1.right +12 -36
  122. data/test/data/joliet-nojoliet.right +23 -0
  123. data/test/data/joliet.iso +0 -0
  124. data/test/data/joliet.right +23 -0
  125. data/test/data/testbincue.c +19 -3
  126. data/test/data/testdefault.c +8 -2
  127. data/test/data/testiso9660.c +10 -5
  128. data/test/data/testparanoia.c +185 -0
  129. data/test/data/testtoc.c +18 -5
  130. data/test/data/vcd2.toc +23 -0
  131. data/test/data/vcd_demo.right +55 -79
  132. data/test/data/vcd_demo_vcdinfo.right +97 -0
  133. data/test/data/videocd.right +37 -61
  134. data/test/test_cdda.rb +73 -0
  135. data/test/testall.rb +1 -0
  136. data/test/testbincue.rb +6 -1
  137. data/test/testclose.rb +6 -1
  138. data/test/testmethods.rb +29 -21
  139. data/test/testtoc.rb +9 -2
  140. metadata +137 -80
  141. data/doc/classes/CdIo.src/M000009.html +0 -17
  142. data/doc/classes/CdIo.src/M000010.html +0 -17
  143. data/doc/classes/CdIo.src/M000011.html +0 -17
  144. data/doc/classes/CdIo.src/M000012.html +0 -17
  145. data/doc/classes/CdIo.src/M000013.html +0 -17
  146. data/doc/classes/CdIo.src/M000014.html +0 -17
  147. data/doc/classes/CdIo.src/M000015.html +0 -17
  148. data/doc/classes/CdIo.src/M000016.html +0 -17
  149. data/doc/classes/CdIo/Track.src/M000020.html +0 -17
  150. data/test/data/check_cd_read.sh +0 -53
  151. data/test/data/check_cue.sh +0 -102
  152. data/test/data/check_iso.sh +0 -32
  153. data/test/data/check_nrg.sh +0 -68
  154. data/test/data/check_opts.sh +0 -33
@@ -0,0 +1,13 @@
1
+ // $Id: bad-file.toc,v 1.1 2005/01/23 00:45:57 rocky Exp $
2
+ // XA disk
3
+ //
4
+
5
+ CD_ROM_XA
6
+
7
+ TRACK MODE2_FORM2
8
+ FILE "foo.bin" 00:00:00 00:13:57
9
+
10
+ TRACK MODE2_FORM1
11
+ PREGAP 0:2:0
12
+ FILE "foo.bin" 00:20:71 00:00:00
13
+
@@ -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 ................
@@ -3,4 +3,5 @@ CATALOG 0000010271955
3
3
  PERFORMER "Richard Stallman"
4
4
  FILE "BOING.BIN" BINARY
5
5
  TRACK 01 AUDIO
6
+ FLAGS DCP
6
7
  INDEX 01 00:00:00
@@ -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 Type Green?
32
- 1: 00:02:00 000000 audio false
33
- 170: 00:06:02 000302 leadout
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
@@ -1,4 +1,4 @@
1
- // $Id: cdda.toc,v 1.3 2004/07/25 09:57:04 rocky Exp $
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
@@ -1,6 +1,6 @@
1
- # $Id: check_common_fn.in,v 1.8 2004/05/06 12:05:49 rocky Exp $
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
- if test -z "$cmdline" ; then
37
- echo "$0: $msg failed."
38
- else
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
- if ${ISO_INFO} --no-header ${opts} >${outfile} 2>&1 ; then
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: ${ISO_INFO} ${opts}"
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.8 2004/05/06 12:05:49 rocky Exp $
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
- if test -z "$cmdline" ; then
37
- echo "$0: $msg failed."
38
- else
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
- if ${ISO_INFO} --no-header ${opts} >${outfile} 2>&1 ; then
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: ${ISO_INFO} ${opts}"
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
@@ -1,19 +1,23 @@
1
1
  #!/bin/sh
2
- #$Id: check_cue.sh.in,v 1.20 2004/07/24 14:23:39 rocky Exp $
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 -n "@VCDINFO_LIBS@" ; then
6
+ if test "@VCDINFO_LIBS@X" != "X" ; then
7
7
  vcd_opt='--no-vcd'
8
8
  fi
9
9
 
10
- if test -z "$srcdir" ; then
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 ../src/cd-info ; then
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" "cd-info $opts"
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" "cd-info $opts"
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" "cd-info $opts"
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" "cd-info $opts"
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" "cd-info $opts"
82
+ check_result $RC "cd-info CUE test $testnum" "${CD_INFO} $opts"
73
83
 
74
- opts="-q --no-disc-mode -t ${srcdir}/${fname}.toc --iso9660"
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" "cd-info $opts"
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" "cd-info $opts"
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
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
- #$Id: check_iso.sh.in,v 1.3 2004/05/07 02:15:52 rocky Exp $
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 1' "iso-info $opts"
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 1' "iso-read $opts"
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
 
@@ -1,33 +1,36 @@
1
1
  #!/bin/sh
2
- #$Id: check_nrg.sh.in,v 1.10 2004/05/31 13:32:19 rocky Exp $
2
+ #$Id: check_nrg.sh.in,v 1.15 2005/04/11 02:36:36 rocky Exp $
3
3
 
4
- if test -n "@VCDINFO_LIBS@" ; then
4
+ if test "@VCDINFO_LIBS@X" != "X" ; then
5
5
  vcd_opt='--no-vcd'
6
6
  fi
7
7
 
8
- if test -z $srcdir ; then
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 ../src/cd-info ; then
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 "--quiet --nrg-file ${srcdir}/${test_name}.nrg $vcd_opt --iso9660 " \
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 "-q --nrg-file $nrg_file $vcd_opt --iso9660" \
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 "-q --nrg-file $nrg_file --no-cddb" \
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."
@@ -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 Form 1
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