Debian Codegraph @

texk/bibtex-x/tests/bibtex8.test

raw
1 #! /bin/sh -vx
2 # $Id: bibtex8.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 _bibtex8=$BinDir/bibtex8$ExeExt
11
12 test -d tests || mkdir -p tests
13
14 rc=0
15
16 rm -f tests/xex*.* # different filenames than bibtexu.test
17
18
19 cp $srcdir/../web2c/tests/exampl.aux tests/xexampl.aux || rc=1
20
21 TEXMFCNF=$srcdir/../kpathsea \
22 BSTINPUTS=$srcdir/../web2c/tests \
23 BIBINPUTS=$srcdir/../web2c/tests \
24 $_bibtex8 -7 -s -d all tests/xexampl || test $? = 1 || rc=2
25 diff $srcdir/tests/exampl.bbl tests/xexampl.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,csf}
31 BIBINPUTS=$srcdir/../web2c/tests
32 export TEXMFCNF BSTINPUTS BIBINPUTS
33
34
35 cp $srcdir/../web2c/tests/exampl.aux tests/xex_пробный.aux || rc=4
36
37 $_bibtex8 -7 -s -d io tests/xex_пробный || test $? = 1 || rc=5
38 diff $srcdir/tests/exampl.bbl tests/xex_пробный.bbl || rc=6
39
40
41 cp $srcdir/../web2c/tests/exampl.aux tests/xex_试验.aux || rc=7
42
43 $_bibtex8 -s -d io tests/xex_试验 || test $? = 1 || rc=8
44 diff $srcdir/tests/exampl.bbl tests/xex_试验.bbl || rc=9
45
46
47 ## not exist, cause fatal error
48 $_bibtex8 -d io tests/xex_δίκη || test $? = 1 && rc=10
49
50
51 exit $rc