texlive[68027] Build/source/libs/pplib: pplib: Make easier to test on
commits+takuji at tug.org
commits+takuji at tug.org
Wed Aug 23 16:52:49 CEST 2023
Revision: 68027
http://tug.org/svn/texlive?view=revision&revision=68027
Author: takuji
Date: 2023-08-23 16:52:49 +0200 (Wed, 23 Aug 2023)
Log Message:
-----------
pplib: Make easier to test on Windows
Modified Paths:
--------------
trunk/Build/source/libs/pplib/ChangeLog
trunk/Build/source/libs/pplib/pplib.test
Modified: trunk/Build/source/libs/pplib/ChangeLog
===================================================================
--- trunk/Build/source/libs/pplib/ChangeLog 2023-08-22 23:43:12 UTC (rev 68026)
+++ trunk/Build/source/libs/pplib/ChangeLog 2023-08-23 14:52:49 UTC (rev 68027)
@@ -1,3 +1,7 @@
+2023-08-23 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+
+ * pplib.test: Make easier to test on Windows.
+
2023-05-27 Karl Berry <karl at freefriends.org>
* pplib-src/test/out2: no period at end of message.
Modified: trunk/Build/source/libs/pplib/pplib.test
===================================================================
--- trunk/Build/source/libs/pplib/pplib.test 2023-08-22 23:43:12 UTC (rev 68026)
+++ trunk/Build/source/libs/pplib/pplib.test 2023-08-23 14:52:49 UTC (rev 68027)
@@ -4,6 +4,14 @@
# Copyright 2010 Peter Breitenlohner <tex-live at tug.org>
# You may freely use, modify and/or distribute this file.
+# 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
+
#srcdir='../../../source/libs/pplib'
#PPLIB_TREE=pplib-src
@@ -13,12 +21,12 @@
cp $srcdir/$PPLIB_TREE/test/luaimage.pdf test
(cd test && ../pptest1 luaimage.pdf | sed -e 's/memused.*$//;s/memwaste.*$//;' >out1 || exit 1) \
-&& (cd test && ../pptest2 luaimage.pdf >out2 || exit 1) \
-&& (cd test && ../pptest3 luaimage.pdf >out3 || exit 1) || exit 1
+&& (cd test && ../pptest2 luaimage.pdf >out2 || exit 2) \
+&& (cd test && ../pptest3 luaimage.pdf >out3 || exit 3) || exit 4
-diff $srcdir/$PPLIB_TREE/test/out1 test/out1 || exit 1
-diff $srcdir/$PPLIB_TREE/test/out2 test/out2 || exit 1
-diff $srcdir/$PPLIB_TREE/test/luaimage.pdf.out test/luaimage.pdf.out || exit 1
-diff $srcdir/$PPLIB_TREE/test/out3 test/out3 || exit 1
+diff $srcdir/$PPLIB_TREE/test/out1 test/out1 || exit 5
+$DIFF $srcdir/$PPLIB_TREE/test/out2 test/out2 || exit 6
+diff $srcdir/$PPLIB_TREE/test/luaimage.pdf.out test/luaimage.pdf.out || exit 7
+$DIFF $srcdir/$PPLIB_TREE/test/out3 test/out3 || exit 8
More information about the tex-live-commits
mailing list.