summaryrefslogtreecommitdiff
path: root/Build/source/texk/bibtex-x/tests/sort.test
blob: ed4ffe6ffad405cb05f94819bb214a0a11e0e3d6 (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
#! /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>

test -d tests || mkdir -p tests

cp $srcdir/tests/sort.aux tests/xsort.aux

for i in 1 2 3; do

rm -f xsort.bbl

TEXMFCNF=$srcdir/../kpathsea \
  BSTINPUTS=$srcdir/tests \
  BIBINPUTS=$srcdir/tests \
  ./bibtex8 --csfile sort$i.csf tests/xsort || exit 1

diff $srcdir/tests/sort$i.bbl tests/xsort.bbl || exit 1

done