summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/tests/bibtex-auxinclude.test
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-06-10 22:13:16 +0000
committerKarl Berry <karl@freefriends.org>2018-06-10 22:13:16 +0000
commit407ba94a3472d34da2cac80b6eb9e3ff77fe5f2e (patch)
tree62b201431f9173bd930179b02f9247c4dbabd0cc /Build/source/texk/web2c/tests/bibtex-auxinclude.test
parentdf7ae27df461a7a5058a1edb9ed53dc630d51082 (diff)
bibtex: fallback check for subsidiary aux files in the directory of the main aux file
git-svn-id: svn://tug.org/texlive/trunk@47979 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/tests/bibtex-auxinclude.test')
-rw-r--r--Build/source/texk/web2c/tests/bibtex-auxinclude.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/tests/bibtex-auxinclude.test b/Build/source/texk/web2c/tests/bibtex-auxinclude.test
new file mode 100644
index 00000000000..39e004b6a85
--- /dev/null
+++ b/Build/source/texk/web2c/tests/bibtex-auxinclude.test
@@ -0,0 +1,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