From 9fe39732331b8bddd426ebb0a73ada84a5419e4b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 16 Apr 2012 23:40:43 +0000 Subject: rename test directories per source git-svn-id: svn://tug.org/texlive/trunk@25996 c570f23f-e606-0410-a88d-b1316a301751 --- Build/tests/largefile/README | 10 ++-- Build/tests/largefile/lfs/3gb.tex | 16 ------ Build/tests/largefile/lfs/Makefile | 17 ------ Build/tests/largefile/lfs/README | 9 ---- Build/tests/largefile/test-lfs/Makefile | 66 ------------------------ Build/tests/largefile/test-lfs/test-include | 40 -------------- Build/tests/largefile/test-lfs/test-lfs.tex | 38 -------------- Build/tests/largefile/testlfs-martin/3gb.tex | 16 ++++++ Build/tests/largefile/testlfs-martin/Makefile | 17 ++++++ Build/tests/largefile/testlfs-martin/README | 9 ++++ Build/tests/largefile/testlfs-thanh/Makefile | 66 ++++++++++++++++++++++++ Build/tests/largefile/testlfs-thanh/test-include | 40 ++++++++++++++ Build/tests/largefile/testlfs-thanh/test-lfs.tex | 38 ++++++++++++++ 13 files changed, 191 insertions(+), 191 deletions(-) delete mode 100644 Build/tests/largefile/lfs/3gb.tex delete mode 100644 Build/tests/largefile/lfs/Makefile delete mode 100644 Build/tests/largefile/lfs/README delete mode 100644 Build/tests/largefile/test-lfs/Makefile delete mode 100755 Build/tests/largefile/test-lfs/test-include delete mode 100644 Build/tests/largefile/test-lfs/test-lfs.tex create mode 100644 Build/tests/largefile/testlfs-martin/3gb.tex create mode 100644 Build/tests/largefile/testlfs-martin/Makefile create mode 100644 Build/tests/largefile/testlfs-martin/README create mode 100644 Build/tests/largefile/testlfs-thanh/Makefile create mode 100755 Build/tests/largefile/testlfs-thanh/test-include create mode 100644 Build/tests/largefile/testlfs-thanh/test-lfs.tex (limited to 'Build') diff --git a/Build/tests/largefile/README b/Build/tests/largefile/README index 56974fe274e..f62b2af52a3 100644 --- a/Build/tests/largefile/README +++ b/Build/tests/largefile/README @@ -2,7 +2,7 @@ $Id$ Copyright (C) 2012 Peter Breitenlohner You may freely use, modify and/or distribute this file. -Shell scripts and data to test largs file support (LFS) for TeX-like +Shell scripts and data to test large file support (LFS) for TeX-like engines, in particular pdfTeX. These tests consume a generous amount of disk space in the current directory, typically 4GB and more. Since they require a fair amount of time a progress report is displayed on the @@ -18,15 +18,15 @@ file would be 2GB or more. Run PATH_TO_largepdf.test PATH_TO_PDFTEX_ENGINE to verify that pdfTeX can create PDF files with 2GB or more (based on -lfs.tgz from Martin Schröder , compare lfs/*). +lfs.tgz from Martin Schr\"oder , compare testlfs-martin/*). Run PATH_TO_pdfimage.test PATH_TO_PDFTEX_ENGINE IMG to verify that pdfTeX can create PDF files with 2GB or more, using various jpeg, png, jbig2, and pdf images (based on test-lfs.zip from Thanh Han The -, compare test-lfs/*). The parameter IMG indicates -the test(s) to perform: +, compare testlfs-thanh/*). The parameter IMG +indicates the test(s) to perform: jpeg-1, jpeg-2, png-1, png-2, jbig2-1, jbig2-2: just one test jpeg, png, jbig2, pdf: two tests all: all seven tests. - \ No newline at end of file + diff --git a/Build/tests/largefile/lfs/3gb.tex b/Build/tests/largefile/lfs/3gb.tex deleted file mode 100644 index a65143631a3..00000000000 --- a/Build/tests/largefile/lfs/3gb.tex +++ /dev/null @@ -1,16 +0,0 @@ -% $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/lfs/Makefile b/Build/tests/largefile/lfs/Makefile deleted file mode 100644 index 302b241963d..00000000000 --- a/Build/tests/largefile/lfs/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $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/lfs/README b/Build/tests/largefile/lfs/README deleted file mode 100644 index 515691568d8..00000000000 --- a/Build/tests/largefile/lfs/README +++ /dev/null @@ -1,9 +0,0 @@ -(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. diff --git a/Build/tests/largefile/test-lfs/Makefile b/Build/tests/largefile/test-lfs/Makefile deleted file mode 100644 index 4ec390eeb38..00000000000 --- a/Build/tests/largefile/test-lfs/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -default: - -clean: - rm -f image.*-* - -files = \ - Makefile \ - test-lfs.tex \ - test-include \ - image.jbig2 \ - image.png \ - image.jpg - - -image.png: image.jpg - convert image.jpg image.png - -image.jbig2: image.jpg - jbig2 -4 image.jpg > image.jbig2 - -test-include-jpeg-1-page: image.jpg - ./test-include image.jpg 200 1 - -test-include-jpeg-2-pages: image.jpg - ./test-include image.jpg 100 2 - -test-include-png-1-page: image.png - ./test-include image.png 140 1 - -test-include-png-2-pages: image.png - ./test-include image.png 70 2 - -test-include-jbig2-1-page: image.jbig2 - ./test-include image.jbig2 3000 1 - -test-include-jbig2-2-pages: image.jbig2 - ./test-include image.jbig2 1500 2 - -test-include-pdf: - make test-include-jpeg-1-page - ./test-include image.jpg-200-1.pdf 1 1 - -rsync: - rsync -avL $(files) thanhs-desktop:test-lfs/ - -jpeg: - -make test-include-jpeg-2-pages - -make test-include-jpeg-1-page - -png: - -make test-include-png-2-pages - -make test-include-png-1-page - -jbig2: - -make test-include-jbig2-2-pages - -make test-include-jbig2-1-page - -pdf: - -make test-include-pdf - -all: - -make jpeg png jbig2 pdf - -dist: - -rm -f test-lfs.zip - zip test-lfs.zip $(files) diff --git a/Build/tests/largefile/test-lfs/test-include b/Build/tests/largefile/test-lfs/test-include deleted file mode 100755 index f859cd66b4e..00000000000 --- a/Build/tests/largefile/test-lfs/test-include +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -# Usage: $0 -# Example: $0 foo.png 10 2 => include foo.png 10x per page and make 2 pages - -set -e -set -u - -img="$1" -count="$2" -pages="$3" -output="$img-$count-$pages" - -runCmd() { - echo "running '$@'" - "$@" || true - echo "" -} - -# gen test file -cat < $output.tex -\input test-lfs.tex -\includeImage $img $count $pages -\end -EOT - -# compile it -runCmd ./pdftex -ini $output.tex - -# validate result -ls -lh $output.pdf -if which pdftoppm > /dev/null; then - echo "check $output.pdf using pdftoppm" - runCmd pdftoppm -r 72 $output.pdf $output - rm -f '*.ppm' || true -fi - -if which gs > /dev/null; then - echo "check $output.pdf using gs" - runCmd gs -q -dNOPAUSE -r72 -sDEVICE=ppmraw -sOutputFile=/dev/null -dBATCH $output.pdf -fi diff --git a/Build/tests/largefile/test-lfs/test-lfs.tex b/Build/tests/largefile/test-lfs/test-lfs.tex deleted file mode 100644 index 06e91877979..00000000000 --- a/Build/tests/largefile/test-lfs/test-lfs.tex +++ /dev/null @@ -1,38 +0,0 @@ -%% copied from plain.tex {{ -\catcode`\{=1 % left brace is begin-group character -\catcode`\}=2 % right brace is end-group character -\catcode`\$=3 % dollar sign is math shift -\catcode`\&=4 % ampersand is alignment tab -\catcode`\#=6 % hash mark is macro parameter character -\catcode`\^=7 \catcode`\^^K=7 % circumflex and uparrow are for superscripts -% \catcode`\_=8 \catcode`\^^A=8 % underline and downarrow are for subscripts -\catcode`\^^I=10 % ascii tab is a blank space -\chardef\active=13 \catcode`\~=\active % tilde is active -\catcode`\^^L=\active \outer\def^^L{\par} % ascii form-feed is "\outer\par" -\def\loop#1\repeat{\def\body{#1}\iterate} -\def\iterate{\body \let\next\iterate \else\let\next\relax\fi \next} -\let\repeat=\fi % this makes \loop...\if...\repeat skippable -%% }} - -\def\includeImage #1 #2 #3 { - \count1=0 - \count2=#2 - \count3=#3 - \loop - \shipout\vbox{ - \count0=0 - \hsize=20cm - \indent - \loop - \immediate\pdfximage width 1cm height 1cm {#1} - \hbox{\pdfrefximage\pdflastximage} - \hskip 0pt plus \hsize - \advance\count0 1 - \ifnum\count0 < \count2 \repeat - } - \advance\count1 1 - \ifnum\count1 < \count3 \repeat -} -\pdfoutput=1 -\batchmode -\endinput 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. diff --git a/Build/tests/largefile/testlfs-thanh/Makefile b/Build/tests/largefile/testlfs-thanh/Makefile new file mode 100644 index 00000000000..4ec390eeb38 --- /dev/null +++ b/Build/tests/largefile/testlfs-thanh/Makefile @@ -0,0 +1,66 @@ +default: + +clean: + rm -f image.*-* + +files = \ + Makefile \ + test-lfs.tex \ + test-include \ + image.jbig2 \ + image.png \ + image.jpg + + +image.png: image.jpg + convert image.jpg image.png + +image.jbig2: image.jpg + jbig2 -4 image.jpg > image.jbig2 + +test-include-jpeg-1-page: image.jpg + ./test-include image.jpg 200 1 + +test-include-jpeg-2-pages: image.jpg + ./test-include image.jpg 100 2 + +test-include-png-1-page: image.png + ./test-include image.png 140 1 + +test-include-png-2-pages: image.png + ./test-include image.png 70 2 + +test-include-jbig2-1-page: image.jbig2 + ./test-include image.jbig2 3000 1 + +test-include-jbig2-2-pages: image.jbig2 + ./test-include image.jbig2 1500 2 + +test-include-pdf: + make test-include-jpeg-1-page + ./test-include image.jpg-200-1.pdf 1 1 + +rsync: + rsync -avL $(files) thanhs-desktop:test-lfs/ + +jpeg: + -make test-include-jpeg-2-pages + -make test-include-jpeg-1-page + +png: + -make test-include-png-2-pages + -make test-include-png-1-page + +jbig2: + -make test-include-jbig2-2-pages + -make test-include-jbig2-1-page + +pdf: + -make test-include-pdf + +all: + -make jpeg png jbig2 pdf + +dist: + -rm -f test-lfs.zip + zip test-lfs.zip $(files) diff --git a/Build/tests/largefile/testlfs-thanh/test-include b/Build/tests/largefile/testlfs-thanh/test-include new file mode 100755 index 00000000000..f859cd66b4e --- /dev/null +++ b/Build/tests/largefile/testlfs-thanh/test-include @@ -0,0 +1,40 @@ +#!/bin/bash +# Usage: $0 +# Example: $0 foo.png 10 2 => include foo.png 10x per page and make 2 pages + +set -e +set -u + +img="$1" +count="$2" +pages="$3" +output="$img-$count-$pages" + +runCmd() { + echo "running '$@'" + "$@" || true + echo "" +} + +# gen test file +cat < $output.tex +\input test-lfs.tex +\includeImage $img $count $pages +\end +EOT + +# compile it +runCmd ./pdftex -ini $output.tex + +# validate result +ls -lh $output.pdf +if which pdftoppm > /dev/null; then + echo "check $output.pdf using pdftoppm" + runCmd pdftoppm -r 72 $output.pdf $output + rm -f '*.ppm' || true +fi + +if which gs > /dev/null; then + echo "check $output.pdf using gs" + runCmd gs -q -dNOPAUSE -r72 -sDEVICE=ppmraw -sOutputFile=/dev/null -dBATCH $output.pdf +fi diff --git a/Build/tests/largefile/testlfs-thanh/test-lfs.tex b/Build/tests/largefile/testlfs-thanh/test-lfs.tex new file mode 100644 index 00000000000..06e91877979 --- /dev/null +++ b/Build/tests/largefile/testlfs-thanh/test-lfs.tex @@ -0,0 +1,38 @@ +%% copied from plain.tex {{ +\catcode`\{=1 % left brace is begin-group character +\catcode`\}=2 % right brace is end-group character +\catcode`\$=3 % dollar sign is math shift +\catcode`\&=4 % ampersand is alignment tab +\catcode`\#=6 % hash mark is macro parameter character +\catcode`\^=7 \catcode`\^^K=7 % circumflex and uparrow are for superscripts +% \catcode`\_=8 \catcode`\^^A=8 % underline and downarrow are for subscripts +\catcode`\^^I=10 % ascii tab is a blank space +\chardef\active=13 \catcode`\~=\active % tilde is active +\catcode`\^^L=\active \outer\def^^L{\par} % ascii form-feed is "\outer\par" +\def\loop#1\repeat{\def\body{#1}\iterate} +\def\iterate{\body \let\next\iterate \else\let\next\relax\fi \next} +\let\repeat=\fi % this makes \loop...\if...\repeat skippable +%% }} + +\def\includeImage #1 #2 #3 { + \count1=0 + \count2=#2 + \count3=#3 + \loop + \shipout\vbox{ + \count0=0 + \hsize=20cm + \indent + \loop + \immediate\pdfximage width 1cm height 1cm {#1} + \hbox{\pdfrefximage\pdflastximage} + \hskip 0pt plus \hsize + \advance\count0 1 + \ifnum\count0 < \count2 \repeat + } + \advance\count1 1 + \ifnum\count1 < \count3 \repeat +} +\pdfoutput=1 +\batchmode +\endinput -- cgit v1.2.3