summaryrefslogtreecommitdiff
path: root/biblio/bibtex/bibtex-x/tests/bibtexu-basic.test
blob: b827e166101a9f95ecc22d2007021618654d65b9 (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
#! /bin/sh -vx
# $Id: bibtexu-yannis.test 51452 2019-06-25 01:28:47Z karl $
# Public domain. Originally written by Karl Berry, 2021.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_bibtexu=$BinDir/bibtexu$ExeExt

test -d tests || mkdir -p tests

testname=ubasic
# due to lack of libpthread:
#   terminate called after throwing an instance of 'std::system_error'
#    what():  Unknown error -1
#   Aborted

cp $srcdir/tests/$testname.aux tests/x$testname.aux || exit 1

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
BSTINPUTS=$srcdir/../tests/texmf; export BSTINPUTS
BIBINPUTS=$srcdir/tests; export BIBINPUTS


if $_bibtexu -t -d all tests/x$testname; then :; else
  echo "*** bibtexu failed, tests/x$testname.blg is:" >&2
  cat tests/x$testname.blg >&2
  exit 2
fi

diff $srcdir/tests/$testname.bbl tests/x$testname.bbl || exit 3

exit 0