summaryrefslogtreecommitdiff
path: root/Build/tests/largefile/testlfs-martin
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-16 23:40:43 +0000
committerKarl Berry <karl@freefriends.org>2012-04-16 23:40:43 +0000
commit9fe39732331b8bddd426ebb0a73ada84a5419e4b (patch)
treee4877128398b0e2a3ad6196d8fa88189f5cd97e9 /Build/tests/largefile/testlfs-martin
parente8a389a2d60b6ff53118a05f72c266fc3bd725b0 (diff)
rename test directories per source
git-svn-id: svn://tug.org/texlive/trunk@25996 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/tests/largefile/testlfs-martin')
-rw-r--r--Build/tests/largefile/testlfs-martin/3gb.tex16
-rw-r--r--Build/tests/largefile/testlfs-martin/Makefile17
-rw-r--r--Build/tests/largefile/testlfs-martin/README9
3 files changed, 42 insertions, 0 deletions
diff --git a/Build/tests/largefile/testlfs-martin/3gb.tex b/Build/tests/largefile/testlfs-martin/3gb.tex
new file mode 100644
index 00000000000..a65143631a3
--- /dev/null
+++ b/Build/tests/largefile/testlfs-martin/3gb.tex
@@ -0,0 +1,16 @@
+% $Id$
+% Check if a 3gb file can be created.
+% (Public domain.)
+\pdfoutput=1
+\pdfcompresslevel=0
+
+\topskip0pt
+\newcount\n
+\loop
+ \pdfximage width \hsize height \vsize {poles.png}
+ \hbox{\pdfrefximage\pdflastximage}
+ \eject
+ \advance\n by1
+ \ifnum\n<3000
+\repeat
+\bye
diff --git a/Build/tests/largefile/testlfs-martin/Makefile b/Build/tests/largefile/testlfs-martin/Makefile
new file mode 100644
index 00000000000..302b241963d
--- /dev/null
+++ b/Build/tests/largefile/testlfs-martin/Makefile
@@ -0,0 +1,17 @@
+# $Id$
+# Public domain.
+#
+3gb.pdf: 3gb.tex poles.png
+ pdftex 3gb.tex
+ @echo "check the first numbers to see if LFS works; they must be > 2147483648"
+ @tail 3gb.pdf|head -2
+
+poles.png:
+ ppmpat -poles 1250 1250 |pnmtopng > poles.png
+
+.PHONY: clean clobber
+clean:
+ rm -f *.log
+
+clobber: clean
+ rm -f poles.png 3gb.pdf
diff --git a/Build/tests/largefile/testlfs-martin/README b/Build/tests/largefile/testlfs-martin/README
new file mode 100644
index 00000000000..515691568d8
--- /dev/null
+++ b/Build/tests/largefile/testlfs-martin/README
@@ -0,0 +1,9 @@
+(This file public domain.)
+
+The idea here is to see if a 3gb PDF file can be created, that is, if
+largefile support is present and working. Just run make.
+
+You'll need ppmpat from the netpbm tools to make the test image,
+although any image >1gb will do.
+
+-ms/peb/karl, 5mar08.