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.
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
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>get_devices (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 8</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">get_devices</span>
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>get_default_device (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 13</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">get_default_device</span>(<span class="ruby-identifier">cd</span>=<span class="ruby-keyword kw">nil</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>get_drive_cap_dev (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 19</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">get_drive_cap_dev</span>(<span class="ruby-identifier">device</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>driver_describe (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 23</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">driver_describe</span>(<span class="ruby-identifier">driver</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>discmode_describe (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 27</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">discmode_describe</span>(<span class="ruby-identifier">driver</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>track_format_describe (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 31</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">track_format_describe</span>(<span class="ruby-identifier">track_format</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>track_type_describe (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 35</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">CdIo</span>.<span class="ruby-identifier">track_type_describe</span>(<span class="ruby-identifier">track</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>open (CdIo)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 46</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">device</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">driver</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>get_cdtext (CdIo::Track)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 81</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_cdtext</span>
15
- <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
@@ -1,53 +0,0 @@
1
- #!/bin/sh
2
- #$Id: check_cd_read.sh,v 1.6 2004/05/07 02:15:49 rocky Exp $
3
- #
4
- # Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
5
- #
6
- # This program is free software; you can redistribute it and/or modify
7
- # it under the terms of the GNU General Public License as published by
8
- # the Free Software Foundation; either version 2 of the License, or
9
- # (at your option) any later version.
10
- #
11
- # This program is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU General Public License for more details.
15
- #
16
- # You should have received a copy of the GNU General Public License
17
- # along with this program; if not, write to the Free Software
18
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
- #
20
- # Tests to see that CD reading is correct (via cd-read).
21
-
22
- if test -z $srcdir ; then
23
- srcdir=`pwd`
24
- fi
25
-
26
- . ${srcdir}/check_common_fn
27
-
28
- if test ! -x ../src/cd-read ; then
29
- exit 77
30
- fi
31
-
32
- BASE=`basename $0 .sh`
33
-
34
- fname=cdda
35
- testnum=CD-DA
36
- opts="-c ${srcdir}/${fname}.cue --mode=red --start=0"
37
- test_cd_read "$opts" ${fname}-read.dump ${srcdir}/${fname}-read.right
38
- RC=$?
39
- check_result $RC "cd-read CUE test $testnum" "cd-read $opts"
40
-
41
- fname=isofs-m1
42
- testnum=MODE1
43
- opts="-i ${srcdir}/${fname}.cue --mode m1f1 -s 26 -n 2"
44
- test_cd_read "$opts" ${fname}-read.dump ${srcdir}/${fname}-read.right
45
- RC=$?
46
- check_result $RC "cd-read CUE test $testnum" "cd-read $opts"
47
-
48
- exit $RC
49
-
50
- #;;; Local Variables: ***
51
- #;;; mode:shell-script ***
52
- #;;; eval: (sh-set-shell "bash") ***
53
- #;;; End: ***
@@ -1,102 +0,0 @@
1
- #!/bin/sh
2
- #$Id: check_cue.sh.in,v 1.20 2004/07/24 14:23:39 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 -n "-lvcdinfo -lvcd -liso9660 -lcdio -lm " ; then
7
- vcd_opt='--no-vcd'
8
- fi
9
-
10
- if test -z "$srcdir" ; then
11
- srcdir=`pwd`
12
- fi
13
-
14
- . ${srcdir}/check_common_fn
15
-
16
- if test ! -x ../src/cd-info ; then
17
- exit 77
18
- fi
19
-
20
- BASE=`basename $0 .sh`
21
-
22
- fname=cdda
23
- testnum=CD-DA
24
- opts="--quiet --cue-file ${srcdir}/${fname}.cue --no-cddb"
25
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
26
- RC=$?
27
- check_result $RC "cd-info CUE test $testnum" "cd-info $opts"
28
-
29
-
30
- opts="--quiet --bin-file ${srcdir}/${fname}.bin --no-cddb"
31
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
32
- RC=$?
33
- check_result $RC "cd-info BIN test $testnum" "cd-info $opts"
34
-
35
- opts="--quiet --toc-file ${srcdir}/${fname}.toc --no-cddb"
36
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
37
- RC=$?
38
- check_result $RC "cd-info TOC test $testnum" "cd-info $opts"
39
-
40
- fname=isofs-m1
41
- testnum='ISO 9660 mode1 CUE'
42
- if test -f ${srcdir}/${fname}.bin ; then
43
- opts="-q --no-disc-mode --cue-file ${srcdir}/${fname}.cue --iso9660"
44
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
45
- RC=$?
46
- check_result $RC "cd-info CUE test $testnum" "$opts"
47
- else
48
- echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
49
- fi
50
-
51
- testnum='ISO 9660 mode1 TOC'
52
- if test -f ${srcdir}/${fname}.bin ; then
53
- opts="-q --no-disc-mode --toc-file ${srcdir}/${fname}.toc --iso9660"
54
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
55
- RC=$?
56
- check_result $RC "cd-info TOC test $testnum" "cd-info $opts"
57
- else
58
- echo "Don't see TOC file ${srcdir}/${fname}.bin. Test $testnum skipped."
59
- fi
60
-
61
- fname=vcd_demo
62
- if test -z "-lvcdinfo -lvcd -liso9660 -lcdio -lm " ; then
63
- right=${srcdir}/${fname}.right
64
- else
65
- right=${srcdir}/${fname}_vcdinfo.right
66
- fi
67
- testnum='Video CD'
68
- if test -f ${srcdir}/${fname}.bin ; then
69
- opts="-q --no-disc-mode -c ${srcdir}/${fname}.cue --iso9660"
70
- test_cdinfo "$opts" ${fname}.dump $right
71
- RC=$?
72
- check_result $RC "cd-info CUE test $testnum" "cd-info $opts"
73
-
74
- opts="-q --no-disc-mode -t ${srcdir}/${fname}.toc --iso9660"
75
- if test -f ${srcdir}/${fname}.toc ; then
76
- test_cdinfo "$opts" ${fname}.dump $right
77
- RC=$?
78
- check_result $RC "cd-info TOC test $testnum" "cd-info $opts"
79
- else
80
- echo "Don't see TOC file ${srcdir}/${fname}.toc. Test $testnum skipped."
81
- fi
82
- else
83
- echo "Don't see CUE file ${srcdir}/${fname}.cue. Test $testnum skipped."
84
- fi
85
-
86
- fname=svcd_ogt_test_ntsc
87
- testnum='Super Video CD'
88
- if test -f ${srcdir}/${fname}.bin ; then
89
- opts="-q --no-disc-mode --cue-file ${srcdir}/${fname}.cue $vcd_opt --iso9660"
90
- test_cdinfo "$opts" ${fname}.dump ${srcdir}/${fname}.right
91
- RC=$?
92
- check_result $RC "cd-info CUE test $testnum" "cd-info $opts"
93
- else
94
- echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
95
- fi
96
-
97
- exit $RC
98
-
99
- #;;; Local Variables: ***
100
- #;;; mode:shell-script ***
101
- #;;; eval: (sh-set-shell "bash") ***
102
- #;;; End: ***
@@ -1,32 +0,0 @@
1
- #!/bin/sh
2
- #$Id: check_iso.sh.in,v 1.3 2004/05/07 02:15:52 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 test 1' "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 test 1' "iso-read $opts"
26
-
27
- exit $RC
28
-
29
- #;;; Local Variables: ***
30
- #;;; mode:shell-script ***
31
- #;;; eval: (sh-set-shell "bash") ***
32
- #;;; End: ***
@@ -1,68 +0,0 @@
1
- #!/bin/sh
2
- #$Id: check_nrg.sh.in,v 1.10 2004/05/31 13:32:19 rocky Exp $
3
-
4
- if test -n "-lvcdinfo -lvcd -liso9660 -lcdio -lm " ; then
5
- vcd_opt='--no-vcd'
6
- fi
7
-
8
- if test -z $srcdir ; then
9
- srcdir=`pwd`
10
- fi
11
-
12
- . ${srcdir}/check_common_fn
13
-
14
- if test ! -x ../src/cd-info ; then
15
- exit 77
16
- fi
17
-
18
- BASE=`basename $0 .sh`
19
- 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
23
- RC=$?
24
- check_result $RC 'cd-info NRG test 1'
25
-
26
- BASE=`basename $0 .sh`
27
- nrg_file=${srcdir}/monvoisin.nrg
28
-
29
- if test -f $nrg_file ; then
30
- test_cdinfo "-q --nrg-file $nrg_file $vcd_opt --iso9660 " \
31
- monvoisin.dump ${srcdir}/monvoisin.right
32
- RC=$?
33
- check_result $RC 'cd-info NRG test 2'
34
- else
35
- echo "Don't see NRG file ${nrg_file}. Test skipped."
36
- exit 0
37
- fi
38
-
39
- test_name='svcdgs'
40
- nrg_file=${srcdir}/${test_name}.nrg
41
- 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
44
- RC=$?
45
- check_result $RC "cd-info NRG $test_name"
46
- else
47
- echo "Don't see NRG file ${nrg_file}. Test skipped."
48
- exit $SKIP_TEST_EXITCODE
49
- fi
50
-
51
- test_name='cdda-mcn'
52
- nrg_file=${srcdir}/${test_name}.nrg
53
- if test -f $nrg_file ; then
54
- test_cdinfo "-q --nrg-file $nrg_file --no-cddb" \
55
- ${test_name}.dump ${srcdir}/${test_name}.right
56
- RC=$?
57
- check_result $RC "cd-info NRG $test_name"
58
-
59
- exit $RC
60
- else
61
- echo "Don't see NRG file ${nrg_file}. Test skipped."
62
- exit $SKIP_TEST_EXITCODE
63
- fi
64
-
65
- #;;; Local Variables: ***
66
- #;;; mode:shell-script ***
67
- #;;; eval: (sh-set-shell "bash") ***
68
- #;;; End: ***
@@ -1,33 +0,0 @@
1
- #!/bin/sh
2
- #$Id: check_opts.sh,v 1.6 2004/05/07 02:15:56 rocky Exp $
3
- # Check cd-info options
4
- if test -z "$srcdir" ; then
5
- srcdir=`pwd`
6
- fi
7
-
8
- . ${srcdir}/check_common_fn
9
-
10
- if test ! -x ../src/cd-info ; then
11
- exit 77
12
- fi
13
-
14
- BASE=`basename $0 .sh`
15
-
16
- fname=isofs-m1
17
- i=0
18
- for opt in '-T' '--no-tracks' '-A' '--no-analyze' '-I' '--no-ioctl' \
19
- '-q' '--quiet' ; do
20
- testname=${BASE}$i
21
- opts="--cue-file ${srcdir}/${fname}.cue $opt --quiet"
22
- test_cdinfo "$opts" ${testname}.dump ${srcdir}/${testname}.right
23
- RC=$?
24
- check_result $RC "cd-info option test $opt" "cd-info $opts"
25
- i=`expr $i + 1`
26
- done
27
-
28
- exit $RC
29
-
30
- #;;; Local Variables: ***
31
- #;;; mode:shell-script ***
32
- #;;; eval: (sh-set-shell "bash") ***
33
- #;;; End: ***