README 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. $Id$
  2. install-info/tests/README
  3. Copyright 2008, 2012 Free Software Foundation, Inc.
  4. Copying and distribution of this file, with or without modification,
  5. are permitted in any medium without royalty provided the copyright
  6. notice and this notice are preserved.
  7. This file describes each of the numbered install-info tests.
  8. 0001: The 99% case. Installing an Info file. Take a single entry from the
  9. Info file and put it into a pre-existing section in the DIR file.
  10. 0002: Installing an Info file. Take two entries from the Info file and put
  11. it into a pre-existing section in the DIR file.
  12. 0003: Installing an Info file. Take two entries from the Info file and put
  13. it into a pre-existing section in the DIR file. The entries are
  14. described in two different `START-INFO-DIR-ENTRY' declarations.
  15. 0004: Installing an Info file. Take two entries from the Info file and put
  16. it into two pre-existing sections in the DIR file. The entries are
  17. described in two different `INFO-DIR-SECTION' and `START-INFO-DIR-ENTRY'
  18. declarations.
  19. 0005: Installing an Info file. Take two entries from the Info file and put
  20. it into one pre-existing section and one non-existing section in the
  21. DIR file. The entries are described in two different `INFO-DIR-SECTION'
  22. and `START-INFO-DIR-ENTRY' declarations.
  23. 0006: The 99% case, try 2. Installing an Info file. Take a single entry
  24. from the Info file and put it into a pre-existing section in the DIR
  25. file, but this time the name is not capitalized.
  26. 0007: The 99% case, try 3. Installing an Info file. Take a single entry
  27. from the Info file and put it into a pre-existing section in the DIR
  28. file, but this time the entry is not the final entry in the section.
  29. 0008: The 99% case, try 4. Installing an Info file. Take a single entry
  30. from the Info file and put it into a pre-existing section in the DIR
  31. file, but this time the entry's description spans more than one line.
  32. 0009: The 99% case, try 5. Installing an Info file. Take a single entry
  33. from the Info file and put it into a pre-existing section in the DIR
  34. file, but this time the entry's description does not start on the
  35. 33rd column and requires indentation.
  36. 0010: The 99% case, try 6. Installing an Info file. Take a single entry
  37. from the Info file and put it into a pre-existing section in the DIR
  38. file, but this time the entry's one line description requires
  39. multi-line indentation.
  40. 0011: Installing an Info file. Take a single entry from the Info file and
  41. put it into a pre-existing section in the DIR file, but this time do
  42. not indent the description.
  43. 0012: Installing an Info file. Take a single entry from the Info file and
  44. put it into a pre-existing section in the DIR file, but this time the
  45. entry already exists and will be replaced.
  46. 0013: Installing an Info file. Take a single entry from the Info file and
  47. put it into a pre-existing section in the DIR file, but this time the
  48. entry already exists and the --keep-old option is used to override the
  49. replacement.
  50. 0014: Installing an Info file. Take a single entry from the Info file and
  51. put it into a pre-existing section in the DIR file, but this time the
  52. entry already exists with a multi-line description and will be
  53. replaced with a single-line description.
  54. 0015: Installing an Info file. Take a single entry from the Info file and
  55. put it into a pre-existing section in the DIR file, but this time the
  56. entry already exists with a single-line description and will be
  57. replaced with a multi-line description.
  58. 0016: Installing an Info file. The Info file does not contain section or
  59. entry hints, and neither a section nor an entry is specified on the
  60. command-line. Installation does not occur, but is not an error.
  61. 0017: Installing an initial Info file into a minimal DIR file.
  62. 0018: Installing an initial Info file into an empty (0 byte) DIR file.
  63. Installation does not occur, and is an error.
  64. 0019: Installing an initial Info file into an empty (2 byte) DIR file.
  65. Installation does not occur, and is an error.
  66. 0020: Installing an Info file. The Info file does not contain section or
  67. entry hints, and a section is not specified on the command-line, but
  68. a --description is.
  69. 0021: Installing an Info file. The Info file does not contain section or
  70. entry hints, and a pre-existing --section is stated on the command-line
  71. along with a --description.
  72. 0022: Installing an Info file. The Info file does not contain section or
  73. entry hints, and a --name is specified on the command-line. The NAME
  74. starts with *, so the whole name (up to the period) is replaced.
  75. 0023: Installing an Info file. The Info file does not contain section or
  76. entry hints, and a --name is specified on the command-line. The NAME
  77. does not start with a *, so just the name (up to the colon) is replaced.
  78. 0024: Installing an Info file. The Info file contains section and entry
  79. hints, but we override the section with a non-existing one from the
  80. command-line.
  81. 0025: Installing an Info file. The Info file contains section and entry
  82. hints, but we override the section with an existing one from the
  83. command-line.
  84. 0026: Installing an Info file. The Info file contains section and entry
  85. hints, but we override the entry with an --entry on the command-line.
  86. 0027: Installing an Info file. The Info file contains section and entry
  87. hints, but we override the entry with an --entry on the command-line,
  88. and we also override the section with a --section on the command-line.
  89. 0028: Installing an Info file. The Info file contains section and entry
  90. hints, but we override the name portion of the entry with a --name
  91. on the command-line. The NAME starts with a `*' so it replaces the
  92. entire name, up to the period.
  93. 0029: Installing an Info file. The Info file contains section and entry
  94. hints, but we override the name portion of the entry with a --name
  95. on the command-line. The NAME does not start with a `*' so it
  96. replaces the name, up to the colon and presumes the basename.
  97. 0030: Installing an Info file. The Info file contains section and entry
  98. hints, but we override the description portion of the entry with a
  99. --description on the command-line.
  100. 0031: Installing an Info file. The Info file contains section and entry
  101. hints, but we override the description and the name with
  102. --description and --name options on the command-line. The NAME starts
  103. with a `*' so it replaces the entire name, up to the period.
  104. 0032: Installing an Info file. The Info file contains section and entry
  105. hints, but we try to override the section with a regular expression
  106. that does not match any existing sections in the DIR file. The
  107. overriding cannot take place, and the entry is installed in the section
  108. specified in the Info file.
  109. 0033: Installing an Info file. The Info file contains an entry hint, but no
  110. section hint. We try to specify the section with a --regex option on
  111. the command-line, but the regular expression does not match any
  112. existing sections in the DIR file.
  113. 0034: Installing an Info file. The Info file contains an entry hint, but
  114. no section hint, and we try to specify the section with a regular
  115. expression that does not match any existing sections in the DIR file.
  116. We also specify a --section on the command-line to ensure that the
  117. entry will be installed in a section that we explicitly name.
  118. 0035: Installing an Info file. The Info file contains section and entry
  119. hints, but we try to specify the section with a regular expression
  120. that does not match any existing sections in the DIR file. We also
  121. specify a --section on the command-line to ensure that the entry will
  122. be installed in a section that we explicitly name.
  123. 0036: Installing an Info file. The Info file contains entry and section
  124. hints, but try to specify the section with a --regex option on
  125. the command-line, and the regular expression matches an existing
  126. section in the DIR file.
  127. 0037: Installing an Info file. The Info file contains section and entry
  128. hints, but we try to specify the section with a regular expression
  129. that does not match any existing sections in the DIR file. We also
  130. specify a --section on the command-line to ensure that the entry will
  131. be installed in a section that we explicitly name. We use the
  132. alternative Debian --section REGEX TITLE syntax instead of the normal
  133. GNU syntax.
  134. 0038: Installing an Info file. The Info file does not contain section or
  135. entry hints, and we specify that two entries go into two sections on
  136. the command-line. One section already exists, and the other doesn't.
  137. 0039: Installing an Info file. The Info file contains section and entry
  138. hints, but we override the entry with an --entry option on the
  139. command-line. The entry has a multi-line description and is not
  140. indented.
  141. 0040: Installing an Info file. The Info file contains section and entry
  142. hints, but we override the entry with --name and --description options
  143. on the command-line. The entry is not indented.
  144. 0041: Installing an Info file. The Info file contains section and entry
  145. hints, and we're installing the entry into a gzipped DIR file.
  146. 0042: Installing an Info file. The Info file contains section and entry
  147. hints for two entries in two sections. Both of the sections do not
  148. already exist in the DIR file. The sections will be added prior to
  149. all other sections due to the alphabetic ordering of section names.
  150. 0043: Installing an Info file. The Info file contains section and entry
  151. hints, and we're going to install the new section admist many other
  152. sections. E.g. instead of always at the very bottom or at the very
  153. top.
  154. 0044: The 99% case. Removing an Info file. The Info file is responsible
  155. for a single entry in the DIR file.
  156. 0045: Removing an Info file. The Info file is responsible for many entries
  157. in the DIR file.
  158. 0046: Removing an Info file. We no longer have the Info file, so we
  159. specify --remove-exactly to remove it instead.
  160. 0047: Removing an Info file. The Info file is responsible for the final
  161. entry in the DIR file. The section also gets removed.
  162. 0048: Removing an Info file. The Info file is responsible for the final
  163. entry in the DIR file, but we want to keep the section heading, so
  164. we specify --keep-old.
  165. 0049: Removing an Info file. The Info file is not responsible for any
  166. entries in the DIR file. A warning is issued, but it isn't an error.
  167. 0050: Removing an Info file. The Info file is responsible for a single
  168. entry in the gzipped DIR file.
  169. 0051: Allow periods in menu item name, e.g., config.status.
  170. 0052: Allow periods in node name also, e.g., "config.status Invocation".
  171. 0053: Check newline handling in input dir entries.