Skip to content

Commit

Permalink
{pdf,xe,{,e}{,u}p}tex: Add tests option --recorder
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68965 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
t-tk committed Nov 25, 2023
1 parent da26c97 commit 85c6ce7
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 26 deletions.
5 changes: 5 additions & 0 deletions texk/web2c/eptexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add tests for --recorder and *.fls.
https://github.com/texjporg/tex-jp-build/issues/45

2023-11-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* eptriptest.test, eptrip/eptrip.{log,tex}:
Expand Down
9 changes: 5 additions & 4 deletions texk/web2c/eptexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ for doc in fn-$fenc fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=14
mv $doc-$ienc.txt $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }
rm -f $testdir/fn±×÷§¶-utf8-tmp.tex
Expand Down Expand Up @@ -104,11 +105,11 @@ for doc in fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=20
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=21
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=3 ; err3=$err3" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=22
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=23
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=4 ; err4=$err4" $fenc:$ienc:$doc" ; }

Expand Down
5 changes: 5 additions & 0 deletions texk/web2c/euptexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname{,0}.test: Add tests for --recorder and *.fls.
https://github.com/texjporg/tex-jp-build/issues/45

2023-11-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add test for file names with over-BMP
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/euptexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ for doc in fn-$fenc fnさざ波-$fenc fn£¥µÆÇñß-$fenc fnΔДदダ打다
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $doc-$ienc.fls $testdir/ || rc=14
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }

Expand Down
10 changes: 6 additions & 4 deletions texk/web2c/euptexdir/wcfname0.test
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ for doc in fn-$fenc fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=14
mv $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }
rm -f $testdir/fn±×÷§¶-utf8-tmp.tex
Expand Down Expand Up @@ -113,11 +114,12 @@ for doc in fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=20
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=21
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=3 ; err3=$err3" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=22
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=23
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=24
mv $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=4 ; err4=$err4" $fenc:$ienc:$doc" ; }

Expand Down
4 changes: 4 additions & 0 deletions texk/web2c/pdftexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add tests for --recorder and *.fls.

2023-11-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add test for file names with over-BMP
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/pdftexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ for doc in fn-$fenc fn£¥µÆÇñß-$fenc fnさざ波-$fenc fnΔДदダ打다
echo '>>> Document:'$doc ' File Encoding:'$fenc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc --shell-escape $doc.tex >$testdir/$doc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc --shell-escape --recorder $doc.tex >$testdir/$doc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc.txt $doc.log $testdir/
mv $doc.txt $doc.log $doc.fls $testdir/ || rc=14
## It does not work.
## diff $testdir/$doc.txt $srcdir/tests/fn-$fenc.txt || \
## { rc=2 ; err2=$err2" $fenc:$doc" ; }
Expand Down
5 changes: 5 additions & 0 deletions texk/web2c/ptexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add tests for --recorder and *.fls.
https://github.com/texjporg/tex-jp-build/issues/45

2023-11-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* ptriptest.test:
Expand Down
10 changes: 6 additions & 4 deletions texk/web2c/ptexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ for doc in fn-$fenc fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=14
mv $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }
rm -f $testdir/fn±×÷§¶-utf8-tmp.tex
Expand Down Expand Up @@ -104,11 +105,12 @@ for doc in fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=20
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=21
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=3 ; err3=$err3" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=22
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=23
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=24
mv $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=4 ; err4=$err4" $fenc:$ienc:$doc" ; }

Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/ptexdir/zfmtcompress.test
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test0() {
rm -f stress-$ENGINE.fmt test0.dvi test0.xdv &>/dev/null
$_engine -ini -etex -progname=$ENGINE -jobname=stress-$ENGINE stress &>/dev/null
ls -l stress-$ENGINE.fmt
if [[ $ENGINE = "xetex" ]]; then
if [[ "$ENGINE" = "xetex" ]]; then
$_engine -fmt=./stress-$ENGINE.fmt -no-pdf test0.tex &>/dev/null
ls -l test0.xdv
else
Expand Down Expand Up @@ -86,7 +86,7 @@ test1() {
rm -f latex-$ENGINE.fmt test1.dvi test1.xdv &>/dev/null
$_engine -ini -etex -progname=latex-dev -jobname=latex-$ENGINE latex.ini &>/dev/null
ls -l latex-$ENGINE.fmt
if [[ $ENGINE = "xetex" ]]; then
if [[ "$ENGINE" = "xetex" ]]; then
$_engine -fmt=./latex-$ENGINE.fmt -no-pdf test1.tex &>/dev/null
ls -l test1.xdv
else
Expand Down
5 changes: 5 additions & 0 deletions texk/web2c/uptexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname{,0}.test: Add tests for --recorder and *.fls.
https://github.com/texjporg/tex-jp-build/issues/45

2023-11-24 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add test for file names with over-BMP
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/uptexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ for doc in fn-$fenc fnさざ波-$fenc fn£¥µÆÇñß-$fenc fnΔДदダ打다
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $doc-$ienc.fls $testdir/ || rc=14
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }

Expand Down
9 changes: 5 additions & 4 deletions texk/web2c/uptexdir/wcfname0.test
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ for doc in fn-$fenc fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $testdir/ || rc=14
mv $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=2 ; err2=$err2" $fenc:$ienc:$doc" ; }
rm -f $testdir/fn±×÷§¶-utf8-tmp.tex
Expand Down Expand Up @@ -113,11 +114,11 @@ for doc in fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc ' Internal Encoding:'$ienc
$_kpsewhich -progname=$engine $doc.tex || rc=20
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=21
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc-$ienc -kanji=$fenc --kanji-internal=$ienc --shell-escape --recorder $doc.tex >$testdir/$doc-$fenc-$ienc-term.log || \
{ rc=3 ; err3=$err3" $fenc:$ienc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=22
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=23
mv $doc-$ienc.txt $doc-$ienc.log $testdir/
mv $doc-$ienc.txt $doc-$ienc.log $doc-$ienc.fls $testdir/ || : echo "FIXME" # check *.fls
diff $testdir/$doc-$ienc.txt $srcdir/tests/fn-$fenc.txt || \
{ rc=4 ; err4=$err4" $fenc:$ienc:$doc" ; }

Expand Down
4 changes: 4 additions & 0 deletions texk/web2c/xetexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2023-11-25 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* wcfname.test: Add tests for --recorder and *.fls.

2023-08-20 TANAKA Takuji <ttk@t-lab.opal.ne.jp>

* {wcfname,xetex-bug73,xetex-filedump,xetex}.test:
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/xetexdir/wcfname.test
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ for doc in fn-$fenc fn£¥µÆÇñß-$fenc fnさざ波-$fenc; do
echo '>>> Document:'$doc ' File Encoding:'$fenc
$_kpsewhich -progname=$engine $doc.tex || rc=10
$_kpsewhich -progname=$engine fn±×÷§¶-utf8.tex || rc=11
$_tex -ini -interaction nonstopmode -jobname=$doc --shell-escape $doc.tex >$testdir/$doc-term.log || \
$_tex -ini -interaction nonstopmode -jobname=$doc --shell-escape --recorder $doc.tex >$testdir/$doc-term.log || \
{ rc=1 ; err1=$err1" $fenc:$doc" ; }
$_kpsewhich -progname=$engine $doc-tmp.tex || rc=12
$_kpsewhich -progname=$engine fn±×÷§¶-utf8-tmp.tex || rc=13
mv $doc.txt $doc.log $testdir/
mv $doc.txt $doc.log $doc.fls $testdir/ || rc=14
diff $testdir/$doc.txt $srcdir/tests/fn-utf8.txt || \
{ rc=2 ; err2=$err2" $fenc:$doc" ; }

Expand Down

0 comments on commit 85c6ce7

Please sign in to comment.