summaryrefslogtreecommitdiff
path: root/biblio/bibtex/bibtex-x/tests/bibtexu-sort.test
blob: 7d2ec8fa6d285e245aa5331ed292bea5284fc8d7 (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
#! /bin/sh -vx
# $Id: bibtexu-sort.test 65675 2023-01-29 22:21:52Z karl $
# Copyright 2022-2023 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
# You may freely use, modify and/or distribute this file.

test -d tests || mkdir tests
test -d tests || exit 1

LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
#
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
BSTINPUTS=$srcdir/tests; export BSTINPUTS
BIBINPUTS=$srcdir/tests; export BIBINPUTS

rm -f tests/xsortu-*.bbl tests/xcaseu.bbl

rc=0

for loc in en az da fi tr; do

## test for sorting and change.case$
cp $srcdir/tests/sortu.aux tests/xsortu-$loc.aux
./bibtexu -o $loc tests/xsortu-$loc || rc=1
diff $srcdir/tests/sortu-$loc.bbl tests/xsortu-$loc.bbl || rc=2

done


## test for change.case$
cp $srcdir/tests/caseu.aux tests/xcaseu.aux
max_print_line=99 ./bibtexu tests/xcaseu || rc=3
diff $srcdir/tests/caseu.bbl tests/xcaseu.bbl || rc=4

exit $rc