summaryrefslogtreecommitdiff
path: root/Build/tests/largefile/largedvi.test
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-11 13:24:12 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-11 13:24:12 +0000
commit48d77abc96546219167c5c3eba1b88ddd3ae0077 (patch)
tree80b3da687969e94a403b95099ffe81b5ca083534 /Build/tests/largefile/largedvi.test
parent708653785a66d3aad8830021eae3e517b8b1a572 (diff)
Add various large file tests
git-svn-id: svn://tug.org/texlive/trunk@25365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tests/largefile/largedvi.test')
-rwxr-xr-xBuild/tests/largefile/largedvi.test33
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/tests/largefile/largedvi.test b/Build/tests/largefile/largedvi.test
new file mode 100755
index 00000000000..5bec8212106
--- /dev/null
+++ b/Build/tests/largefile/largedvi.test
@@ -0,0 +1,33 @@
+#! /bin/sh
+#
+# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+usage () {
+ echo "usage: $0 TEX-ENGINE" >&2
+ echo " test that TeX does not create DVI files >2GB" >&2
+ echo "" >&2
+ echo " where TEX-ENGINE is the path to TeX (or similar)" >&2
+ exit 1
+}
+
+test -n "$1" && test -x "$1" || usage
+
+dir=`dirname "$0"`
+TEXMFCNF=`cd "$dir" && pwd`
+export TEXMFCNF
+
+TEX=`dirname "$1"`/`basename "$1"`
+
+echo testing "'$TEX'"
+echo
+"$TEX" -ini largedvi
+echo
+
+if grep 'dvi length exceeds "7FFFFFFF' largedvi.log; then
+ ls -lh largedvi.dvi
+ echo PASS: largedvi.test
+# rm -f largedvi.dvi largedvi.log
+else
+ echo FAIL: largedvi.test
+fi