summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tests
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-04 23:23:31 +0000
committerKarl Berry <karl@freefriends.org>2018-02-04 23:23:31 +0000
commit30f6c4d00de40b38da64016114658a1f02063fe4 (patch)
tree146bd264fdb65370c23bc73c9a48599715b25deb /Build/source/texk/kpathsea/tests
parentbf12dd1f8724f65d1116fbfb6d9a94cfb49c88ac (diff)
casefolding fallback search for Unix
git-svn-id: svn://tug.org/texlive/trunk@46545 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/tests')
-rwxr-xr-xBuild/source/texk/kpathsea/tests/kpsewhich.test16
1 files changed, 13 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/tests/kpsewhich.test b/Build/source/texk/kpathsea/tests/kpsewhich.test
index 6f065f0f328..4b29d139924 100755
--- a/Build/source/texk/kpathsea/tests/kpsewhich.test
+++ b/Build/source/texk/kpathsea/tests/kpsewhich.test
@@ -1,6 +1,6 @@
#! /bin/sh -vx
# $Id$
-# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2018 Karl Berry <tex-live@tug.org>
# Copyright 2010-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
@@ -8,11 +8,21 @@ TEXMFCNF=$srcdir
export TEXMFCNF
./kpsewhich --var-value=TEXMFCNF || exit 1 # environment variable
-
./kpsewhich --var-value=TEXMFMAIN || exit 1
-
./kpsewhich --expand-var=\$TEXMFMAIN || exit 1
+# It turns out --all and no --all go through rather different code
+# in pathsearch.c, so try them both.
+TEXINPUTS=$srcdir/../tests/texmf \
+ ./kpsewhich --casefold-search --all Plain.TeX || exit 1
+TEXINPUTS=$srcdir/../tests/texmf \
+ ./kpsewhich --casefold-search Plain.TeX || exit 1
+#
+TEXINPUTS=$srcdir/../tests/texmf \
+ ./kpsewhich --no-casefold-search --all Plain.TeX && exit 1
+TEXINPUTS=$srcdir/../tests/texmf \
+ ./kpsewhich --no-casefold-search Plain.TeX && exit 1
+
TEXINPUTS=$srcdir/../tests/texmf \
./kpsewhich --all plain || exit 1