| 1 |
#! /bin/sh -vx |
| 2 |
# $Id$ |
| 3 |
# Copyright 2024 Japanese TeX Development Community <[email protected]> |
| 4 |
# Copyright 2017-2022 Karl Berry <[email protected]> |
| 5 |
# Copyright 2013 Peter Breitenlohner <[email protected]> |
| 6 |
# You may freely use, modify and/or distribute this file. |
| 7 |
|
| 8 |
BinDir=${BinDir:-.} |
| 9 |
ExeExt=${ExeExt:-} |
| 10 |
_mendex=$BinDir/mendex$ExeExt |
| 11 |
|
| 12 |
TEXMFCNF=$srcdir/../kpathsea |
| 13 |
export TEXMFCNF |
| 14 |
|
| 15 |
rm -f nested*.* toodeep*.* |
| 16 |
rc=0 |
| 17 |
|
| 18 |
# test for nested items and delimiters |
| 19 |
$_mendex -s $srcdir/tests/nested3.ist -o nested3.ind1 -t nested3.ilg $srcdir/tests/nested3.idx \ |
| 20 |
&& diff $srcdir/tests/nested3.ind nested3.ind1 || rc=30 |
| 21 |
|
| 22 |
# test for too deep indexentry |
| 23 |
$_mendex $srcdir/tests/toodeep.idx -o toodeep.ind1 -t toodeep.ilg |
| 24 |
|
| 25 |
if [ $? -eq 255 ]; then |
| 26 |
echo "Error check: OK" |
| 27 |
else |
| 28 |
echo "Error check: NG" |
| 29 |
rc=56 |
| 30 |
fi |
| 31 |
|
| 32 |
|
| 33 |
exit $rc |