diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-27 14:18:10 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-27 14:18:10 +0000 |
commit | 30a03cd3845935f0b918acbcd2bbd66445b67600 (patch) | |
tree | a013e54ca2d901858bdb0d671b42c715f2d786b7 /Build/source/texk/kpathsea | |
parent | c0af211e69f8e1ae3374111e5047d327ce15a8af (diff) |
kpathsea: tweak tests
git-svn-id: svn://tug.org/texlive/trunk@68082 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfline.test | 4 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfnewline.test | 2 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/cnfprog.test | 2 | ||||
-rwxr-xr-x | Build/source/texk/kpathsea/tests/kpsewhich.test | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/kpathsea/tests/cnfline.test b/Build/source/texk/kpathsea/tests/cnfline.test index dcc2b0539a7..6c42928d362 100755 --- a/Build/source/texk/kpathsea/tests/cnfline.test +++ b/Build/source/texk/kpathsea/tests/cnfline.test @@ -14,7 +14,7 @@ unset maxpr unset othervar remove_cr() { - if [ $ExeExt = ".exe" ]; then + if [ "$ExeExt" = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'` fi } @@ -27,7 +27,7 @@ test x"$val" = x300 || exit 1 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 diff --git a/Build/source/texk/kpathsea/tests/cnfnewline.test b/Build/source/texk/kpathsea/tests/cnfnewline.test index 090f66ebadb..bc6792f6454 100755 --- a/Build/source/texk/kpathsea/tests/cnfnewline.test +++ b/Build/source/texk/kpathsea/tests/cnfnewline.test @@ -12,7 +12,7 @@ TEXMFCNF=$srcdir/tests/cnfnewline; export TEXMFCNF cnf_dir=$srcdir/tests/cnfnewline val=`$_kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --debug=-1 --var-value=lastvar` -if [ $ExeExt = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'`; fi +if [ "$ExeExt" = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'`; fi test x"$val" = xlastval || exit 1 # verbose for testing. diff --git a/Build/source/texk/kpathsea/tests/cnfprog.test b/Build/source/texk/kpathsea/tests/cnfprog.test index 112f62e82df..7f9c0323228 100755 --- a/Build/source/texk/kpathsea/tests/cnfprog.test +++ b/Build/source/texk/kpathsea/tests/cnfprog.test @@ -16,7 +16,7 @@ TEXMFCNF=$cnf_dir; export TEXMFCNF # 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 diff --git a/Build/source/texk/kpathsea/tests/kpsewhich.test b/Build/source/texk/kpathsea/tests/kpsewhich.test index 5c23e940aa4..500cf758df0 100755 --- a/Build/source/texk/kpathsea/tests/kpsewhich.test +++ b/Build/source/texk/kpathsea/tests/kpsewhich.test @@ -18,7 +18,7 @@ $_kpsewhich --expand-var=\$TEXMFMAIN || exit 3 # 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 @@ fi #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 |