summaryrefslogtreecommitdiff
path: root/install-info/tests
diff options
context:
space:
mode:
Diffstat (limited to 'install-info/tests')
-rw-r--r--install-info/tests/Makefile.am237
-rw-r--r--install-info/tests/Makefile.in872
-rw-r--r--install-info/tests/README172
-rw-r--r--install-info/tests/defs.in48
-rw-r--r--install-info/tests/ii-0001-expected-dir-file24
-rw-r--r--install-info/tests/ii-0001-input-dir-file23
-rw-r--r--install-info/tests/ii-0001-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0001-test28
-rw-r--r--install-info/tests/ii-0002-expected-dir-file25
-rw-r--r--install-info/tests/ii-0002-input-dir-file23
-rw-r--r--install-info/tests/ii-0002-input-info-file12
-rwxr-xr-xinstall-info/tests/ii-0002-test28
-rw-r--r--install-info/tests/ii-0003-expected-dir-file25
-rw-r--r--install-info/tests/ii-0003-input-dir-file23
-rw-r--r--install-info/tests/ii-0003-input-info-file15
-rwxr-xr-xinstall-info/tests/ii-0003-test28
-rw-r--r--install-info/tests/ii-0004-expected-dir-file28
-rw-r--r--install-info/tests/ii-0004-input-dir-file26
-rw-r--r--install-info/tests/ii-0004-input-info-file16
-rwxr-xr-xinstall-info/tests/ii-0004-test28
-rw-r--r--install-info/tests/ii-0005-expected-dir-file27
-rw-r--r--install-info/tests/ii-0005-input-dir-file23
-rw-r--r--install-info/tests/ii-0005-input-info-file16
-rwxr-xr-xinstall-info/tests/ii-0005-test28
-rw-r--r--install-info/tests/ii-0006-expected-dir-file24
-rw-r--r--install-info/tests/ii-0006-input-dir-file23
-rw-r--r--install-info/tests/ii-0006-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0006-test28
-rw-r--r--install-info/tests/ii-0007-expected-dir-file25
-rw-r--r--install-info/tests/ii-0007-input-dir-file24
-rw-r--r--install-info/tests/ii-0007-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0007-test28
-rw-r--r--install-info/tests/ii-0008-expected-dir-file25
-rw-r--r--install-info/tests/ii-0008-input-dir-file23
-rw-r--r--install-info/tests/ii-0008-input-info-file12
-rwxr-xr-xinstall-info/tests/ii-0008-test28
-rw-r--r--install-info/tests/ii-0009-expected-dir-file24
-rw-r--r--install-info/tests/ii-0009-input-dir-file23
-rw-r--r--install-info/tests/ii-0009-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0009-test28
-rw-r--r--install-info/tests/ii-0010-expected-dir-file25
-rw-r--r--install-info/tests/ii-0010-input-dir-file23
-rw-r--r--install-info/tests/ii-0010-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0010-test28
-rw-r--r--install-info/tests/ii-0011-expected-dir-file24
-rw-r--r--install-info/tests/ii-0011-input-dir-file23
-rw-r--r--install-info/tests/ii-0011-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0011-test28
-rw-r--r--install-info/tests/ii-0012-expected-dir-file25
-rw-r--r--install-info/tests/ii-0012-input-dir-file24
-rw-r--r--install-info/tests/ii-0012-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0012-test28
-rw-r--r--install-info/tests/ii-0013-expected-dir-file24
-rw-r--r--install-info/tests/ii-0013-input-dir-file24
-rw-r--r--install-info/tests/ii-0013-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0013-test28
-rw-r--r--install-info/tests/ii-0014-expected-dir-file24
-rw-r--r--install-info/tests/ii-0014-input-dir-file25
-rw-r--r--install-info/tests/ii-0014-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0014-test28
-rw-r--r--install-info/tests/ii-0015-expected-dir-file25
-rw-r--r--install-info/tests/ii-0015-input-dir-file24
-rw-r--r--install-info/tests/ii-0015-input-info-file12
-rwxr-xr-xinstall-info/tests/ii-0015-test28
-rw-r--r--install-info/tests/ii-0016-expected-dir-file23
-rw-r--r--install-info/tests/ii-0016-input-dir-file23
-rw-r--r--install-info/tests/ii-0016-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0016-test28
-rw-r--r--install-info/tests/ii-0017-expected-dir-file18
-rw-r--r--install-info/tests/ii-0017-input-dir-file15
-rw-r--r--install-info/tests/ii-0017-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0017-test28
-rw-r--r--install-info/tests/ii-0018-input-dir-file0
-rw-r--r--install-info/tests/ii-0018-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0018-test25
-rw-r--r--install-info/tests/ii-0019-input-dir-file2
-rw-r--r--install-info/tests/ii-0019-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0019-test25
-rw-r--r--install-info/tests/ii-0020-expected-dir-file27
-rw-r--r--install-info/tests/ii-0020-input-dir-file23
-rw-r--r--install-info/tests/ii-0020-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0020-test27
-rw-r--r--install-info/tests/ii-0021-expected-dir-file25
-rw-r--r--install-info/tests/ii-0021-input-dir-file23
-rw-r--r--install-info/tests/ii-0021-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0021-test27
-rw-r--r--install-info/tests/ii-0022-expected-dir-file27
-rw-r--r--install-info/tests/ii-0022-input-dir-file24
-rw-r--r--install-info/tests/ii-0022-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0022-test28
-rw-r--r--install-info/tests/ii-0023-expected-dir-file26
-rw-r--r--install-info/tests/ii-0023-input-dir-file23
-rw-r--r--install-info/tests/ii-0023-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0023-test28
-rw-r--r--install-info/tests/ii-0024-expected-dir-file26
-rw-r--r--install-info/tests/ii-0024-input-dir-file23
-rw-r--r--install-info/tests/ii-0024-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0024-test28
-rw-r--r--install-info/tests/ii-0025-expected-dir-file24
-rw-r--r--install-info/tests/ii-0025-input-dir-file23
-rw-r--r--install-info/tests/ii-0025-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0025-test28
-rw-r--r--install-info/tests/ii-0026-expected-dir-file24
-rw-r--r--install-info/tests/ii-0026-input-dir-file23
-rw-r--r--install-info/tests/ii-0026-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0026-test28
-rw-r--r--install-info/tests/ii-0027-expected-dir-file26
-rw-r--r--install-info/tests/ii-0027-input-dir-file23
-rw-r--r--install-info/tests/ii-0027-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0027-test28
-rw-r--r--install-info/tests/ii-0028-expected-dir-file24
-rw-r--r--install-info/tests/ii-0028-input-dir-file23
-rw-r--r--install-info/tests/ii-0028-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0028-test28
-rw-r--r--install-info/tests/ii-0029-expected-dir-file25
-rw-r--r--install-info/tests/ii-0029-input-dir-file23
-rw-r--r--install-info/tests/ii-0029-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0029-test28
-rw-r--r--install-info/tests/ii-0030-expected-dir-file24
-rw-r--r--install-info/tests/ii-0030-input-dir-file23
-rw-r--r--install-info/tests/ii-0030-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0030-test28
-rw-r--r--install-info/tests/ii-0031-expected-dir-file24
-rw-r--r--install-info/tests/ii-0031-input-dir-file23
-rw-r--r--install-info/tests/ii-0031-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0031-test28
-rw-r--r--install-info/tests/ii-0032-expected-dir-file24
-rw-r--r--install-info/tests/ii-0032-input-dir-file23
-rw-r--r--install-info/tests/ii-0032-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0032-test28
-rw-r--r--install-info/tests/ii-0033-expected-dir-file26
-rw-r--r--install-info/tests/ii-0033-input-dir-file23
-rw-r--r--install-info/tests/ii-0033-input-info-file10
-rwxr-xr-xinstall-info/tests/ii-0033-test28
-rw-r--r--install-info/tests/ii-0034-expected-dir-file24
-rw-r--r--install-info/tests/ii-0034-input-dir-file23
-rw-r--r--install-info/tests/ii-0034-input-info-file10
-rwxr-xr-xinstall-info/tests/ii-0034-test28
-rw-r--r--install-info/tests/ii-0035-expected-dir-file24
-rw-r--r--install-info/tests/ii-0035-input-dir-file23
-rw-r--r--install-info/tests/ii-0035-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0035-test28
-rw-r--r--install-info/tests/ii-0036-expected-dir-file24
-rw-r--r--install-info/tests/ii-0036-input-dir-file23
-rw-r--r--install-info/tests/ii-0036-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0036-test28
-rw-r--r--install-info/tests/ii-0037-expected-dir-file24
-rw-r--r--install-info/tests/ii-0037-input-dir-file23
-rw-r--r--install-info/tests/ii-0037-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0037-test28
-rw-r--r--install-info/tests/ii-0038-expected-dir-file29
-rw-r--r--install-info/tests/ii-0038-input-dir-file23
-rw-r--r--install-info/tests/ii-0038-input-info-file7
-rwxr-xr-xinstall-info/tests/ii-0038-test28
-rw-r--r--install-info/tests/ii-0039-expected-dir-file25
-rw-r--r--install-info/tests/ii-0039-input-dir-file23
-rw-r--r--install-info/tests/ii-0039-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0039-test29
-rw-r--r--install-info/tests/ii-0040-expected-dir-file24
-rw-r--r--install-info/tests/ii-0040-input-dir-file23
-rw-r--r--install-info/tests/ii-0040-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0040-test28
-rw-r--r--install-info/tests/ii-0041-expected-dir-file.gzbin0 -> 457 bytes
-rw-r--r--install-info/tests/ii-0041-input-dir-file.gzbin0 -> 429 bytes
-rw-r--r--install-info/tests/ii-0041-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0041-test32
-rw-r--r--install-info/tests/ii-0042-expected-dir-file29
-rw-r--r--install-info/tests/ii-0042-input-dir-file23
-rw-r--r--install-info/tests/ii-0042-input-info-file15
-rwxr-xr-xinstall-info/tests/ii-0042-test28
-rw-r--r--install-info/tests/ii-0043-expected-dir-file46
-rw-r--r--install-info/tests/ii-0043-input-dir-file43
-rw-r--r--install-info/tests/ii-0043-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0043-test28
-rw-r--r--install-info/tests/ii-0044-expected-dir-file23
-rw-r--r--install-info/tests/ii-0044-input-dir-file25
-rw-r--r--install-info/tests/ii-0044-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0044-test28
-rw-r--r--install-info/tests/ii-0045-expected-dir-file23
-rw-r--r--install-info/tests/ii-0045-input-dir-file27
-rw-r--r--install-info/tests/ii-0045-input-info-file12
-rwxr-xr-xinstall-info/tests/ii-0045-test28
-rw-r--r--install-info/tests/ii-0046-expected-dir-file23
-rw-r--r--install-info/tests/ii-0046-input-dir-file24
-rwxr-xr-xinstall-info/tests/ii-0046-test28
-rw-r--r--install-info/tests/ii-0047-expected-dir-file16
-rw-r--r--install-info/tests/ii-0047-input-dir-file19
-rw-r--r--install-info/tests/ii-0047-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0047-test28
-rw-r--r--install-info/tests/ii-0048-expected-dir-file17
-rw-r--r--install-info/tests/ii-0048-input-dir-file19
-rw-r--r--install-info/tests/ii-0048-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0048-test28
-rw-r--r--install-info/tests/ii-0049-expected-dir-file23
-rw-r--r--install-info/tests/ii-0049-input-dir-file23
-rw-r--r--install-info/tests/ii-0049-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0049-test28
-rw-r--r--install-info/tests/ii-0050-expected-dir-file.gzbin0 -> 432 bytes
-rw-r--r--install-info/tests/ii-0050-input-dir-file.gzbin0 -> 476 bytes
-rw-r--r--install-info/tests/ii-0050-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0050-test33
-rw-r--r--install-info/tests/ii-0051-expected-dir-file18
-rw-r--r--install-info/tests/ii-0051-input-dir-file15
-rw-r--r--install-info/tests/ii-0051-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0051-test30
-rw-r--r--install-info/tests/ii-0052-expected-dir-file19
-rw-r--r--install-info/tests/ii-0052-input-dir-file15
-rw-r--r--install-info/tests/ii-0052-input-info-file11
-rwxr-xr-xinstall-info/tests/ii-0052-test30
-rw-r--r--install-info/tests/ii-0053-expected-dir-file19
-rw-r--r--install-info/tests/ii-0053-input-dir-file15
-rw-r--r--install-info/tests/ii-0053-input-info-file12
-rwxr-xr-xinstall-info/tests/ii-0053-test20
213 files changed, 5703 insertions, 0 deletions
diff --git a/install-info/tests/Makefile.am b/install-info/tests/Makefile.am
new file mode 100644
index 0000000..ed52cdf
--- /dev/null
+++ b/install-info/tests/Makefile.am
@@ -0,0 +1,237 @@
+# $Id: Makefile.am,v 1.5 2008/05/22 16:31:54 karl Exp $
+# Makefile.am for texinfo/util/tests/install-info.
+# Run automake in ../../../ to produce Makefile.in from this.
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+TESTS=ii-0001-test ii-0002-test ii-0003-test ii-0004-test ii-0005-test \
+ii-0006-test ii-0007-test ii-0008-test ii-0009-test ii-0010-test \
+ii-0011-test ii-0012-test ii-0013-test ii-0014-test ii-0015-test \
+ii-0016-test ii-0017-test ii-0018-test ii-0019-test ii-0020-test \
+ii-0021-test ii-0022-test ii-0023-test ii-0024-test ii-0025-test \
+ii-0026-test ii-0027-test ii-0028-test ii-0029-test ii-0030-test \
+ii-0031-test ii-0032-test ii-0033-test ii-0034-test ii-0035-test \
+ii-0036-test ii-0037-test ii-0038-test ii-0039-test ii-0040-test \
+ii-0041-test ii-0042-test ii-0043-test ii-0044-test ii-0045-test \
+ii-0046-test ii-0047-test ii-0048-test ii-0049-test ii-0050-test \
+ii-0051-test ii-0052-test ii-0053-test
+
+noinst_SCRIPTS=$(TESTS)
+
+EXTRA_DIST=\
+ii-0001-input-dir-file \
+ii-0001-input-info-file \
+ii-0001-expected-dir-file \
+ii-0001-test \
+ii-0002-input-dir-file \
+ii-0002-input-info-file \
+ii-0002-expected-dir-file \
+ii-0002-test \
+ii-0003-input-dir-file \
+ii-0003-input-info-file \
+ii-0003-expected-dir-file \
+ii-0003-test \
+ii-0004-input-dir-file \
+ii-0004-input-info-file \
+ii-0004-expected-dir-file \
+ii-0004-test \
+ii-0005-input-dir-file \
+ii-0005-input-info-file \
+ii-0005-expected-dir-file \
+ii-0005-test \
+ii-0006-input-dir-file \
+ii-0006-input-info-file \
+ii-0006-expected-dir-file \
+ii-0006-test \
+ii-0007-input-dir-file \
+ii-0007-input-info-file \
+ii-0007-expected-dir-file \
+ii-0007-test \
+ii-0008-input-dir-file \
+ii-0008-input-info-file \
+ii-0008-expected-dir-file \
+ii-0008-test \
+ii-0009-input-dir-file \
+ii-0009-input-info-file \
+ii-0009-expected-dir-file \
+ii-0009-test \
+ii-0010-input-dir-file \
+ii-0010-input-info-file \
+ii-0010-expected-dir-file \
+ii-0010-test \
+ii-0011-input-dir-file \
+ii-0011-input-info-file \
+ii-0011-expected-dir-file \
+ii-0011-test \
+ii-0012-input-dir-file \
+ii-0012-input-info-file \
+ii-0012-expected-dir-file \
+ii-0012-test \
+ii-0013-input-dir-file \
+ii-0013-input-info-file \
+ii-0013-expected-dir-file \
+ii-0013-test \
+ii-0014-input-dir-file \
+ii-0014-input-info-file \
+ii-0014-expected-dir-file \
+ii-0014-test \
+ii-0015-input-dir-file \
+ii-0015-input-info-file \
+ii-0015-expected-dir-file \
+ii-0015-test \
+ii-0016-input-dir-file \
+ii-0016-input-info-file \
+ii-0016-expected-dir-file \
+ii-0016-test \
+ii-0017-input-dir-file \
+ii-0017-input-info-file \
+ii-0017-expected-dir-file \
+ii-0017-test \
+ii-0018-input-dir-file \
+ii-0018-input-info-file \
+ii-0018-test \
+ii-0019-input-dir-file \
+ii-0019-input-info-file \
+ii-0019-test \
+ii-0020-input-dir-file \
+ii-0020-input-info-file \
+ii-0020-expected-dir-file \
+ii-0020-test \
+ii-0021-input-dir-file \
+ii-0021-input-info-file \
+ii-0021-expected-dir-file \
+ii-0021-test \
+ii-0022-input-dir-file \
+ii-0022-input-info-file \
+ii-0022-expected-dir-file \
+ii-0022-test \
+ii-0023-input-dir-file \
+ii-0023-input-info-file \
+ii-0023-expected-dir-file \
+ii-0023-test \
+ii-0024-input-dir-file \
+ii-0024-input-info-file \
+ii-0024-expected-dir-file \
+ii-0024-test \
+ii-0025-input-dir-file \
+ii-0025-input-info-file \
+ii-0025-expected-dir-file \
+ii-0025-test \
+ii-0026-input-dir-file \
+ii-0026-input-info-file \
+ii-0026-expected-dir-file \
+ii-0026-test \
+ii-0027-input-dir-file \
+ii-0027-input-info-file \
+ii-0027-expected-dir-file \
+ii-0027-test \
+ii-0028-input-dir-file \
+ii-0028-input-info-file \
+ii-0028-expected-dir-file \
+ii-0028-test \
+ii-0029-input-dir-file \
+ii-0029-input-info-file \
+ii-0029-expected-dir-file \
+ii-0029-test \
+ii-0030-input-dir-file \
+ii-0030-input-info-file \
+ii-0030-expected-dir-file \
+ii-0030-test \
+ii-0031-input-dir-file \
+ii-0031-input-info-file \
+ii-0031-expected-dir-file \
+ii-0031-test \
+ii-0032-input-dir-file \
+ii-0032-input-info-file \
+ii-0032-expected-dir-file \
+ii-0032-test \
+ii-0033-input-dir-file \
+ii-0033-input-info-file \
+ii-0033-expected-dir-file \
+ii-0033-test \
+ii-0034-input-dir-file \
+ii-0034-input-info-file \
+ii-0034-expected-dir-file \
+ii-0034-test \
+ii-0035-input-dir-file \
+ii-0035-input-info-file \
+ii-0035-expected-dir-file \
+ii-0035-test \
+ii-0036-input-dir-file \
+ii-0036-input-info-file \
+ii-0036-expected-dir-file \
+ii-0036-test \
+ii-0037-input-dir-file \
+ii-0037-input-info-file \
+ii-0037-expected-dir-file \
+ii-0037-test \
+ii-0038-input-dir-file \
+ii-0038-input-info-file \
+ii-0038-expected-dir-file \
+ii-0038-test \
+ii-0039-input-dir-file \
+ii-0039-input-info-file \
+ii-0039-expected-dir-file \
+ii-0039-test \
+ii-0040-input-dir-file \
+ii-0040-input-info-file \
+ii-0040-expected-dir-file \
+ii-0040-test \
+ii-0041-input-dir-file.gz \
+ii-0041-input-info-file \
+ii-0041-expected-dir-file.gz \
+ii-0041-test \
+ii-0042-input-dir-file \
+ii-0042-input-info-file \
+ii-0042-expected-dir-file \
+ii-0042-test \
+ii-0043-input-dir-file \
+ii-0043-input-info-file \
+ii-0043-expected-dir-file \
+ii-0043-test \
+ii-0044-input-dir-file \
+ii-0044-input-info-file \
+ii-0044-expected-dir-file \
+ii-0044-test \
+ii-0045-input-dir-file \
+ii-0045-input-info-file \
+ii-0045-expected-dir-file \
+ii-0045-test \
+ii-0046-input-dir-file \
+ii-0046-expected-dir-file \
+ii-0046-test \
+ii-0047-input-dir-file \
+ii-0047-input-info-file \
+ii-0047-expected-dir-file \
+ii-0047-test \
+ii-0048-input-dir-file \
+ii-0048-input-info-file \
+ii-0048-expected-dir-file \
+ii-0048-test \
+ii-0049-input-dir-file \
+ii-0049-input-info-file \
+ii-0049-expected-dir-file \
+ii-0049-test \
+ii-0050-input-dir-file.gz \
+ii-0050-input-info-file \
+ii-0050-expected-dir-file.gz \
+ii-0050-test \
+ii-0051-input-dir-file \
+ii-0051-input-info-file \
+ii-0051-expected-dir-file \
+ii-0051-test \
+ii-0052-input-dir-file \
+ii-0052-input-info-file \
+ii-0052-expected-dir-file \
+ii-0052-test \
+ii-0053-input-dir-file \
+ii-0053-input-info-file \
+ii-0053-expected-dir-file \
+ii-0053-test \
+README
diff --git a/install-info/tests/Makefile.in b/install-info/tests/Makefile.in
new file mode 100644
index 0000000..d47916f
--- /dev/null
+++ b/install-info/tests/Makefile.in
@@ -0,0 +1,872 @@
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# $Id: Makefile.am,v 1.5 2008/05/22 16:31:54 karl Exp $
+# Makefile.am for texinfo/util/tests/install-info.
+# Run automake in ../../../ to produce Makefile.in from this.
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = install-info/tests
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/defs.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/gnulib/m4/alloca.m4 \
+ $(top_srcdir)/gnulib/m4/argz.m4 \
+ $(top_srcdir)/gnulib/m4/codeset.m4 \
+ $(top_srcdir)/gnulib/m4/eealloc.m4 \
+ $(top_srcdir)/gnulib/m4/environ.m4 \
+ $(top_srcdir)/gnulib/m4/error.m4 \
+ $(top_srcdir)/gnulib/m4/exitfail.m4 \
+ $(top_srcdir)/gnulib/m4/extensions.m4 \
+ $(top_srcdir)/gnulib/m4/getopt.m4 \
+ $(top_srcdir)/gnulib/m4/gettext.m4 \
+ $(top_srcdir)/gnulib/m4/gettimeofday.m4 \
+ $(top_srcdir)/gnulib/m4/glibc21.m4 \
+ $(top_srcdir)/gnulib/m4/gnulib-common.m4 \
+ $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
+ $(top_srcdir)/gnulib/m4/iconv.m4 \
+ $(top_srcdir)/gnulib/m4/include_next.m4 \
+ $(top_srcdir)/gnulib/m4/inline.m4 \
+ $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
+ $(top_srcdir)/gnulib/m4/lib-ld.m4 \
+ $(top_srcdir)/gnulib/m4/lib-link.m4 \
+ $(top_srcdir)/gnulib/m4/lib-prefix.m4 \
+ $(top_srcdir)/gnulib/m4/localcharset.m4 \
+ $(top_srcdir)/gnulib/m4/longlong.m4 \
+ $(top_srcdir)/gnulib/m4/malloc.m4 \
+ $(top_srcdir)/gnulib/m4/malloca.m4 \
+ $(top_srcdir)/gnulib/m4/mbchar.m4 \
+ $(top_srcdir)/gnulib/m4/mbiter.m4 \
+ $(top_srcdir)/gnulib/m4/mbrtowc.m4 \
+ $(top_srcdir)/gnulib/m4/mbscasecmp.m4 \
+ $(top_srcdir)/gnulib/m4/mbschr.m4 \
+ $(top_srcdir)/gnulib/m4/mbslen.m4 \
+ $(top_srcdir)/gnulib/m4/mbsncasecmp.m4 \
+ $(top_srcdir)/gnulib/m4/mbsstr.m4 \
+ $(top_srcdir)/gnulib/m4/mbstate_t.m4 \
+ $(top_srcdir)/gnulib/m4/mbswidth.m4 \
+ $(top_srcdir)/gnulib/m4/memchr.m4 \
+ $(top_srcdir)/gnulib/m4/memcmp.m4 \
+ $(top_srcdir)/gnulib/m4/memcpy.m4 \
+ $(top_srcdir)/gnulib/m4/memmem.m4 \
+ $(top_srcdir)/gnulib/m4/memmove.m4 \
+ $(top_srcdir)/gnulib/m4/mempcpy.m4 \
+ $(top_srcdir)/gnulib/m4/mkstemp.m4 \
+ $(top_srcdir)/gnulib/m4/nls.m4 \
+ $(top_srcdir)/gnulib/m4/onceonly.m4 \
+ $(top_srcdir)/gnulib/m4/po.m4 \
+ $(top_srcdir)/gnulib/m4/progtest.m4 \
+ $(top_srcdir)/gnulib/m4/setenv.m4 \
+ $(top_srcdir)/gnulib/m4/stdbool.m4 \
+ $(top_srcdir)/gnulib/m4/stdint.m4 \
+ $(top_srcdir)/gnulib/m4/stdlib_h.m4 \
+ $(top_srcdir)/gnulib/m4/stpcpy.m4 \
+ $(top_srcdir)/gnulib/m4/strdup.m4 \
+ $(top_srcdir)/gnulib/m4/strerror.m4 \
+ $(top_srcdir)/gnulib/m4/string_h.m4 \
+ $(top_srcdir)/gnulib/m4/strndup.m4 \
+ $(top_srcdir)/gnulib/m4/strnlen.m4 \
+ $(top_srcdir)/gnulib/m4/sys_stat_h.m4 \
+ $(top_srcdir)/gnulib/m4/sys_time_h.m4 \
+ $(top_srcdir)/gnulib/m4/tempname.m4 \
+ $(top_srcdir)/gnulib/m4/unistd_h.m4 \
+ $(top_srcdir)/gnulib/m4/wchar.m4 \
+ $(top_srcdir)/gnulib/m4/wchar_t.m4 \
+ $(top_srcdir)/gnulib/m4/wctype.m4 \
+ $(top_srcdir)/gnulib/m4/wcwidth.m4 \
+ $(top_srcdir)/gnulib/m4/wint_t.m4 \
+ $(top_srcdir)/gnulib/m4/xalloc.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES = defs
+SCRIPTS = $(noinst_SCRIPTS)
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALLOCA = @ALLOCA@
+ALLOCA_H = @ALLOCA_H@
+AMTAR = @AMTAR@
+ARGZ_H = @ARGZ_H@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
+BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
+BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
+BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
+BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+GETOPT_H = @GETOPT_H@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GLIBC21 = @GLIBC21@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@
+GNULIB_CHOWN = @GNULIB_CHOWN@
+GNULIB_DUP2 = @GNULIB_DUP2@
+GNULIB_ENVIRON = @GNULIB_ENVIRON@
+GNULIB_FCHDIR = @GNULIB_FCHDIR@
+GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
+GNULIB_GETCWD = @GNULIB_GETCWD@
+GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
+GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
+GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
+GNULIB_LCHOWN = @GNULIB_LCHOWN@
+GNULIB_LSEEK = @GNULIB_LSEEK@
+GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@
+GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
+GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
+GNULIB_MBSCHR = @GNULIB_MBSCHR@
+GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
+GNULIB_MBSLEN = @GNULIB_MBSLEN@
+GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
+GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
+GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
+GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
+GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
+GNULIB_MBSSEP = @GNULIB_MBSSEP@
+GNULIB_MBSSPN = @GNULIB_MBSSPN@
+GNULIB_MBSSTR = @GNULIB_MBSSTR@
+GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
+GNULIB_MEMMEM = @GNULIB_MEMMEM@
+GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
+GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
+GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
+GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
+GNULIB_PUTENV = @GNULIB_PUTENV@
+GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
+GNULIB_READLINK = @GNULIB_READLINK@
+GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@
+GNULIB_RPMATCH = @GNULIB_RPMATCH@
+GNULIB_SETENV = @GNULIB_SETENV@
+GNULIB_SLEEP = @GNULIB_SLEEP@
+GNULIB_STPCPY = @GNULIB_STPCPY@
+GNULIB_STPNCPY = @GNULIB_STPNCPY@
+GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
+GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
+GNULIB_STRDUP = @GNULIB_STRDUP@
+GNULIB_STRERROR = @GNULIB_STRERROR@
+GNULIB_STRNDUP = @GNULIB_STRNDUP@
+GNULIB_STRNLEN = @GNULIB_STRNLEN@
+GNULIB_STRPBRK = @GNULIB_STRPBRK@
+GNULIB_STRSEP = @GNULIB_STRSEP@
+GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
+GNULIB_STRSTR = @GNULIB_STRSTR@
+GNULIB_STRTOD = @GNULIB_STRTOD@
+GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
+GNULIB_UNSETENV = @GNULIB_UNSETENV@
+GNULIB_WCWIDTH = @GNULIB_WCWIDTH@
+GREP = @GREP@
+HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@
+HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
+HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
+HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
+HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
+HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
+HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@
+HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
+HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
+HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@
+HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
+HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@
+HAVE_DUP2 = @HAVE_DUP2@
+HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
+HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
+HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
+HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
+HAVE_ISWCNTRL = @HAVE_ISWCNTRL@
+HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
+HAVE_LSTAT = @HAVE_LSTAT@
+HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@
+HAVE_MEMPCPY = @HAVE_MEMPCPY@
+HAVE_MKDTEMP = @HAVE_MKDTEMP@
+HAVE_OS_H = @HAVE_OS_H@
+HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@
+HAVE_READLINK = @HAVE_READLINK@
+HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@
+HAVE_RPMATCH = @HAVE_RPMATCH@
+HAVE_SETENV = @HAVE_SETENV@
+HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
+HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
+HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
+HAVE_SLEEP = @HAVE_SLEEP@
+HAVE_STDINT_H = @HAVE_STDINT_H@
+HAVE_STPCPY = @HAVE_STPCPY@
+HAVE_STPNCPY = @HAVE_STPNCPY@
+HAVE_STRCASESTR = @HAVE_STRCASESTR@
+HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
+HAVE_STRNDUP = @HAVE_STRNDUP@
+HAVE_STRPBRK = @HAVE_STRPBRK@
+HAVE_STRSEP = @HAVE_STRSEP@
+HAVE_STRTOD = @HAVE_STRTOD@
+HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
+HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
+HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
+HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@
+HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
+HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
+HAVE_UNISTD_H = @HAVE_UNISTD_H@
+HAVE_UNSETENV = @HAVE_UNSETENV@
+HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
+HAVE_WCHAR_H = @HAVE_WCHAR_H@
+HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
+HAVE_WINT_T = @HAVE_WINT_T@
+HAVE__BOOL = @HAVE__BOOL@
+HELP2MAN = @HELP2MAN@
+HEVEA = @HEVEA@
+INCLUDE_NEXT = @INCLUDE_NEXT@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+LDFLAGS = @LDFLAGS@
+LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
+LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+NEXT_STDINT_H = @NEXT_STDINT_H@
+NEXT_STDLIB_H = @NEXT_STDLIB_H@
+NEXT_STRING_H = @NEXT_STRING_H@
+NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@
+NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@
+NEXT_UNISTD_H = @NEXT_UNISTD_H@
+NEXT_WCHAR_H = @NEXT_WCHAR_H@
+NEXT_WCTYPE_H = @NEXT_WCTYPE_H@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+POSUB = @POSUB@
+PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
+RANLIB = @RANLIB@
+REPLACE_CHOWN = @REPLACE_CHOWN@
+REPLACE_FCHDIR = @REPLACE_FCHDIR@
+REPLACE_GETCWD = @REPLACE_GETCWD@
+REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
+REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
+REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@
+REPLACE_LCHOWN = @REPLACE_LCHOWN@
+REPLACE_LSEEK = @REPLACE_LSEEK@
+REPLACE_MEMMEM = @REPLACE_MEMMEM@
+REPLACE_MKDIR = @REPLACE_MKDIR@
+REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
+REPLACE_PUTENV = @REPLACE_PUTENV@
+REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
+REPLACE_STRERROR = @REPLACE_STRERROR@
+REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@
+REPLACE_STRSTR = @REPLACE_STRSTR@
+REPLACE_STRTOD = @REPLACE_STRTOD@
+REPLACE_WCWIDTH = @REPLACE_WCWIDTH@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
+SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
+STDBOOL_H = @STDBOOL_H@
+STDINT_H = @STDINT_H@
+STRIP = @STRIP@
+SYS_STAT_H = @SYS_STAT_H@
+SYS_TIME_H = @SYS_TIME_H@
+TERMLIBS = @TERMLIBS@
+TEX = @TEX@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+VOID_UNSETENV = @VOID_UNSETENV@
+WCHAR_H = @WCHAR_H@
+WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
+WCTYPE_H = @WCTYPE_H@
+WINT_T_SUFFIX = @WINT_T_SUFFIX@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+gl_LIBOBJS = @gl_LIBOBJS@
+gl_LTLIBOBJS = @gl_LTLIBOBJS@
+gltests_LIBOBJS = @gltests_LIBOBJS@
+gltests_LTLIBOBJS = @gltests_LTLIBOBJS@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+native_tools = @native_tools@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+TESTS = ii-0001-test ii-0002-test ii-0003-test ii-0004-test ii-0005-test \
+ii-0006-test ii-0007-test ii-0008-test ii-0009-test ii-0010-test \
+ii-0011-test ii-0012-test ii-0013-test ii-0014-test ii-0015-test \
+ii-0016-test ii-0017-test ii-0018-test ii-0019-test ii-0020-test \
+ii-0021-test ii-0022-test ii-0023-test ii-0024-test ii-0025-test \
+ii-0026-test ii-0027-test ii-0028-test ii-0029-test ii-0030-test \
+ii-0031-test ii-0032-test ii-0033-test ii-0034-test ii-0035-test \
+ii-0036-test ii-0037-test ii-0038-test ii-0039-test ii-0040-test \
+ii-0041-test ii-0042-test ii-0043-test ii-0044-test ii-0045-test \
+ii-0046-test ii-0047-test ii-0048-test ii-0049-test ii-0050-test \
+ii-0051-test ii-0052-test ii-0053-test
+
+noinst_SCRIPTS = $(TESTS)
+EXTRA_DIST = \
+ii-0001-input-dir-file \
+ii-0001-input-info-file \
+ii-0001-expected-dir-file \
+ii-0001-test \
+ii-0002-input-dir-file \
+ii-0002-input-info-file \
+ii-0002-expected-dir-file \
+ii-0002-test \
+ii-0003-input-dir-file \
+ii-0003-input-info-file \
+ii-0003-expected-dir-file \
+ii-0003-test \
+ii-0004-input-dir-file \
+ii-0004-input-info-file \
+ii-0004-expected-dir-file \
+ii-0004-test \
+ii-0005-input-dir-file \
+ii-0005-input-info-file \
+ii-0005-expected-dir-file \
+ii-0005-test \
+ii-0006-input-dir-file \
+ii-0006-input-info-file \
+ii-0006-expected-dir-file \
+ii-0006-test \
+ii-0007-input-dir-file \
+ii-0007-input-info-file \
+ii-0007-expected-dir-file \
+ii-0007-test \
+ii-0008-input-dir-file \
+ii-0008-input-info-file \
+ii-0008-expected-dir-file \
+ii-0008-test \
+ii-0009-input-dir-file \
+ii-0009-input-info-file \
+ii-0009-expected-dir-file \
+ii-0009-test \
+ii-0010-input-dir-file \
+ii-0010-input-info-file \
+ii-0010-expected-dir-file \
+ii-0010-test \
+ii-0011-input-dir-file \
+ii-0011-input-info-file \
+ii-0011-expected-dir-file \
+ii-0011-test \
+ii-0012-input-dir-file \
+ii-0012-input-info-file \
+ii-0012-expected-dir-file \
+ii-0012-test \
+ii-0013-input-dir-file \
+ii-0013-input-info-file \
+ii-0013-expected-dir-file \
+ii-0013-test \
+ii-0014-input-dir-file \
+ii-0014-input-info-file \
+ii-0014-expected-dir-file \
+ii-0014-test \
+ii-0015-input-dir-file \
+ii-0015-input-info-file \
+ii-0015-expected-dir-file \
+ii-0015-test \
+ii-0016-input-dir-file \
+ii-0016-input-info-file \
+ii-0016-expected-dir-file \
+ii-0016-test \
+ii-0017-input-dir-file \
+ii-0017-input-info-file \
+ii-0017-expected-dir-file \
+ii-0017-test \
+ii-0018-input-dir-file \
+ii-0018-input-info-file \
+ii-0018-test \
+ii-0019-input-dir-file \
+ii-0019-input-info-file \
+ii-0019-test \
+ii-0020-input-dir-file \
+ii-0020-input-info-file \
+ii-0020-expected-dir-file \
+ii-0020-test \
+ii-0021-input-dir-file \
+ii-0021-input-info-file \
+ii-0021-expected-dir-file \
+ii-0021-test \
+ii-0022-input-dir-file \
+ii-0022-input-info-file \
+ii-0022-expected-dir-file \
+ii-0022-test \
+ii-0023-input-dir-file \
+ii-0023-input-info-file \
+ii-0023-expected-dir-file \
+ii-0023-test \
+ii-0024-input-dir-file \
+ii-0024-input-info-file \
+ii-0024-expected-dir-file \
+ii-0024-test \
+ii-0025-input-dir-file \
+ii-0025-input-info-file \
+ii-0025-expected-dir-file \
+ii-0025-test \
+ii-0026-input-dir-file \
+ii-0026-input-info-file \
+ii-0026-expected-dir-file \
+ii-0026-test \
+ii-0027-input-dir-file \
+ii-0027-input-info-file \
+ii-0027-expected-dir-file \
+ii-0027-test \
+ii-0028-input-dir-file \
+ii-0028-input-info-file \
+ii-0028-expected-dir-file \
+ii-0028-test \
+ii-0029-input-dir-file \
+ii-0029-input-info-file \
+ii-0029-expected-dir-file \
+ii-0029-test \
+ii-0030-input-dir-file \
+ii-0030-input-info-file \
+ii-0030-expected-dir-file \
+ii-0030-test \
+ii-0031-input-dir-file \
+ii-0031-input-info-file \
+ii-0031-expected-dir-file \
+ii-0031-test \
+ii-0032-input-dir-file \
+ii-0032-input-info-file \
+ii-0032-expected-dir-file \
+ii-0032-test \
+ii-0033-input-dir-file \
+ii-0033-input-info-file \
+ii-0033-expected-dir-file \
+ii-0033-test \
+ii-0034-input-dir-file \
+ii-0034-input-info-file \
+ii-0034-expected-dir-file \
+ii-0034-test \
+ii-0035-input-dir-file \
+ii-0035-input-info-file \
+ii-0035-expected-dir-file \
+ii-0035-test \
+ii-0036-input-dir-file \
+ii-0036-input-info-file \
+ii-0036-expected-dir-file \
+ii-0036-test \
+ii-0037-input-dir-file \
+ii-0037-input-info-file \
+ii-0037-expected-dir-file \
+ii-0037-test \
+ii-0038-input-dir-file \
+ii-0038-input-info-file \
+ii-0038-expected-dir-file \
+ii-0038-test \
+ii-0039-input-dir-file \
+ii-0039-input-info-file \
+ii-0039-expected-dir-file \
+ii-0039-test \
+ii-0040-input-dir-file \
+ii-0040-input-info-file \
+ii-0040-expected-dir-file \
+ii-0040-test \
+ii-0041-input-dir-file.gz \
+ii-0041-input-info-file \
+ii-0041-expected-dir-file.gz \
+ii-0041-test \
+ii-0042-input-dir-file \
+ii-0042-input-info-file \
+ii-0042-expected-dir-file \
+ii-0042-test \
+ii-0043-input-dir-file \
+ii-0043-input-info-file \
+ii-0043-expected-dir-file \
+ii-0043-test \
+ii-0044-input-dir-file \
+ii-0044-input-info-file \
+ii-0044-expected-dir-file \
+ii-0044-test \
+ii-0045-input-dir-file \
+ii-0045-input-info-file \
+ii-0045-expected-dir-file \
+ii-0045-test \
+ii-0046-input-dir-file \
+ii-0046-expected-dir-file \
+ii-0046-test \
+ii-0047-input-dir-file \
+ii-0047-input-info-file \
+ii-0047-expected-dir-file \
+ii-0047-test \
+ii-0048-input-dir-file \
+ii-0048-input-info-file \
+ii-0048-expected-dir-file \
+ii-0048-test \
+ii-0049-input-dir-file \
+ii-0049-input-info-file \
+ii-0049-expected-dir-file \
+ii-0049-test \
+ii-0050-input-dir-file.gz \
+ii-0050-input-info-file \
+ii-0050-expected-dir-file.gz \
+ii-0050-test \
+ii-0051-input-dir-file \
+ii-0051-input-info-file \
+ii-0051-expected-dir-file \
+ii-0051-test \
+ii-0052-input-dir-file \
+ii-0052-input-info-file \
+ii-0052-expected-dir-file \
+ii-0052-test \
+ii-0053-input-dir-file \
+ii-0053-input-info-file \
+ii-0053-expected-dir-file \
+ii-0053-test \
+README
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu install-info/tests/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu install-info/tests/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+defs: $(top_builddir)/config.status $(srcdir)/defs.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(SCRIPTS)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-TESTS check-am clean clean-generic \
+ distclean distclean-generic distdir dvi dvi-am html html-am \
+ info info-am install install-am install-data install-data-am \
+ install-dvi install-dvi-am install-exec install-exec-am \
+ install-html install-html-am install-info install-info-am \
+ install-man install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
+ uninstall-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/install-info/tests/README b/install-info/tests/README
new file mode 100644
index 0000000..c42ecc9
--- /dev/null
+++ b/install-info/tests/README
@@ -0,0 +1,172 @@
+$Id: README,v 1.1 2008/01/02 01:36:16 karl Exp $
+install-info/tests/README
+
+ Copyright (C) 2008 Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved.
+
+This file describes each of the numbered install-info tests.
+
+0001: The 99% case. Installing an Info file. Take a single entry from the
+ Info file and put it into a pre-existing section in the DIR file.
+0002: Installing an Info file. Take two entries from the Info file and put
+ it into a pre-existing section in the DIR file.
+0003: Installing an Info file. Take two entries from the Info file and put
+ it into a pre-existing section in the DIR file. The entries are
+ described in two different `START-INFO-DIR-ENTRY' declarations.
+0004: Installing an Info file. Take two entries from the Info file and put
+ it into two pre-existing sections in the DIR file. The entries are
+ described in two different `INFO-DIR-SECTION' and `START-INFO-DIR-ENTRY'
+ declarations.
+0005: Installing an Info file. Take two entries from the Info file and put
+ it into one pre-existing section and one non-existing section in the
+ DIR file. The entries are described in two different `INFO-DIR-SECTION'
+ and `START-INFO-DIR-ENTRY' declarations.
+0006: The 99% case, try 2. Installing an Info file. Take a single entry
+ from the Info file and put it into a pre-existing section in the DIR
+ file, but this time the name is not capitalized.
+0007: The 99% case, try 3. Installing an Info file. Take a single entry
+ from the Info file and put it into a pre-existing section in the DIR
+ file, but this time the entry is not the final entry in the section.
+0008: The 99% case, try 4. Installing an Info file. Take a single entry
+ from the Info file and put it into a pre-existing section in the DIR
+ file, but this time the entry's description spans more than one line.
+0009: The 99% case, try 5. Installing an Info file. Take a single entry
+ from the Info file and put it into a pre-existing section in the DIR
+ file, but this time the entry's description does not start on the
+ 33rd column and requires indentation.
+0010: The 99% case, try 6. Installing an Info file. Take a single entry
+ from the Info file and put it into a pre-existing section in the DIR
+ file, but this time the entry's one line description requires
+ multi-line indentation.
+0011: Installing an Info file. Take a single entry from the Info file and
+ put it into a pre-existing section in the DIR file, but this time do
+ not indent the description.
+0012: Installing an Info file. Take a single entry from the Info file and
+ put it into a pre-existing section in the DIR file, but this time the
+ entry already exists and will be replaced.
+0013: Installing an Info file. Take a single entry from the Info file and
+ put it into a pre-existing section in the DIR file, but this time the
+ entry already exists and the --keep-old option is used to override the
+ replacement.
+0014: Installing an Info file. Take a single entry from the Info file and
+ put it into a pre-existing section in the DIR file, but this time the
+ entry already exists with a multi-line description and will be
+ replaced with a single-line description.
+0015: Installing an Info file. Take a single entry from the Info file and
+ put it into a pre-existing section in the DIR file, but this time the
+ entry already exists with a single-line description and will be
+ replaced with a multi-line description.
+0016: Installing an Info file. The Info file does not contain section or
+ entry hints, and neither a section nor an entry is specified on the
+ command-line. Installation does not occur, but is not an error.
+0017: Installing an initial Info file into a minimal DIR file.
+0018: Installing an initial Info file into an empty (0 byte) DIR file.
+ Installation does not occur, and is an error.
+0019: Installing an initial Info file into an empty (2 byte) DIR file.
+ Installation does not occur, and is an error.
+0020: Installing an Info file. The Info file does not contain section or
+ entry hints, and a section is not specified on the command-line, but
+ a --description is.
+0021: Installing an Info file. The Info file does not contain section or
+ entry hints, and a pre-existing --section is stated on the command-line
+ along with a --description.
+0022: Installing an Info file. The Info file does not contain section or
+ entry hints, and a --name is specified on the command-line. The NAME
+ starts with *, so the whole name (up to the period) is replaced.
+0023: Installing an Info file. The Info file does not contain section or
+ entry hints, and a --name is specified on the command-line. The NAME
+ does not start with a *, so just the name (up to the colon) is replaced.
+0024: Installing an Info file. The Info file contains section and entry
+ hints, but we override the section with a non-existing one from the
+ command-line.
+0025: Installing an Info file. The Info file contains section and entry
+ hints, but we override the section with an existing one from the
+ command-line.
+0026: Installing an Info file. The Info file contains section and entry
+ hints, but we override the entry with an --entry on the command-line.
+0027: Installing an Info file. The Info file contains section and entry
+ hints, but we override the entry with an --entry on the command-line,
+ and we also override the section with a --section on the command-line.
+0028: Installing an Info file. The Info file contains section and entry
+ hints, but we override the name portion of the entry with a --name
+ on the command-line. The NAME starts with a `*' so it replaces the
+ entire name, up to the period.
+0029: Installing an Info file. The Info file contains section and entry
+ hints, but we override the name portion of the entry with a --name
+ on the command-line. The NAME does not start with a `*' so it
+ replaces the name, up to the colon and presumes the basename.
+0030: Installing an Info file. The Info file contains section and entry
+ hints, but we override the description portion of the entry with a
+ --description on the command-line.
+0031: Installing an Info file. The Info file contains section and entry
+ hints, but we override the description and the name with
+ --description and --name options on the command-line. The NAME starts
+ with a `*' so it replaces the entire name, up to the period.
+0032: Installing an Info file. The Info file contains section and entry
+ hints, but we try to override the section with a regular expression
+ that does not match any existing sections in the DIR file. The
+ overriding cannot take place, and the entry is installed in the section
+ specified in the Info file.
+0033: Installing an Info file. The Info file contains an entry hint, but no
+ section hint. We try to specify the section with a --regex option on
+ the command-line, but the regular expression does not match any
+ existing sections in the DIR file.
+0034: Installing an Info file. The Info file contains an entry hint, but
+ no section hint, and we try to specify the section with a regular
+ expression that does not match any existing sections in the DIR file.
+ We also specify a --section on the command-line to ensure that the
+ entry will be installed in a section that we explicitly name.
+0035: Installing an Info file. The Info file contains section and entry
+ hints, but we try to specify the section with a regular expression
+ that does not match any existing sections in the DIR file. We also
+ specify a --section on the command-line to ensure that the entry will
+ be installed in a section that we explicitly name.
+0036: Installing an Info file. The Info file contains entry and section
+ hints, but try to specify the section with a --regex option on
+ the command-line, and the regular expression matches an existing
+ section in the DIR file.
+0037: Installing an Info file. The Info file contains section and entry
+ hints, but we try to specify the section with a regular expression
+ that does not match any existing sections in the DIR file. We also
+ specify a --section on the command-line to ensure that the entry will
+ be installed in a section that we explicitly name. We use the
+ alternative Debian --section REGEX TITLE syntax instead of the normal
+ GNU syntax.
+0038: Installing an Info file. The Info file does not contain section or
+ entry hints, and we specify that two entries go into two sections on
+ the command-line. One section already exists, and the other doesn't.
+0039: Installing an Info file. The Info file contains section and entry
+ hints, but we override the entry with an --entry option on the
+ command-line. The entry has a multi-line description and is not
+ indented.
+0040: Installing an Info file. The Info file contains section and entry
+ hints, but we override the entry with --name and --description options
+ on the command-line. The entry is not indented.
+0041: Installing an Info file. The Info file contains section and entry
+ hints, and we're installing the entry into a gzipped DIR file.
+0042: Installing an Info file. The Info file contains section and entry
+ hints for two entries in two sections. Both of the sections do not
+ already exist in the DIR file. The sections will be added prior to
+ all other sections due to the alphabetic ordering of section names.
+0043: Installing an Info file. The Info file contains section and entry
+ hints, and we're going to install the new section admist many other
+ sections. E.g. instead of always at the very bottom or at the very
+ top.
+0044: The 99% case. Removing an Info file. The Info file is responsible
+ for a single entry in the DIR file.
+0045: Removing an Info file. The Info file is responsible for many entries
+ in the DIR file.
+0046: Removing an Info file. We no longer have the Info file, so we
+ specify --remove-exactly to remove it instead.
+0047: Removing an Info file. The Info file is responsible for the final
+ entry in the DIR file. The section also gets removed.
+0048: Removing an Info file. The Info file is responsible for the final
+ entry in the DIR file, but we want to keep the section heading, so
+ we specify --keep-old.
+0049: Removing an Info file. The Info file is not responsible for any
+ entries in the DIR file. A warning is issued, but it isn't an error.
+0050: Removing an Info file. The Info file is responsible for a single
+ entry in the gzipped DIR file.
diff --git a/install-info/tests/defs.in b/install-info/tests/defs.in
new file mode 100644
index 0000000..815ee5f
--- /dev/null
+++ b/install-info/tests/defs.in
@@ -0,0 +1,48 @@
+# @configure_input@
+# $Id: defs.in,v 1.1 2008/04/17 17:54:17 karl Exp $
+#
+# Copyright 2008 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# (Some snippets copied from Autoconf and/or util/defs.in.)
+# Make sure we override the user shell.
+SHELL='@SHELL@'
+export SHELL
+
+unset CDPATH
+
+# Ensure we are running from the right directory.
+if test ! -f ./defs; then
+ echo "defs: not found in current directory" 1>&2
+ exit 1
+fi
+
+# If srcdir is not set, then we are not running from `make check'.
+if test -z "$srcdir"; then
+ VERBOSE=x
+ # compute $srcdir.
+ srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'`
+ test $srcdir = $0 && srcdir=.
+fi
+
+# The two variables we use in the test scripts.
+
+top_builddir=@top_builddir@
+install_info=${top_builddir}/install-info/ginstall-info
+export install_info
+
+top_srcdir=@top_srcdir@
+testdir=${top_srcdir}/install-info/tests
+export testdir
diff --git a/install-info/tests/ii-0001-expected-dir-file b/install-info/tests/ii-0001-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0001-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0001-input-dir-file b/install-info/tests/ii-0001-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0001-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0001-input-info-file b/install-info/tests/ii-0001-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0001-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0001-test b/install-info/tests/ii-0001-test
new file mode 100755
index 0000000..e298842
--- /dev/null
+++ b/install-info/tests/ii-0001-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii01-XXXXXXXX`
+cp ${testdir}/ii-0001-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0001-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0001-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0002-expected-dir-file b/install-info/tests/ii-0002-expected-dir-file
new file mode 100644
index 0000000..f233228
--- /dev/null
+++ b/install-info/tests/ii-0002-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+* Wildebeest: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0002-input-dir-file b/install-info/tests/ii-0002-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0002-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0002-input-info-file b/install-info/tests/ii-0002-input-info-file
new file mode 100644
index 0000000..3d08ade
--- /dev/null
+++ b/install-info/tests/ii-0002-input-info-file
@@ -0,0 +1,12 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Wildebeest: (gnu). Wildebeest native to Africa.
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0002-test b/install-info/tests/ii-0002-test
new file mode 100755
index 0000000..78bc2e2
--- /dev/null
+++ b/install-info/tests/ii-0002-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii02-XXXXXXXX`
+cp ${testdir}/ii-0002-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0002-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0002-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0003-expected-dir-file b/install-info/tests/ii-0003-expected-dir-file
new file mode 100644
index 0000000..f233228
--- /dev/null
+++ b/install-info/tests/ii-0003-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+* Wildebeest: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0003-input-dir-file b/install-info/tests/ii-0003-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0003-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0003-input-info-file b/install-info/tests/ii-0003-input-info-file
new file mode 100644
index 0000000..d782c18
--- /dev/null
+++ b/install-info/tests/ii-0003-input-info-file
@@ -0,0 +1,15 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+START-INFO-DIR-ENTRY
+* Wildebeest: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0003-test b/install-info/tests/ii-0003-test
new file mode 100755
index 0000000..08b4b14
--- /dev/null
+++ b/install-info/tests/ii-0003-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii03-XXXXXXXX`
+cp ${testdir}/ii-0003-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0003-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0003-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0004-expected-dir-file b/install-info/tests/ii-0004-expected-dir-file
new file mode 100644
index 0000000..09fa8de
--- /dev/null
+++ b/install-info/tests/ii-0004-expected-dir-file
@@ -0,0 +1,28 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+
+Antlered Animals
+* Deer: (deer). Ruminent antlered mammal.
+* Wildebeest: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0004-input-dir-file b/install-info/tests/ii-0004-input-dir-file
new file mode 100644
index 0000000..42590ac
--- /dev/null
+++ b/install-info/tests/ii-0004-input-dir-file
@@ -0,0 +1,26 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Antlered Animals
+* Deer: (deer). Ruminent antlered mammal.
diff --git a/install-info/tests/ii-0004-input-info-file b/install-info/tests/ii-0004-input-info-file
new file mode 100644
index 0000000..10b3896
--- /dev/null
+++ b/install-info/tests/ii-0004-input-info-file
@@ -0,0 +1,16 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Wildebeest: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0004-test b/install-info/tests/ii-0004-test
new file mode 100755
index 0000000..96d60d1
--- /dev/null
+++ b/install-info/tests/ii-0004-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii04-XXXXXXXX`
+cp ${testdir}/ii-0004-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0004-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0004-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0005-expected-dir-file b/install-info/tests/ii-0005-expected-dir-file
new file mode 100644
index 0000000..dcb6f46
--- /dev/null
+++ b/install-info/tests/ii-0005-expected-dir-file
@@ -0,0 +1,27 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+
+Antlered Animals
+* Wildebeest: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0005-input-dir-file b/install-info/tests/ii-0005-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0005-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0005-input-info-file b/install-info/tests/ii-0005-input-info-file
new file mode 100644
index 0000000..10b3896
--- /dev/null
+++ b/install-info/tests/ii-0005-input-info-file
@@ -0,0 +1,16 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Wildebeest: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0005-test b/install-info/tests/ii-0005-test
new file mode 100755
index 0000000..5f139c1
--- /dev/null
+++ b/install-info/tests/ii-0005-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii05-XXXXXXXX`
+cp ${testdir}/ii-0005-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0005-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0005-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0006-expected-dir-file b/install-info/tests/ii-0006-expected-dir-file
new file mode 100644
index 0000000..5024593
--- /dev/null
+++ b/install-info/tests/ii-0006-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0006-input-dir-file b/install-info/tests/ii-0006-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0006-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0006-input-info-file b/install-info/tests/ii-0006-input-info-file
new file mode 100644
index 0000000..bf98436
--- /dev/null
+++ b/install-info/tests/ii-0006-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0006-test b/install-info/tests/ii-0006-test
new file mode 100755
index 0000000..78893dc
--- /dev/null
+++ b/install-info/tests/ii-0006-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii06-XXXXXXXX`
+cp ${testdir}/ii-0006-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0006-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0006-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0007-expected-dir-file b/install-info/tests/ii-0007-expected-dir-file
new file mode 100644
index 0000000..f944e81
--- /dev/null
+++ b/install-info/tests/ii-0007-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+* Hippopotamus: (hippo). A large semi-aquatic African mammal.
diff --git a/install-info/tests/ii-0007-input-dir-file b/install-info/tests/ii-0007-input-dir-file
new file mode 100644
index 0000000..a23460e
--- /dev/null
+++ b/install-info/tests/ii-0007-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Hippopotamus: (hippo). A large semi-aquatic African mammal.
diff --git a/install-info/tests/ii-0007-input-info-file b/install-info/tests/ii-0007-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0007-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0007-test b/install-info/tests/ii-0007-test
new file mode 100755
index 0000000..0f84af1
--- /dev/null
+++ b/install-info/tests/ii-0007-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii07-XXXXXXXX`
+cp ${testdir}/ii-0007-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0007-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0007-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0008-expected-dir-file b/install-info/tests/ii-0008-expected-dir-file
new file mode 100644
index 0000000..dbb0b24
--- /dev/null
+++ b/install-info/tests/ii-0008-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
diff --git a/install-info/tests/ii-0008-input-dir-file b/install-info/tests/ii-0008-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0008-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0008-input-info-file b/install-info/tests/ii-0008-input-info-file
new file mode 100644
index 0000000..053a774
--- /dev/null
+++ b/install-info/tests/ii-0008-input-info-file
@@ -0,0 +1,12 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0008-test b/install-info/tests/ii-0008-test
new file mode 100755
index 0000000..ff650e8
--- /dev/null
+++ b/install-info/tests/ii-0008-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii08-XXXXXXXX`
+cp ${testdir}/ii-0008-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0008-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0008-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0009-expected-dir-file b/install-info/tests/ii-0009-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0009-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0009-input-dir-file b/install-info/tests/ii-0009-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0009-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0009-input-info-file b/install-info/tests/ii-0009-input-info-file
new file mode 100644
index 0000000..bbcf824
--- /dev/null
+++ b/install-info/tests/ii-0009-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0009-test b/install-info/tests/ii-0009-test
new file mode 100755
index 0000000..9280d9b
--- /dev/null
+++ b/install-info/tests/ii-0009-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii09-XXXXXXXX`
+cp ${testdir}/ii-0009-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0009-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0009-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0010-expected-dir-file b/install-info/tests/ii-0010-expected-dir-file
new file mode 100644
index 0000000..dbb0b24
--- /dev/null
+++ b/install-info/tests/ii-0010-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
diff --git a/install-info/tests/ii-0010-input-dir-file b/install-info/tests/ii-0010-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0010-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0010-input-info-file b/install-info/tests/ii-0010-input-info-file
new file mode 100644
index 0000000..417a763
--- /dev/null
+++ b/install-info/tests/ii-0010-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to the African savannah.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0010-test b/install-info/tests/ii-0010-test
new file mode 100755
index 0000000..ba8666b
--- /dev/null
+++ b/install-info/tests/ii-0010-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii10-XXXXXXXX`
+cp ${testdir}/ii-0010-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0010-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0010-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0011-expected-dir-file b/install-info/tests/ii-0011-expected-dir-file
new file mode 100644
index 0000000..4a5fa11
--- /dev/null
+++ b/install-info/tests/ii-0011-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to the African savannah.
diff --git a/install-info/tests/ii-0011-input-dir-file b/install-info/tests/ii-0011-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0011-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0011-input-info-file b/install-info/tests/ii-0011-input-info-file
new file mode 100644
index 0000000..417a763
--- /dev/null
+++ b/install-info/tests/ii-0011-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to the African savannah.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0011-test b/install-info/tests/ii-0011-test
new file mode 100755
index 0000000..bf094a8
--- /dev/null
+++ b/install-info/tests/ii-0011-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii11-XXXXXXXX`
+cp ${testdir}/ii-0011-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --no-indent ${testdir}/ii-0011-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0011-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0012-expected-dir-file b/install-info/tests/ii-0012-expected-dir-file
new file mode 100644
index 0000000..dbb0b24
--- /dev/null
+++ b/install-info/tests/ii-0012-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
diff --git a/install-info/tests/ii-0012-input-dir-file b/install-info/tests/ii-0012-input-dir-file
new file mode 100644
index 0000000..92b0058
--- /dev/null
+++ b/install-info/tests/ii-0012-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0012-input-info-file b/install-info/tests/ii-0012-input-info-file
new file mode 100644
index 0000000..417a763
--- /dev/null
+++ b/install-info/tests/ii-0012-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to the African savannah.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0012-test b/install-info/tests/ii-0012-test
new file mode 100755
index 0000000..21433c2
--- /dev/null
+++ b/install-info/tests/ii-0012-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii12-XXXXXXXX`
+cp ${testdir}/ii-0012-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0012-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0012-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0013-expected-dir-file b/install-info/tests/ii-0013-expected-dir-file
new file mode 100644
index 0000000..92b0058
--- /dev/null
+++ b/install-info/tests/ii-0013-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0013-input-dir-file b/install-info/tests/ii-0013-input-dir-file
new file mode 100644
index 0000000..92b0058
--- /dev/null
+++ b/install-info/tests/ii-0013-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0013-input-info-file b/install-info/tests/ii-0013-input-info-file
new file mode 100644
index 0000000..6a3c6fc
--- /dev/null
+++ b/install-info/tests/ii-0013-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0013-test b/install-info/tests/ii-0013-test
new file mode 100755
index 0000000..1e74235
--- /dev/null
+++ b/install-info/tests/ii-0013-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii13-XXXXXXXX`
+cp ${testdir}/ii-0013-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --keep-old ${testdir}/ii-0013-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0013-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0014-expected-dir-file b/install-info/tests/ii-0014-expected-dir-file
new file mode 100644
index 0000000..8d60946
--- /dev/null
+++ b/install-info/tests/ii-0014-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to Africa.
diff --git a/install-info/tests/ii-0014-input-dir-file b/install-info/tests/ii-0014-input-dir-file
new file mode 100644
index 0000000..80a498d
--- /dev/null
+++ b/install-info/tests/ii-0014-input-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). A large hooved Wildebeest native to the
+ African savannah.
diff --git a/install-info/tests/ii-0014-input-info-file b/install-info/tests/ii-0014-input-info-file
new file mode 100644
index 0000000..66689fc
--- /dev/null
+++ b/install-info/tests/ii-0014-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0014-test b/install-info/tests/ii-0014-test
new file mode 100755
index 0000000..8c7d194
--- /dev/null
+++ b/install-info/tests/ii-0014-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii14-XXXXXXXX`
+cp ${testdir}/ii-0014-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0014-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0014-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0015-expected-dir-file b/install-info/tests/ii-0015-expected-dir-file
new file mode 100644
index 0000000..dbb0b24
--- /dev/null
+++ b/install-info/tests/ii-0015-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
diff --git a/install-info/tests/ii-0015-input-dir-file b/install-info/tests/ii-0015-input-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0015-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0015-input-info-file b/install-info/tests/ii-0015-input-info-file
new file mode 100644
index 0000000..3625504
--- /dev/null
+++ b/install-info/tests/ii-0015-input-info-file
@@ -0,0 +1,12 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Large hooved animal native to the African
+ savannah.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0015-test b/install-info/tests/ii-0015-test
new file mode 100755
index 0000000..2462253
--- /dev/null
+++ b/install-info/tests/ii-0015-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii15-XXXXXXXX`
+cp ${testdir}/ii-0015-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0015-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0015-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0016-expected-dir-file b/install-info/tests/ii-0016-expected-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0016-expected-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0016-input-dir-file b/install-info/tests/ii-0016-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0016-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0016-input-info-file b/install-info/tests/ii-0016-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0016-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0016-test b/install-info/tests/ii-0016-test
new file mode 100755
index 0000000..5de10b0
--- /dev/null
+++ b/install-info/tests/ii-0016-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii16-XXXXXXXX`
+cp ${testdir}/ii-0016-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --silent ${testdir}/ii-0016-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0016-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0017-expected-dir-file b/install-info/tests/ii-0017-expected-dir-file
new file mode 100644
index 0000000..60d56da
--- /dev/null
+++ b/install-info/tests/ii-0017-expected-dir-file
@@ -0,0 +1,18 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0017-input-dir-file b/install-info/tests/ii-0017-input-dir-file
new file mode 100644
index 0000000..d2f31fd
--- /dev/null
+++ b/install-info/tests/ii-0017-input-dir-file
@@ -0,0 +1,15 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
diff --git a/install-info/tests/ii-0017-input-info-file b/install-info/tests/ii-0017-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0017-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0017-test b/install-info/tests/ii-0017-test
new file mode 100755
index 0000000..6ee7cc8
--- /dev/null
+++ b/install-info/tests/ii-0017-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii17-XXXXXXXX`
+cp ${testdir}/ii-0017-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0017-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0017-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0018-input-dir-file b/install-info/tests/ii-0018-input-dir-file
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/install-info/tests/ii-0018-input-dir-file
diff --git a/install-info/tests/ii-0018-input-info-file b/install-info/tests/ii-0018-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0018-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0018-test b/install-info/tests/ii-0018-test
new file mode 100755
index 0000000..4ce56aa
--- /dev/null
+++ b/install-info/tests/ii-0018-test
@@ -0,0 +1,25 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii18-XXXXXXXX`
+cp ${testdir}/ii-0018-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0018-input-info-file $outputdirfile 2>/dev/null
+retval=$?
+if [ "x$retval" != "x1" ]; then
+ exit $retval
+fi
+
+rm -f $outputdirfile
+exit 0
diff --git a/install-info/tests/ii-0019-input-dir-file b/install-info/tests/ii-0019-input-dir-file
new file mode 100644
index 0000000..139597f
--- /dev/null
+++ b/install-info/tests/ii-0019-input-dir-file
@@ -0,0 +1,2 @@
+
+
diff --git a/install-info/tests/ii-0019-input-info-file b/install-info/tests/ii-0019-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0019-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0019-test b/install-info/tests/ii-0019-test
new file mode 100755
index 0000000..6cbd7e6
--- /dev/null
+++ b/install-info/tests/ii-0019-test
@@ -0,0 +1,25 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii19-XXXXXXXX`
+cp ${testdir}/ii-0019-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0019-input-info-file $outputdirfile 2>/dev/null
+retval=$?
+if [ "x$retval" != "x1" ]; then
+ exit $retval
+fi
+
+rm -f $outputdirfile
+exit 0
diff --git a/install-info/tests/ii-0020-expected-dir-file b/install-info/tests/ii-0020-expected-dir-file
new file mode 100644
index 0000000..a621b56
--- /dev/null
+++ b/install-info/tests/ii-0020-expected-dir-file
@@ -0,0 +1,27 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Miscellaneous
+* ii-0020-input-info-file: (ii-0020-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0020-input-dir-file b/install-info/tests/ii-0020-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0020-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0020-input-info-file b/install-info/tests/ii-0020-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0020-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0020-test b/install-info/tests/ii-0020-test
new file mode 100755
index 0000000..d0dd7f4
--- /dev/null
+++ b/install-info/tests/ii-0020-test
@@ -0,0 +1,27 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii20-XXXXXXXX`
+cp ${testdir}/ii-0020-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+${install_info} --description='Wildebeest native to Africa.' ${testdir}/ii-0020-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0020-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0021-expected-dir-file b/install-info/tests/ii-0021-expected-dir-file
new file mode 100644
index 0000000..bdf71bc
--- /dev/null
+++ b/install-info/tests/ii-0021-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* ii-0021-input-info-file: (ii-0021-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0021-input-dir-file b/install-info/tests/ii-0021-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0021-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0021-input-info-file b/install-info/tests/ii-0021-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0021-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0021-test b/install-info/tests/ii-0021-test
new file mode 100755
index 0000000..5e7a39f
--- /dev/null
+++ b/install-info/tests/ii-0021-test
@@ -0,0 +1,27 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii21-XXXXXXXX`
+cp ${testdir}/ii-0021-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+${install_info} --section="Animals" --description='Wildebeest native to Africa.' ${testdir}/ii-0021-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0021-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0022-expected-dir-file b/install-info/tests/ii-0022-expected-dir-file
new file mode 100644
index 0000000..60e2c2d
--- /dev/null
+++ b/install-info/tests/ii-0022-expected-dir-file
@@ -0,0 +1,27 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Hippopotamus: (hippo). A large semi-aquatic African mammal.
+
+Miscellaneous
+* Gnu: (gnu).
diff --git a/install-info/tests/ii-0022-input-dir-file b/install-info/tests/ii-0022-input-dir-file
new file mode 100644
index 0000000..a23460e
--- /dev/null
+++ b/install-info/tests/ii-0022-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Hippopotamus: (hippo). A large semi-aquatic African mammal.
diff --git a/install-info/tests/ii-0022-input-info-file b/install-info/tests/ii-0022-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0022-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0022-test b/install-info/tests/ii-0022-test
new file mode 100755
index 0000000..6eb61f2
--- /dev/null
+++ b/install-info/tests/ii-0022-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii22-XXXXXXXX`
+cp ${testdir}/ii-0022-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name='* Gnu: (gnu).' ${testdir}/ii-0022-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0022-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0023-expected-dir-file b/install-info/tests/ii-0023-expected-dir-file
new file mode 100644
index 0000000..6b21b0c
--- /dev/null
+++ b/install-info/tests/ii-0023-expected-dir-file
@@ -0,0 +1,26 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Miscellaneous
+* Gnu: (ii-0023-input-info-file).
diff --git a/install-info/tests/ii-0023-input-dir-file b/install-info/tests/ii-0023-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0023-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0023-input-info-file b/install-info/tests/ii-0023-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0023-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0023-test b/install-info/tests/ii-0023-test
new file mode 100755
index 0000000..759bf70
--- /dev/null
+++ b/install-info/tests/ii-0023-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii23-XXXXXXXX`
+cp ${testdir}/ii-0023-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name="Gnu" ${testdir}/ii-0023-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0023-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0024-expected-dir-file b/install-info/tests/ii-0024-expected-dir-file
new file mode 100644
index 0000000..84cecbf
--- /dev/null
+++ b/install-info/tests/ii-0024-expected-dir-file
@@ -0,0 +1,26 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Antlered Animals
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0024-input-dir-file b/install-info/tests/ii-0024-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0024-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0024-input-info-file b/install-info/tests/ii-0024-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0024-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0024-test b/install-info/tests/ii-0024-test
new file mode 100755
index 0000000..077a335
--- /dev/null
+++ b/install-info/tests/ii-0024-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii24-XXXXXXXX`
+cp ${testdir}/ii-0024-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --section="Antlered Animals" ${testdir}/ii-0024-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0024-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0025-expected-dir-file b/install-info/tests/ii-0025-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0025-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0025-input-dir-file b/install-info/tests/ii-0025-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0025-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0025-input-info-file b/install-info/tests/ii-0025-input-info-file
new file mode 100644
index 0000000..af26df9
--- /dev/null
+++ b/install-info/tests/ii-0025-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0025-test b/install-info/tests/ii-0025-test
new file mode 100755
index 0000000..d8df4ac
--- /dev/null
+++ b/install-info/tests/ii-0025-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii25-XXXXXXXX`
+cp ${testdir}/ii-0025-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --section="Animals" ${testdir}/ii-0025-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0025-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0026-expected-dir-file b/install-info/tests/ii-0026-expected-dir-file
new file mode 100644
index 0000000..705b840
--- /dev/null
+++ b/install-info/tests/ii-0026-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0026-input-dir-file b/install-info/tests/ii-0026-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0026-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0026-input-info-file b/install-info/tests/ii-0026-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0026-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0026-test b/install-info/tests/ii-0026-test
new file mode 100755
index 0000000..b962a6a
--- /dev/null
+++ b/install-info/tests/ii-0026-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii26-XXXXXXXX`
+cp ${testdir}/ii-0026-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --entry="* Gnu: (gnu). Wildebeest native to the African savannah." ${testdir}/ii-0026-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0026-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0027-expected-dir-file b/install-info/tests/ii-0027-expected-dir-file
new file mode 100644
index 0000000..0e8dc7f
--- /dev/null
+++ b/install-info/tests/ii-0027-expected-dir-file
@@ -0,0 +1,26 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Antlered Animals
+* Gnu: (gnu). Wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0027-input-dir-file b/install-info/tests/ii-0027-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0027-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0027-input-info-file b/install-info/tests/ii-0027-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0027-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0027-test b/install-info/tests/ii-0027-test
new file mode 100755
index 0000000..b90e53a
--- /dev/null
+++ b/install-info/tests/ii-0027-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii27-XXXXXXXX`
+cp ${testdir}/ii-0027-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --entry="* Gnu: (gnu). Wildebeest native to the African savannah." --section="Antlered Animals" ${testdir}/ii-0027-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0027-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0028-expected-dir-file b/install-info/tests/ii-0028-expected-dir-file
new file mode 100644
index 0000000..b08ed9e
--- /dev/null
+++ b/install-info/tests/ii-0028-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Wildebeest: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0028-input-dir-file b/install-info/tests/ii-0028-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0028-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0028-input-info-file b/install-info/tests/ii-0028-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0028-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0028-test b/install-info/tests/ii-0028-test
new file mode 100755
index 0000000..ff61258
--- /dev/null
+++ b/install-info/tests/ii-0028-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii28-XXXXXXXX`
+cp ${testdir}/ii-0028-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name="* Wildebeest: (gnu)." ${testdir}/ii-0028-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0028-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0029-expected-dir-file b/install-info/tests/ii-0029-expected-dir-file
new file mode 100644
index 0000000..3321a97
--- /dev/null
+++ b/install-info/tests/ii-0029-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Wildebeest: (ii-0029-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0029-input-dir-file b/install-info/tests/ii-0029-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0029-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0029-input-info-file b/install-info/tests/ii-0029-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0029-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0029-test b/install-info/tests/ii-0029-test
new file mode 100755
index 0000000..065e7fb
--- /dev/null
+++ b/install-info/tests/ii-0029-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii29-XXXXXXXX`
+cp ${testdir}/ii-0029-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name="Wildebeest" ${testdir}/ii-0029-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0029-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0030-expected-dir-file b/install-info/tests/ii-0030-expected-dir-file
new file mode 100644
index 0000000..705b840
--- /dev/null
+++ b/install-info/tests/ii-0030-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0030-input-dir-file b/install-info/tests/ii-0030-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0030-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0030-input-info-file b/install-info/tests/ii-0030-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0030-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0030-test b/install-info/tests/ii-0030-test
new file mode 100755
index 0000000..022f461
--- /dev/null
+++ b/install-info/tests/ii-0030-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii30-XXXXXXXX`
+cp ${testdir}/ii-0030-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --description="Wildebeest native to the African savannah." ${testdir}/ii-0030-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0030-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0031-expected-dir-file b/install-info/tests/ii-0031-expected-dir-file
new file mode 100644
index 0000000..272fc0e
--- /dev/null
+++ b/install-info/tests/ii-0031-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Wildebeest: (gnu). Wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0031-input-dir-file b/install-info/tests/ii-0031-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0031-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0031-input-info-file b/install-info/tests/ii-0031-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0031-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0031-test b/install-info/tests/ii-0031-test
new file mode 100755
index 0000000..d6dbf5d
--- /dev/null
+++ b/install-info/tests/ii-0031-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii31-XXXXXXXX`
+cp ${testdir}/ii-0031-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name="* Wildebeest: (gnu)." --description="Wildebeest native to the African savannah." ${testdir}/ii-0031-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0031-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0032-expected-dir-file b/install-info/tests/ii-0032-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0032-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0032-input-dir-file b/install-info/tests/ii-0032-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0032-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0032-input-info-file b/install-info/tests/ii-0032-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0032-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0032-test b/install-info/tests/ii-0032-test
new file mode 100755
index 0000000..33e5c84
--- /dev/null
+++ b/install-info/tests/ii-0032-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii32-XXXXXXXX`
+cp ${testdir}/ii-0032-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --regex='^Antlered Animals$' ${testdir}/ii-0032-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0032-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0033-expected-dir-file b/install-info/tests/ii-0033-expected-dir-file
new file mode 100644
index 0000000..cee1fc1
--- /dev/null
+++ b/install-info/tests/ii-0033-expected-dir-file
@@ -0,0 +1,26 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+
+Miscellaneous
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0033-input-dir-file b/install-info/tests/ii-0033-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0033-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0033-input-info-file b/install-info/tests/ii-0033-input-info-file
new file mode 100644
index 0000000..1be6381
--- /dev/null
+++ b/install-info/tests/ii-0033-input-info-file
@@ -0,0 +1,10 @@
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0033-test b/install-info/tests/ii-0033-test
new file mode 100755
index 0000000..409806f
--- /dev/null
+++ b/install-info/tests/ii-0033-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii33-XXXXXXXX`
+cp ${testdir}/ii-0033-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --regex='^Antlered Animals$' ${testdir}/ii-0033-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0033-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0034-expected-dir-file b/install-info/tests/ii-0034-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0034-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0034-input-dir-file b/install-info/tests/ii-0034-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0034-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0034-input-info-file b/install-info/tests/ii-0034-input-info-file
new file mode 100644
index 0000000..1be6381
--- /dev/null
+++ b/install-info/tests/ii-0034-input-info-file
@@ -0,0 +1,10 @@
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0034-test b/install-info/tests/ii-0034-test
new file mode 100755
index 0000000..17fe70c
--- /dev/null
+++ b/install-info/tests/ii-0034-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii34-XXXXXXXX`
+cp ${testdir}/ii-0034-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --regex='^Antlered Animals$' --section="Animals" ${testdir}/ii-0034-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0034-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0035-expected-dir-file b/install-info/tests/ii-0035-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0035-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0035-input-dir-file b/install-info/tests/ii-0035-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0035-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0035-input-info-file b/install-info/tests/ii-0035-input-info-file
new file mode 100644
index 0000000..af26df9
--- /dev/null
+++ b/install-info/tests/ii-0035-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0035-test b/install-info/tests/ii-0035-test
new file mode 100755
index 0000000..d2725c8
--- /dev/null
+++ b/install-info/tests/ii-0035-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii35-XXXXXXXX`
+cp ${testdir}/ii-0035-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --regex='^Antlered Animals$' --section="Animals" ${testdir}/ii-0035-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0035-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0036-expected-dir-file b/install-info/tests/ii-0036-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0036-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0036-input-dir-file b/install-info/tests/ii-0036-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0036-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0036-input-info-file b/install-info/tests/ii-0036-input-info-file
new file mode 100644
index 0000000..af26df9
--- /dev/null
+++ b/install-info/tests/ii-0036-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0036-test b/install-info/tests/ii-0036-test
new file mode 100755
index 0000000..aeef39a
--- /dev/null
+++ b/install-info/tests/ii-0036-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii36-XXXXXXXX`
+cp ${testdir}/ii-0036-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --regex='[Aa]nimal[s]' ${testdir}/ii-0036-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0036-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0037-expected-dir-file b/install-info/tests/ii-0037-expected-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0037-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0037-input-dir-file b/install-info/tests/ii-0037-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0037-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0037-input-info-file b/install-info/tests/ii-0037-input-info-file
new file mode 100644
index 0000000..af26df9
--- /dev/null
+++ b/install-info/tests/ii-0037-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Antlered Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0037-test b/install-info/tests/ii-0037-test
new file mode 100755
index 0000000..809fae3
--- /dev/null
+++ b/install-info/tests/ii-0037-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii37-XXXXXXXX`
+cp ${testdir}/ii-0037-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --section '^Antlered Animals$' Animals ${testdir}/ii-0037-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0037-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0038-expected-dir-file b/install-info/tests/ii-0038-expected-dir-file
new file mode 100644
index 0000000..8903848
--- /dev/null
+++ b/install-info/tests/ii-0038-expected-dir-file
@@ -0,0 +1,29 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
+* Wildebeest: (gnu). Wildebeest native to the African savannah.
+
+Antlered Animals
+* Gnu: (gnu). Wildebeest native to Africa.
+* Wildebeest: (gnu). Wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0038-input-dir-file b/install-info/tests/ii-0038-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0038-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0038-input-info-file b/install-info/tests/ii-0038-input-info-file
new file mode 100644
index 0000000..57f05a6
--- /dev/null
+++ b/install-info/tests/ii-0038-input-info-file
@@ -0,0 +1,7 @@
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0038-test b/install-info/tests/ii-0038-test
new file mode 100755
index 0000000..82fb29c
--- /dev/null
+++ b/install-info/tests/ii-0038-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii38-XXXXXXXX`
+cp ${testdir}/ii-0038-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --section="Animals" --section="Antlered Animals" --entry="* Gnu: (gnu). Wildebeest native to Africa." --entry="* Wildebeest: (gnu). Wildebeest native to the African savannah." ${testdir}/ii-0038-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0038-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0039-expected-dir-file b/install-info/tests/ii-0039-expected-dir-file
new file mode 100644
index 0000000..b4bfcaf
--- /dev/null
+++ b/install-info/tests/ii-0039-expected-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to the African continent.
+ (this item contains disputed material).
diff --git a/install-info/tests/ii-0039-input-dir-file b/install-info/tests/ii-0039-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0039-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0039-input-info-file b/install-info/tests/ii-0039-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0039-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0039-test b/install-info/tests/ii-0039-test
new file mode 100755
index 0000000..4b49bc1
--- /dev/null
+++ b/install-info/tests/ii-0039-test
@@ -0,0 +1,29 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii39-XXXXXXXX`
+cp ${testdir}/ii-0039-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --entry="* Gnu: (gnu). Wildebeest native to the African continent.
+ (this item contains disputed material)." --no-indent ${testdir}/ii-0039-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0039-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0040-expected-dir-file b/install-info/tests/ii-0040-expected-dir-file
new file mode 100644
index 0000000..5199b51
--- /dev/null
+++ b/install-info/tests/ii-0040-expected-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). A wildebeest native to the African savannah.
diff --git a/install-info/tests/ii-0040-input-dir-file b/install-info/tests/ii-0040-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0040-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0040-input-info-file b/install-info/tests/ii-0040-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0040-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0040-test b/install-info/tests/ii-0040-test
new file mode 100755
index 0000000..53a94c8
--- /dev/null
+++ b/install-info/tests/ii-0040-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii40-XXXXXXXX`
+cp ${testdir}/ii-0040-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --name="* Gnu: (gnu)." --description="A wildebeest native to the African savannah." --no-indent ${testdir}/ii-0040-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0040-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0041-expected-dir-file.gz b/install-info/tests/ii-0041-expected-dir-file.gz
new file mode 100644
index 0000000..839b0f6
--- /dev/null
+++ b/install-info/tests/ii-0041-expected-dir-file.gz
Binary files differ
diff --git a/install-info/tests/ii-0041-input-dir-file.gz b/install-info/tests/ii-0041-input-dir-file.gz
new file mode 100644
index 0000000..4292ea1
--- /dev/null
+++ b/install-info/tests/ii-0041-input-dir-file.gz
Binary files differ
diff --git a/install-info/tests/ii-0041-input-info-file b/install-info/tests/ii-0041-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0041-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0041-test b/install-info/tests/ii-0041-test
new file mode 100755
index 0000000..daacc64
--- /dev/null
+++ b/install-info/tests/ii-0041-test
@@ -0,0 +1,32 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+tempfile=`mktemp ii41-XXXXXXXX`
+outputdirfile=$tempfile.gz
+cp ${testdir}/ii-0041-input-dir-file.gz $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+# when copying in distcheck, source will be readonly.
+chmod u+rw $outputdirfile || exit $?
+
+${install_info} ${testdir}/ii-0041-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+zdiff ${testdir}/ii-0041-expected-dir-file.gz $outputdirfile
+retval=$?
+
+rm -f $tempfile $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0042-expected-dir-file b/install-info/tests/ii-0042-expected-dir-file
new file mode 100644
index 0000000..56da8a6
--- /dev/null
+++ b/install-info/tests/ii-0042-expected-dir-file
@@ -0,0 +1,29 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animal Kingdom
+* Gnu: (gnu). Wildebeest native to Africa.
+
+Animalia
+* Gnu: (gnu). Wildebeest native to Africa.
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0042-input-dir-file b/install-info/tests/ii-0042-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0042-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0042-input-info-file b/install-info/tests/ii-0042-input-info-file
new file mode 100644
index 0000000..fddf82e
--- /dev/null
+++ b/install-info/tests/ii-0042-input-info-file
@@ -0,0 +1,15 @@
+INFO-DIR-SECTION Animalia
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+INFO-DIR-SECTION Animal Kingdom
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0042-test b/install-info/tests/ii-0042-test
new file mode 100755
index 0000000..97b3b1d
--- /dev/null
+++ b/install-info/tests/ii-0042-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii42-XXXXXXXX`
+cp ${testdir}/ii-0042-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0042-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0042-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0043-expected-dir-file b/install-info/tests/ii-0043-expected-dir-file
new file mode 100644
index 0000000..9e98e05
--- /dev/null
+++ b/install-info/tests/ii-0043-expected-dir-file
@@ -0,0 +1,46 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Astronomy
+* Mars: (mars). Postcards from the Red Planet.
+
+Biology
+* Alien Autopsy: (mars). A biological account of an alien autopsy.
+
+Chemistry
+* Making Gold: (gold). How to turn lead into gold.
+
+Dentistry
+* On the Cheap: (dentistry). Do it yourself dentistry made easy.
+
+Education
+* Dog Training: (dogs). Teaching old dogs new tricks.
+
+Forestry
+* The Last Tree: (forest). Clear cutting practises in North America.
+
+Geography
+* The Dark Continent (africa). A complete and total history.
+
+History
+* The Fall of Proprietary Software: (gnu).
+ How the world came to reject slavery.
+
+Immunology
+* Beating the flu: (flu). Three simple steps to beating influenza.
+
+Jekyllism
+* Science Gone Mad (hyde). A personal account of self-medication.
diff --git a/install-info/tests/ii-0043-input-dir-file b/install-info/tests/ii-0043-input-dir-file
new file mode 100644
index 0000000..730e5fd
--- /dev/null
+++ b/install-info/tests/ii-0043-input-dir-file
@@ -0,0 +1,43 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Astronomy
+* Mars: (mars). Postcards from the Red Planet.
+
+Biology
+* Alien Autopsy: (mars). A biological account of an alien autopsy.
+
+Chemistry
+* Making Gold: (gold). How to turn lead into gold.
+
+Dentistry
+* On the Cheap: (dentistry). Do it yourself dentistry made easy.
+
+Education
+* Dog Training: (dogs). Teaching old dogs new tricks.
+
+Forestry
+* The Last Tree: (forest). Clear cutting practises in North America.
+
+History
+* The Fall of Proprietary Software: (gnu).
+ How the world came to reject slavery.
+
+Immunology
+* Beating the flu: (flu). Three simple steps to beating influenza.
+
+Jekyllism
+* Science Gone Mad (hyde). A personal account of self-medication.
diff --git a/install-info/tests/ii-0043-input-info-file b/install-info/tests/ii-0043-input-info-file
new file mode 100644
index 0000000..7ca1774
--- /dev/null
+++ b/install-info/tests/ii-0043-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Geography
+START-INFO-DIR-ENTRY
+* The Dark Continent (africa). A complete and total history.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0043-test b/install-info/tests/ii-0043-test
new file mode 100755
index 0000000..0641979
--- /dev/null
+++ b/install-info/tests/ii-0043-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii43-XXXXXXXX`
+cp ${testdir}/ii-0043-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} ${testdir}/ii-0043-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0043-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0044-expected-dir-file b/install-info/tests/ii-0044-expected-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0044-expected-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0044-input-dir-file b/install-info/tests/ii-0044-input-dir-file
new file mode 100644
index 0000000..e059420
--- /dev/null
+++ b/install-info/tests/ii-0044-input-dir-file
@@ -0,0 +1,25 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (ii-0044-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0044-input-info-file b/install-info/tests/ii-0044-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0044-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0044-test b/install-info/tests/ii-0044-test
new file mode 100755
index 0000000..900dc33
--- /dev/null
+++ b/install-info/tests/ii-0044-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii44-XXXXXXXX`
+cp ${testdir}/ii-0044-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove ${testdir}/ii-0044-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0044-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0045-expected-dir-file b/install-info/tests/ii-0045-expected-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0045-expected-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0045-input-dir-file b/install-info/tests/ii-0045-input-dir-file
new file mode 100644
index 0000000..9794516
--- /dev/null
+++ b/install-info/tests/ii-0045-input-dir-file
@@ -0,0 +1,27 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (ii-0045-input-info-file).
+ Wildebeest native to Africa.
+* Wildebesst: (ii-0045-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0045-input-info-file b/install-info/tests/ii-0045-input-info-file
new file mode 100644
index 0000000..a85a30b
--- /dev/null
+++ b/install-info/tests/ii-0045-input-info-file
@@ -0,0 +1,12 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+* Wildebeest: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0045-test b/install-info/tests/ii-0045-test
new file mode 100755
index 0000000..ca468c6
--- /dev/null
+++ b/install-info/tests/ii-0045-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii45-XXXXXXXX`
+cp ${testdir}/ii-0045-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove ${testdir}/ii-0045-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0045-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0046-expected-dir-file b/install-info/tests/ii-0046-expected-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0046-expected-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0046-input-dir-file b/install-info/tests/ii-0046-input-dir-file
new file mode 100644
index 0000000..bdcca6d
--- /dev/null
+++ b/install-info/tests/ii-0046-input-dir-file
@@ -0,0 +1,24 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
+* Gnu: (gnu). Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0046-test b/install-info/tests/ii-0046-test
new file mode 100755
index 0000000..840ef1b
--- /dev/null
+++ b/install-info/tests/ii-0046-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii46-XXXXXXXX`
+cp ${testdir}/ii-0046-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove-exactly gnu $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0046-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0047-expected-dir-file b/install-info/tests/ii-0047-expected-dir-file
new file mode 100644
index 0000000..9615d75
--- /dev/null
+++ b/install-info/tests/ii-0047-expected-dir-file
@@ -0,0 +1,16 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
diff --git a/install-info/tests/ii-0047-input-dir-file b/install-info/tests/ii-0047-input-dir-file
new file mode 100644
index 0000000..d64698c
--- /dev/null
+++ b/install-info/tests/ii-0047-input-dir-file
@@ -0,0 +1,19 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Gnu: (ii-0047-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0047-input-info-file b/install-info/tests/ii-0047-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0047-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0047-test b/install-info/tests/ii-0047-test
new file mode 100755
index 0000000..4695ee1
--- /dev/null
+++ b/install-info/tests/ii-0047-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii47-XXXXXXXX`
+cp ${testdir}/ii-0047-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove ${testdir}/ii-0047-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0047-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0048-expected-dir-file b/install-info/tests/ii-0048-expected-dir-file
new file mode 100644
index 0000000..60aed1d
--- /dev/null
+++ b/install-info/tests/ii-0048-expected-dir-file
@@ -0,0 +1,17 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
diff --git a/install-info/tests/ii-0048-input-dir-file b/install-info/tests/ii-0048-input-dir-file
new file mode 100644
index 0000000..0fe0ae6
--- /dev/null
+++ b/install-info/tests/ii-0048-input-dir-file
@@ -0,0 +1,19 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Gnu: (ii-0048-input-info-file).
+ Wildebeest native to Africa.
diff --git a/install-info/tests/ii-0048-input-info-file b/install-info/tests/ii-0048-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0048-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0048-test b/install-info/tests/ii-0048-test
new file mode 100755
index 0000000..946c648
--- /dev/null
+++ b/install-info/tests/ii-0048-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii48-XXXXXXXX`
+cp ${testdir}/ii-0048-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove --keep-old ${testdir}/ii-0048-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0048-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0049-expected-dir-file b/install-info/tests/ii-0049-expected-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0049-expected-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0049-input-dir-file b/install-info/tests/ii-0049-input-dir-file
new file mode 100644
index 0000000..813b548
--- /dev/null
+++ b/install-info/tests/ii-0049-input-dir-file
@@ -0,0 +1,23 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* Aardvark: (aardvark). Medium-sized African mammal.
+* Baboon: (baboon). A monkey from Africa.
+* Chameleon: (chameleon). A lizard from Africa.
+* Deer: (deer). Ruminent antlered mammal.
+* Emu: (emu). A flightless bird from Australia.
+* Fisher: (fisher). A marten from North America.
diff --git a/install-info/tests/ii-0049-input-info-file b/install-info/tests/ii-0049-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0049-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0049-test b/install-info/tests/ii-0049-test
new file mode 100755
index 0000000..11c8242
--- /dev/null
+++ b/install-info/tests/ii-0049-test
@@ -0,0 +1,28 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii49-XXXXXXXX`
+cp ${testdir}/ii-0049-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+${install_info} --remove ${testdir}/ii-0049-input-info-file $outputdirfile 2>/dev/null
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0049-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0050-expected-dir-file.gz b/install-info/tests/ii-0050-expected-dir-file.gz
new file mode 100644
index 0000000..75e222e
--- /dev/null
+++ b/install-info/tests/ii-0050-expected-dir-file.gz
Binary files differ
diff --git a/install-info/tests/ii-0050-input-dir-file.gz b/install-info/tests/ii-0050-input-dir-file.gz
new file mode 100644
index 0000000..1bbe099
--- /dev/null
+++ b/install-info/tests/ii-0050-input-dir-file.gz
Binary files differ
diff --git a/install-info/tests/ii-0050-input-info-file b/install-info/tests/ii-0050-input-info-file
new file mode 100644
index 0000000..993920b
--- /dev/null
+++ b/install-info/tests/ii-0050-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* Gnu: (gnu). Wildebeest native to Africa.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest (plural, wildebeest or wildebeests), also called the gnu (pronounced /ˈnuː/ or /ˈnjuː/), is an antelope of the genus Connochaetes. It is a hooved (ungulate) mammal. (Taken from wikepedia.)
diff --git a/install-info/tests/ii-0050-test b/install-info/tests/ii-0050-test
new file mode 100755
index 0000000..8a1bbb4
--- /dev/null
+++ b/install-info/tests/ii-0050-test
@@ -0,0 +1,33 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+tempfile=`mktemp ii50-XXXXXXXX`
+outputdirfile=$tempfile.gz
+cp ${testdir}/ii-0050-input-dir-file.gz $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+
+# when copying in distcheck, source will be readonly.
+chmod u+rw $outputdirfile || exit $?
+
+${install_info} --remove ${testdir}/ii-0050-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+zdiff ${testdir}/ii-0050-expected-dir-file.gz $outputdirfile
+retval=$?
+
+rm -f $tempfile $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0051-expected-dir-file b/install-info/tests/ii-0051-expected-dir-file
new file mode 100644
index 0000000..22bd6c1
--- /dev/null
+++ b/install-info/tests/ii-0051-expected-dir-file
@@ -0,0 +1,18 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* config.status: (gnu). Following text.
diff --git a/install-info/tests/ii-0051-input-dir-file b/install-info/tests/ii-0051-input-dir-file
new file mode 100644
index 0000000..d2f31fd
--- /dev/null
+++ b/install-info/tests/ii-0051-input-dir-file
@@ -0,0 +1,15 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
diff --git a/install-info/tests/ii-0051-input-info-file b/install-info/tests/ii-0051-input-info-file
new file mode 100644
index 0000000..6209147
--- /dev/null
+++ b/install-info/tests/ii-0051-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* config.status: (gnu). Following text.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest.
diff --git a/install-info/tests/ii-0051-test b/install-info/tests/ii-0051-test
new file mode 100755
index 0000000..f7bcdd1
--- /dev/null
+++ b/install-info/tests/ii-0051-test
@@ -0,0 +1,30 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii51-XXXXXXXX`
+cp ${testdir}/ii-0051-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+# Allow periods in the menu item name, e.g., config.status.
+# Report from Ulrich Mueller, 7 May 2008 01:56:38.
+${install_info} ${testdir}/ii-0051-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0051-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0052-expected-dir-file b/install-info/tests/ii-0052-expected-dir-file
new file mode 100644
index 0000000..37d396d
--- /dev/null
+++ b/install-info/tests/ii-0052-expected-dir-file
@@ -0,0 +1,19 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* config.status: (gnu)config.status Invocation.
+ Following text.
diff --git a/install-info/tests/ii-0052-input-dir-file b/install-info/tests/ii-0052-input-dir-file
new file mode 100644
index 0000000..d2f31fd
--- /dev/null
+++ b/install-info/tests/ii-0052-input-dir-file
@@ -0,0 +1,15 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
diff --git a/install-info/tests/ii-0052-input-info-file b/install-info/tests/ii-0052-input-info-file
new file mode 100644
index 0000000..95ff4ac
--- /dev/null
+++ b/install-info/tests/ii-0052-input-info-file
@@ -0,0 +1,11 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* config.status: (gnu)config.status Invocation. Following text.
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest.
diff --git a/install-info/tests/ii-0052-test b/install-info/tests/ii-0052-test
new file mode 100755
index 0000000..9cca6c0
--- /dev/null
+++ b/install-info/tests/ii-0052-test
@@ -0,0 +1,30 @@
+#!/bin/sh
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs || exit 1
+
+outputdirfile=`mktemp ii52-XXXXXXXX`
+cp ${testdir}/ii-0052-input-dir-file $outputdirfile
+if [ "x$?" != "x0" ]; then
+ exit 1
+fi
+
+# Allow periods in the node name too, e.g., "config.status Invocation".
+# Report from Ulrich Mueller, 7 May 2008 01:56:38.
+${install_info} ${testdir}/ii-0052-input-info-file $outputdirfile
+retval=$?
+if [ "x$retval" != "x0" ]; then
+ exit $retval
+fi
+
+diff ${testdir}/ii-0052-expected-dir-file $outputdirfile
+retval=$?
+
+rm -f $outputdirfile
+exit $retval
diff --git a/install-info/tests/ii-0053-expected-dir-file b/install-info/tests/ii-0053-expected-dir-file
new file mode 100644
index 0000000..77983f0
--- /dev/null
+++ b/install-info/tests/ii-0053-expected-dir-file
@@ -0,0 +1,19 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
+
+Animals
+* autoupdate: (autoconf)autoupdate Invocation.
+ Automatic update of `configure.ac'
diff --git a/install-info/tests/ii-0053-input-dir-file b/install-info/tests/ii-0053-input-dir-file
new file mode 100644
index 0000000..d2f31fd
--- /dev/null
+++ b/install-info/tests/ii-0053-input-dir-file
@@ -0,0 +1,15 @@
+This is the directory file `dir' a.k.a. `DIR', which contains the
+ topmost node of the Info hierarchy.
+
+
+File: dir, Node: Top, This is the top of the INFO tree.
+
+This is the Info main menu (aka directory node).
+A few useful Info commands:
+
+ `q' quits;
+ `?' lists all Info commands;
+ `h' starts the Info tutorial;
+ `mTexinfo RET' visits the Texinfo manual, etc.
+
+* Menu:
diff --git a/install-info/tests/ii-0053-input-info-file b/install-info/tests/ii-0053-input-info-file
new file mode 100644
index 0000000..ca860e2
--- /dev/null
+++ b/install-info/tests/ii-0053-input-info-file
@@ -0,0 +1,12 @@
+INFO-DIR-SECTION Animals
+START-INFO-DIR-ENTRY
+* autoupdate: (autoconf)autoupdate Invocation.
+ Automatic update of `configure.ac'
+END-INFO-DIR-ENTRY
+
+File: gnu, Node: Top, Next: Top, Up: (dir)
+
+Gnu
+***
+
+The wildebeest.
diff --git a/install-info/tests/ii-0053-test b/install-info/tests/ii-0053-test
new file mode 100755
index 0000000..617f221
--- /dev/null
+++ b/install-info/tests/ii-0053-test
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+. ./defs
+
+outputdirfile=`mktemp ii53-XXXXXXXX`
+cp ${testdir}/ii-0053-input-dir-file $outputdirfile
+
+# Have to handle newlines in input dir entries, too.
+${install_info} ${testdir}/ii-0053-input-info-file $outputdirfile
+diff ${testdir}/ii-0053-expected-dir-file $outputdirfile
+
+rm -f $outputdirfile
+exit 0