texlive[68082] Build/source/texk/kpathsea/tests: kpathsea: tweak
commits+takuji at tug.org
commits+takuji at tug.org
Sun Aug 27 16:18:11 CEST 2023
Revision: 68082
http://tug.org/svn/texlive?view=revision&revision=68082
Author: takuji
Date: 2023-08-27 16:18:10 +0200 (Sun, 27 Aug 2023)
Log Message:
-----------
kpathsea: tweak tests
Modified Paths:
--------------
trunk/Build/source/texk/kpathsea/tests/cnfline.test
trunk/Build/source/texk/kpathsea/tests/cnfnewline.test
trunk/Build/source/texk/kpathsea/tests/cnfprog.test
trunk/Build/source/texk/kpathsea/tests/kpsewhich.test
Modified: trunk/Build/source/texk/kpathsea/tests/cnfline.test
===================================================================
--- trunk/Build/source/texk/kpathsea/tests/cnfline.test 2023-08-26 23:44:53 UTC (rev 68081)
+++ trunk/Build/source/texk/kpathsea/tests/cnfline.test 2023-08-27 14:18:10 UTC (rev 68082)
@@ -14,7 +14,7 @@
unset othervar
remove_cr() {
- if [ $ExeExt = ".exe" ]; then
+ if [ "$ExeExt" = ".exe" ]; then
val=`echo $val | sed -e 's/\\r//'`
fi
}
@@ -27,7 +27,7 @@
TEXMFCNF=$cnf_dir; export TEXMFCNF
# In Windows, exe binaries fail to get environment variables from sh scripts
# and still we need --cnf-line.
-if [ $ExeExt = ".exe" ]; then
+if [ "$ExeExt" = ".exe" ]; then
_kpsewhich="$BinDir/kpsewhich$ExeExt --cnf-line=TEXMFCNF=$cnf_dir"
fi
Modified: trunk/Build/source/texk/kpathsea/tests/cnfnewline.test
===================================================================
(Binary files differ)
Modified: trunk/Build/source/texk/kpathsea/tests/cnfprog.test
===================================================================
--- trunk/Build/source/texk/kpathsea/tests/cnfprog.test 2023-08-26 23:44:53 UTC (rev 68081)
+++ trunk/Build/source/texk/kpathsea/tests/cnfprog.test 2023-08-27 14:18:10 UTC (rev 68082)
@@ -16,7 +16,7 @@
# Make sure we get expected values from the test texmf.cnf.
errfile=cnfprog.err
val=`$_kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --var-value=noequals 2>$errfile`
-if [ $ExeExt = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'`; fi
+if [ "$ExeExt" = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'`; fi
# the vaiable should not have any value.
test -z "$val" || exit 1
Modified: trunk/Build/source/texk/kpathsea/tests/kpsewhich.test
===================================================================
--- trunk/Build/source/texk/kpathsea/tests/kpsewhich.test 2023-08-26 23:44:53 UTC (rev 68081)
+++ trunk/Build/source/texk/kpathsea/tests/kpsewhich.test 2023-08-27 14:18:10 UTC (rev 68082)
@@ -18,7 +18,7 @@
# It turns out --all and no --all go through rather different code
# in pathsearch.c, so try them both.
-if [ $ExeExt = ".exe" ]; then
+if [ "$ExeExt" = ".exe" ]; then
$_kpsewhich --cnf-line=TEXINPUTS=$srcdir/../tests/texmf \
--casefold-search --all Plain.TeX || exit 4
@@ -41,7 +41,7 @@
#TEXINPUTS=$srcdir/../tests/texmf \
# ./kpsewhich --no-casefold-search Plain.TeX && exit 7
-if [ $ExeExt = ".exe" ]; then
+if [ "$ExeExt" = ".exe" ]; then
$_kpsewhich --cnf-line=TEXINPUTS=$srcdir/../tests/texmf \
--all plain || exit 8
More information about the tex-live-commits
mailing list.