| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: bibtexu-range.test 67881 2023-08-11 11:46:28Z takuji $ |
| 3 |
# Public domain. Originally written by Karl Berry, 2021. |
| 4 |
|
| 5 |
BinDir=${BinDir:-.} |
| 6 |
ExeExt=${ExeExt:-} |
| 7 |
_bibtexu=$BinDir/bibtexu$ExeExt |
| 8 |
|
| 9 |
test -d tests || mkdir -p tests |
| 10 |
|
| 11 |
testname=urange |
| 12 |
# Segmentation fault |
| 13 |
|
| 14 |
cp $srcdir/tests/$testname.aux tests/x$testname.aux |
| 15 |
|
| 16 |
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF |
| 17 |
BSTINPUTS=$srcdir/../tests/texmf; export BSTINPUTS |
| 18 |
BIBINPUTS=$srcdir/tests; export BIBINPUTS |
| 19 |
|
| 20 |
if $_bibtexu -t -d all tests/x$testname; then :; else |
| 21 |
echo "*** bibtexu failed, tests/x$testname.blg is:" >&2 |
| 22 |
cat tests/x$testname.blg >&2 |
| 23 |
exit 1 |
| 24 |
fi |
| 25 |
|
| 26 |
diff $srcdir/tests/$testname.bbl tests/x$testname.bbl || exit 1 |
| 27 |
|
| 28 |
exit 0 |