| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: bibtexu.test 67881 2023-08-11 11:46:28Z takuji $ |
| 3 |
# Copyright 2017-2023 Karl Berry <[email protected]> |
| 4 |
# Copyright 2010 Peter Breitenlohner <[email protected]> |
| 5 |
# Copyright 2023 TANAKA Takuji <[email protected]> |
| 6 |
# You may freely use, modify and/or distribute this file. |
| 7 |
|
| 8 |
BinDir=${BinDir:-.} |
| 9 |
ExeExt=${ExeExt:-} |
| 10 |
_bibtexu=$BinDir/bibtexu$ExeExt |
| 11 |
|
| 12 |
test -d tests || mkdir -p tests |
| 13 |
|
| 14 |
rc=0 |
| 15 |
|
| 16 |
rm -f tests/uex*.* # different filenames than bibtex8.test |
| 17 |
|
| 18 |
|
| 19 |
cp $srcdir/../web2c/tests/exampl.aux tests/uexampl.aux || rc=1 |
| 20 |
|
| 21 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 22 |
BSTINPUTS=$srcdir/../web2c/tests \ |
| 23 |
BIBINPUTS=$srcdir/../web2c/tests \ |
| 24 |
$_bibtexu -s -d all tests/uexampl || test $? = 1 || rc=2 |
| 25 |
diff $srcdir/tests/exampl.bbl tests/uexampl.bbl || rc=3 |
| 26 |
|
| 27 |
|
| 28 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 29 |
TEXMFCNF=$srcdir/../kpathsea |
| 30 |
BSTINPUTS=$srcdir/../web2c/tests |
| 31 |
BIBINPUTS=$srcdir/../web2c/tests |
| 32 |
export TEXMFCNF BSTINPUTS BIBINPUTS |
| 33 |
|
| 34 |
|
| 35 |
cp $srcdir/../web2c/tests/exampl.aux tests/uex_пробный.aux || rc=4 |
| 36 |
|
| 37 |
$_bibtexu -s -d io tests/uex_пробный || test $? = 1 || rc=5 |
| 38 |
diff $srcdir/tests/exampl.bbl tests/uex_пробный.bbl || rc=6 |
| 39 |
|
| 40 |
|
| 41 |
cp $srcdir/../web2c/tests/exampl.aux tests/uex_试验.aux || rc=7 |
| 42 |
|
| 43 |
$_bibtexu -s -d io tests/uex_试验 || test $? = 1 || rc=8 |
| 44 |
diff $srcdir/tests/exampl.bbl tests/uex_试验.bbl || rc=9 |
| 45 |
|
| 46 |
|
| 47 |
## not exist, cause fatal error |
| 48 |
$_bibtexu -d io tests/uex_δίκη || test $? = 1 && rc=10 |
| 49 |
|
| 50 |
|
| 51 |
exit $rc |