diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-13 13:51:02 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-13 13:51:02 +0000 |
commit | 82d95db705eea57a8bed2b8795533ad1077dc519 (patch) | |
tree | c1d669532435ba1d4f94e3e946fa746b11257513 /Build/source/texk/dvipos | |
parent | a8685149544b33ddd9b893e46946e226188d8afc (diff) |
dvipos: update a test
git-svn-id: svn://tug.org/texlive/trunk@67909 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipos')
-rw-r--r-- | Build/source/texk/dvipos/ChangeLog | 4 | ||||
-rwxr-xr-x | Build/source/texk/dvipos/dvipos.test | 16 |
2 files changed, 18 insertions, 2 deletions
diff --git a/Build/source/texk/dvipos/ChangeLog b/Build/source/texk/dvipos/ChangeLog index 886e55b0df9..a3833903c7e 100644 --- a/Build/source/texk/dvipos/ChangeLog +++ b/Build/source/texk/dvipos/ChangeLog @@ -1,3 +1,7 @@ +2023-08-13 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * dvipos.test: Make easier to test on Windows. + 2022-08-30 Karl Berry <karl@freefriends.org> * dvipos.1: typo fixes from Hilmar Preu\ss{}e, diff --git a/Build/source/texk/dvipos/dvipos.test b/Build/source/texk/dvipos/dvipos.test index c98012c0350..199b51620df 100755 --- a/Build/source/texk/dvipos/dvipos.test +++ b/Build/source/texk/dvipos/dvipos.test @@ -3,6 +3,18 @@ # Copyright 2021 TANAKA Takuji # You may freely use, modify and/or distribute this file. +BinDir=${BinDir:-.} +ExeExt=${ExeExt:-} +_dvipos=$BinDir/dvipos$ExeExt + +# pre-generated test results in the repository are stored in LF +# but the output might be written in CRLF on some platform. +# if 'diff --strip-trailing-cr' is available, exploit it. +# (useful for tests on win32 binaries run on MSYS shell) +DIFF="diff" +$DIFF --strip-trailing-cr $0 $0 \ + && DIFF="diff --strip-trailing-cr" || echo + TEXMFCNF=$srcdir/../kpathsea TFMFONTS="$srcdir/tests" export TEXMFCNF TFMFONTS @@ -10,10 +22,10 @@ export TEXMFCNF TFMFONTS ## play.dvi has no "pos:" specials rm -rf play*.* cp $srcdir/tests/play.dvi . -./dvipos -b -o play.loc play.dvi || exit 1 +$_dvipos -b -o play.loc play.dvi || exit 1 diff play.loc $srcdir/tests/play.loc || exit 2 grep -v 'Processing_data_and_time' $srcdir/tests/play.pos > play_0.pos \ && grep -v 'Processing_data_and_time' play.pos > play_1.pos \ - && diff play_0.pos play_1.pos || exit 3 + && $DIFF play_0.pos play_1.pos || exit 3 |