blob: ddc0c05848b47f7ae0fe0801115853af4c6da340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2010 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
# Using test data from Philipp Lehman <lehman@gmx.net>
BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_bibtex8=$BinDir/bibtex8$ExeExt
test -d tests || mkdir -p tests
rc=0
TEXMFCNF=$srcdir/../kpathsea
BSTINPUTS=$srcdir/tests
BIBINPUTS=$srcdir/tests
export TEXMFCNF BSTINPUTS BIBINPUTS
rm -f tests/xsort[123].bbl tests/xcase[123].bbl
for i in 1 2 3; do
## test for sorting and change.case$
cp $srcdir/tests/sort.aux tests/xsort$i.aux
$_bibtex8 --csfile sort$i.csf tests/xsort$i || rc=1
diff $srcdir/tests/sort$i.bbl tests/xsort$i.bbl || rc=2
## test for change.case$
cp $srcdir/tests/casea.aux tests/xcase$i.aux
$_bibtex8 --csfile sort$i.csf tests/xcase$i || rc=3
diff $srcdir/tests/casea.bbl tests/xcase$i.bbl || rc=4
done
exit $rc
|