summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tests/kpsewhich.test
blob: 261bf1b17f31467af83578ff091c8533b90ca365 (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
33
34
35
#! /bin/sh -vx
# $Id$
# 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.

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
#
# These runs will succeed on case-insensitive (file)systems, so don't
# run them.
#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

AFMFONTS=$srcdir/../tests/texmf \
  ./kpsewhich afmtest.afm || exit 1

BSTINPUTS=$srcdir/../tests/texmf \
  ./kpsewhich plain.bst || exit 1