diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-27 07:27:29 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-27 07:27:29 +0000 |
commit | b8d362466a8e4c679b09c8044f85073655bd7ff4 (patch) | |
tree | af6cc69d21cd49bbcfb8c326128740363a2ba293 /Build/source/texk/makeindexk/tests | |
parent | c5709ea5924966b82883b45f0b92e7d6a0486226 (diff) |
makeindexk: Use binary mode for input and output (from W32TeX)
Add a new file with the qqsort() prototype
Add a new test case
git-svn-id: svn://tug.org/texlive/trunk@27192 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk/tests')
-rwxr-xr-x | Build/source/texk/makeindexk/tests/makeindex.test | 16 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/tests/sample.idx | 15 | ||||
-rw-r--r-- | Build/source/texk/makeindexk/tests/sample.ind | 15 |
3 files changed, 46 insertions, 0 deletions
diff --git a/Build/source/texk/makeindexk/tests/makeindex.test b/Build/source/texk/makeindexk/tests/makeindex.test new file mode 100755 index 00000000000..808e9f07393 --- /dev/null +++ b/Build/source/texk/makeindexk/tests/makeindex.test @@ -0,0 +1,16 @@ +#! /bin/sh + +# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +TEXMFCNF=$srcdir/../kpathsea +export TEXMFCNF + +rm -f sample.* + +./makeindex $srcdir/tests/sample.idx -o sample.ind1 -t sample.ilg1 \ + && diff $srcdir/tests/sample.ind sample.ind1 || exit 1 + +cat $srcdir/tests/sample.idx | ./makeindex >sample.ind2 2>sample.ilg2 \ + && diff $srcdir/tests/sample.ind sample.ind2 || exit 1 + diff --git a/Build/source/texk/makeindexk/tests/sample.idx b/Build/source/texk/makeindexk/tests/sample.idx new file mode 100644 index 00000000000..394c0087af9 --- /dev/null +++ b/Build/source/texk/makeindexk/tests/sample.idx @@ -0,0 +1,15 @@ +\indexentry{alpha}{1} +\indexentry{random text|bold}{2} +\indexentry{random text|(}{9} +\indexentry{random text|)}{11} +\indexentry{alpha!beta}{3} +\indexentry{alpha!phi}{5} +\indexentry{alpha!phi!sigma}{6} +\indexentry{alpha!phi!rho}{7} +\indexentry{alpha!beta!delta}{8} +\indexentry{alpha!beta!gamma}{10} +\indexentry{alpha!phi!sigma}{12} +\indexentry{alpha!phi!rho}{12} +\indexentry{alpha!phi!sigma}{13} +\indexentry{alpha!phi!sigma}{14} +\indexentry{alpha!phi!rho}{14} diff --git a/Build/source/texk/makeindexk/tests/sample.ind b/Build/source/texk/makeindexk/tests/sample.ind new file mode 100644 index 00000000000..ea39facc389 --- /dev/null +++ b/Build/source/texk/makeindexk/tests/sample.ind @@ -0,0 +1,15 @@ +\begin{theindex} + + \item alpha, 1 + \subitem beta, 3 + \subsubitem delta, 8 + \subsubitem gamma, 10 + \subitem phi, 5 + \subsubitem rho, 7, 12, 14 + \subsubitem sigma, 6, 12--14 + + \indexspace + + \item random text, \bold{2}, 9--11 + +\end{theindex} |