Debian Codegraph @

texk/bibtex-x/tests/bibtexu-sort.test

raw
1 #! /bin/sh -vx
2 # $Id: bibtexu-sort.test 67881 2023-08-11 11:46:28Z takuji $
3 # Copyright 2022-2023 TANAKA Takuji <[email protected]>
4 # You may freely use, modify and/or distribute this file.
5
6 BinDir=${BinDir:-.}
7 ExeExt=${ExeExt:-}
8 _bibtexu=$BinDir/bibtexu$ExeExt
9
10 test -d tests || mkdir tests
11 test -d tests || exit 1
12
13 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
14 #
15 TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
16 BSTINPUTS=$srcdir/tests; export BSTINPUTS
17 BIBINPUTS=$srcdir/tests; export BIBINPUTS
18
19 rm -f tests/xsortu-*.bbl tests/xcaseu.bbl
20
21 rc=0
22
23 for loc in en az da fi tr; do
24
25 ## test for sorting and change.case$
26 cp $srcdir/tests/sortu.aux tests/xsortu-$loc.aux
27 $_bibtexu -o $loc tests/xsortu-$loc || rc=1
28 diff $srcdir/tests/sortu-$loc.bbl tests/xsortu-$loc.bbl || rc=2
29
30 done
31
32
33 ## test for change.case$
34 cp $srcdir/tests/caseu.aux tests/xcaseu.aux
35 max_print_line=99 $_bibtexu tests/xcaseu || rc=3
36 diff $srcdir/tests/caseu.bbl tests/xcaseu.bbl || rc=4
37
38 exit $rc