summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/tests/bibtex-auxinclude.test
blob: 39e004b6a8556217295e72f3df39487bccec1da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh -vx
# $Id$
# Copyright 2018 Karl Berry <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

test -d tests || mkdir -p tests

# in case we're invoked standalone instead of from make.
test -z "$srcdir" && srcdir=`cd \`dirname $0\`/.. && pwd`

cp $srcdir/tests/auxinclude.aux tests/xauxinclude.aux || exit 1
cp $srcdir/tests/auxinclude2.aux tests/auxinclude2.aux || exit 1

# [x]auxinclude.aux includes \@input{auxinclude2.aux}, to be found in
# the ./tests/ (working) subdir, which should be automatically checked
# since we invoke bibtex on tests/whatever.aux. See thread from
# http://tug.org/pipermail/tex-live/2018-May/041624.html.
# 
TEXMFCNF=$srcdir/../kpathsea \
  BSTINPUTS=$srcdir/tests \
  BIBINPUTS=$srcdir/tests \
  ./bibtex tests/xauxinclude || exit 1