summaryrefslogtreecommitdiff
path: root/Build/tests/largefile/largedvi.test
blob: 5bec8212106bc907252d60d4e1c496579a96b87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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