summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/tests
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-06 23:33:17 +0000
committerKarl Berry <karl@freefriends.org>2019-08-06 23:33:17 +0000
commit48f9e4b1f4dfaf9bfb9dcb935ea1c3d39cf9c779 (patch)
tree50d9db5039167e5778005ba82a7cba229db6fe43 /Build/source/texk/web2c/pdftexdir/tests
parentc7ce5ab1655e5a4cc880ef2ac2eba601ce4109c2 (diff)
new cross-engine (and kpsewhich) option --cnf-line
git-svn-id: svn://tug.org/texlive/trunk@51830 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/tests')
-rw-r--r--Build/source/texk/web2c/pdftexdir/tests/cnfline.test23
-rw-r--r--Build/source/texk/web2c/pdftexdir/tests/cnfline.tex13
2 files changed, 36 insertions, 0 deletions
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).