diff options
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/am/pdftex.am | 14 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/tests/cnfline.test | 23 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/tests/cnfline.tex | 13 |
4 files changed, 53 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index 82c291e6702..10e4b6d8171 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,10 @@ +2019-08-06 Karl Berry <karl@freefriends.org> + + * tests/cnfline.test, + * tests/cnfline.tex: new files. + * am/pdftex.am (pdftex_tests): add pdftexdir/tests/cnfline.test. + (cnfline.log): depend on pdftex$(EXEEXT). + 2019-05-08 Akira Kakuto <kakuto@w32tex.org> * writeimg.c: Use a new function find_input_file() to find diff --git a/Build/source/texk/web2c/pdftexdir/am/pdftex.am b/Build/source/texk/web2c/pdftexdir/am/pdftex.am index 152787d77b3..e22dccfdf4a 100644 --- a/Build/source/texk/web2c/pdftexdir/am/pdftex.am +++ b/Build/source/texk/web2c/pdftexdir/am/pdftex.am @@ -1,6 +1,6 @@ ## texk/web2c/pdftexdir/am/pdftex.am: Makefile fragment for pdfTeX. ## -## Copyright 2016-2018 Karl Berry <tex-live@tug.org> +## Copyright 2016-2019 Karl Berry <tex-live@tug.org> ## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org> ## You may freely use, modify and/or distribute this file. @@ -95,10 +95,12 @@ EXTRA_DIST += \ # pdfTeX tests # pdftex_tests = pdftexdir/wprob.test pdftexdir/pdftex.test \ - pdftexdir/pdfimage.test pdftexdir/expanded.test + pdftexdir/pdfimage.test pdftexdir/expanded.test \ + pdftexdir/tests/cnfline.test pdftexdir/wprob.log pdftexdir/pdftex.log \ - pdftexdir/pdfimage.log pdftexdir/expanded.log: pdftex$(EXEEXT) + pdftexdir/pdfimage.log pdftexdir/expanded.log \ + pdftexdir/cnfline.log: pdftex$(EXEEXT) EXTRA_DIST += $(pdftex_tests) @@ -116,5 +118,9 @@ EXTRA_DIST += pdftexdir/tests/pdfimage.tex \ DISTCLEANFILES += pdfimage.fmt pdfimage.log pdfimage.pdf ## expanded.test -EXTRA_DIST += tests/expanded.tex +EXTRA_DIST += tests/expanded.tex tests/expanded.txt DISTCLEANFILES += expanded.log + +## cnfline.test +EXTRA_DIST += tests/cnfline.tex +DISTCLEANFILES += cnfline.log diff --git a/Build/source/texk/web2c/pdftexdir/tests/cnfline.test b/Build/source/texk/web2c/pdftexdir/tests/cnfline.test new file mode 100644 index 00000000000..0b9047a73d0 --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/tests/cnfline.test @@ -0,0 +1,23 @@ +#! /bin/sh -vx +# $Id$ +# Public domain. Originally written by Karl Berry +# Basic check that --cnf-line does something. + +LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE + +TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF +TEXINPUTS=$srcdir/pdftexdir/tests; export TEXINPUTS + +./pdftex -ini --interaction=batchmode \ + --cnf-line=max_print_line=500 cnfline.tex || exit $? + +if grep 'those hyphens are' cnfline.log >/dev/null; then + : # ok, all ended up on one line +else + echo "log message got broken despite max_print_line" >&2 + cat cnflinelog >&2 + exit 1 +fi + +exit 0 + diff --git a/Build/source/texk/web2c/pdftexdir/tests/cnfline.tex b/Build/source/texk/web2c/pdftexdir/tests/cnfline.tex new file mode 100644 index 00000000000..f9f694aacde --- /dev/null +++ b/Build/source/texk/web2c/pdftexdir/tests/cnfline.tex @@ -0,0 +1,13 @@ +% $Id$ +% Public domain. Test file for --cnf-line. +% Originally written 2019 by Karl Berry. + +\catcode`\{=1 \catcode`\}=2 % can run under -ini + +\write-1{the idea is to write a message longer than the default + max-print-line (those hyphens are really underscores).} +\end + +% with the default max_print_line, we get: +% the idea is to write a message longer than the default max-print-line (those hy +% phens are really underscores). |