texlive[67879] Build/source/texk/upmendex: upmendex: update tests
commits+takuji at tug.org
commits+takuji at tug.org
Fri Aug 11 13:46:19 CEST 2023
Revision: 67879
http://tug.org/svn/texlive?view=revision&revision=67879
Author: takuji
Date: 2023-08-11 13:46:19 +0200 (Fri, 11 Aug 2023)
Log Message:
-----------
upmendex: update tests
Modified Paths:
--------------
trunk/Build/source/texk/upmendex/ChangeLog
trunk/Build/source/texk/upmendex/tests/upmendex.test
Modified: trunk/Build/source/texk/upmendex/ChangeLog
===================================================================
--- trunk/Build/source/texk/upmendex/ChangeLog 2023-08-11 11:46:14 UTC (rev 67878)
+++ trunk/Build/source/texk/upmendex/ChangeLog 2023-08-11 11:46:19 UTC (rev 67879)
@@ -1,3 +1,8 @@
+2023-08-11 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * tests/upmendex.test:
+ Make easier to test on Windows.
+
2023-07-05 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
* fwrite.c, mendex.h:
Modified: trunk/Build/source/texk/upmendex/tests/upmendex.test
===================================================================
--- trunk/Build/source/texk/upmendex/tests/upmendex.test 2023-08-11 11:46:14 UTC (rev 67878)
+++ trunk/Build/source/texk/upmendex/tests/upmendex.test 2023-08-11 11:46:19 UTC (rev 67879)
@@ -4,6 +4,10 @@
# Copyright 2013 Peter Breitenlohner <tex-live at tug.org>
# You may freely use, modify and/or distribute this file.
+BinDir=${BinDir:-.}
+ExeExt=${ExeExt:-}
+_upmendex=$BinDir/upmendex$ExeExt
+
TEXMFCNF=$srcdir/../kpathsea
export TEXMFCNF
@@ -10,22 +14,22 @@
rm -f foo.* uni.* range*.* pprec*.* romalp*.* locale*.* attr*.* rule*.*
rc=0
-./upmendex $srcdir/tests/foo.idx -o foo.ind1 -t foo.ilg1 \
+$_upmendex $srcdir/tests/foo.idx -o foo.ind1 -t foo.ilg1 \
&& diff $srcdir/tests/foo.ind foo.ind1 || rc=1
-cat $srcdir/tests/foo.idx | ./upmendex >foo.ind2 2>foo.ilg2 \
+cat $srcdir/tests/foo.idx | $_upmendex >foo.ind2 2>foo.ilg2 \
&& diff $srcdir/tests/foo.ind foo.ind2 || rc=2
-./upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \
+$_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \
$srcdir/tests/uni.idx -o uni.ind1 -t uni.ilg1 \
&& diff $srcdir/tests/uni.ind uni.ind1 || rc=3
cat $srcdir/tests/uni.idx | \
- ./upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \
+ $_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \
>uni.ind2 2>uni.ilg2 \
&& diff $srcdir/tests/uni.ind uni.ind2 || rc=4
-./upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni1.ist -s $srcdir/tests/uni2.ist \
+$_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni1.ist -s $srcdir/tests/uni2.ist \
$srcdir/tests/uni.idx -o uni.ind3 -t uni.ilg3 \
&& diff $srcdir/tests/uni.ind uni.ind3 || rc=5
@@ -32,7 +36,7 @@
# test for range suffix_2p, suffix_3p, suffix_mp
for num in 1 2 3; do
-./upmendex -s $srcdir/tests/range$num.ist $srcdir/tests/range.idx \
+$_upmendex -s $srcdir/tests/range$num.ist $srcdir/tests/range.idx \
-o range$num.ind1 -t range$num.ilg \
&& diff $srcdir/tests/range$num.ind range$num.ind1 || rc=6
done
@@ -41,13 +45,13 @@
# test for page_precedence and suffix_3p
sfx=A
for num in 0 1 2; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=7
done
sfx=B
for num in 0 3 4; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=8
done
@@ -56,25 +60,25 @@
# test for page_precedence, heuristic detection if a letter is Roman or Alpha
sfx=A
for num in 5 6; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=9
done
sfx=B
for num in 5 6 7; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=10
done
sfx=C
for num in 5; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=11
done
sfx=D
for num in 5 6 7; do
-./upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
+$_upmendex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=12
done
@@ -81,26 +85,26 @@
# test for icu_locale
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/locale1.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/locale1.ist $srcdir/tests/rule.idx \
-o locale1.ind1 -t locale1.ilg \
&& diff $srcdir/tests/locale1.ind locale1.ind1 || rc=51
# test for icu_attributes
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/attr1.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/attr1.ist $srcdir/tests/rule.idx \
-o attr1.ind1 -t attr1.ilg \
&& diff $srcdir/tests/attr1.ind attr1.ind1 || rc=52
# test for icu_rules
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule1.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule1.ist $srcdir/tests/rule.idx \
-o rule1.ind1 -t rule1.ilg \
&& diff $srcdir/tests/rule.ind rule1.ind1 || rc=53
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule2.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule2.ist $srcdir/tests/rule.idx \
-o rule2.ind1 -t rule2.ilg \
&& diff $srcdir/tests/rule.ind rule2.ind1 || rc=54
# malformed input
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule3.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule3.ist $srcdir/tests/rule.idx \
-o rule3.ind1 -t rule3.ilg
if [ $? -eq 254 ]; then
echo "Error check: OK"
@@ -109,7 +113,7 @@
exit 1
fi
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule4.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/rule4.ist $srcdir/tests/rule.idx \
-o rule4.ind1 -t rule4.ilg
if [ $? -eq 254 ]; then
echo "Error check: OK"
@@ -119,7 +123,7 @@
fi
# test for icu_locale + icu_rules
-./upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/locale2.ist -s $srcdir/tests/rule1.ist $srcdir/tests/rule.idx \
+$_upmendex -s $srcdir/tests/uni.ist -s $srcdir/tests/locale2.ist -s $srcdir/tests/rule1.ist $srcdir/tests/rule.idx \
-o locale2-rule1.ind1 -t locale2-rule1.ilg \
&& diff $srcdir/tests/locale2-rule.ind locale2-rule1.ind1 || rc=55
More information about the tex-live-commits
mailing list.