summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-02 17:06:33 +0000
committerKarl Berry <karl@freefriends.org>2020-03-02 17:06:33 +0000
commitd5c6ce7f09e0ed91d78f1f783ecb5e46c12abb77 (patch)
treedf6bb3d9d77c17fddb5ff46f9dd873f471378a76 /Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile
parentc6061bd39c7e6eff409c3a17bc0a918f266a3bee (diff)
pdftex doc update for TL20
git-svn-id: svn://tug.org/texlive/trunk@53997 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile')
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile b/Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile
new file mode 100644
index 00000000000..46525f91ecf
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/12-pdf2/Makefile
@@ -0,0 +1,49 @@
+# $Id: Makefile 817 2019-11-27 22:44:59Z karl $
+# Public domain.
+# Test \pdfmajorversion and image inclusion.
+
+include ../Common.mak
+
+default: test-compress test-badver test-pdfmajor test-incl
+
+test-compress: test-compress2.tex
+ $(prog) $<
+ ! grep "warning.*Object streams" test-compress2.log >/dev/null
+
+test-badver: test-pdfmajor.tex
+ ! $(prog) '\pdfmajorversion=0 \input $<'
+ ! $(prog) '\pdfminorversion=-1 \input $<\end'
+
+test-pdfmajor: test-pdfmajor.tex
+ $(prog) $<
+ # by default, first line should start with %PDF-1.
+ sed 1q test-pdfmajor.pdf | grep "%PDF-1" >/dev/null
+ #
+ # go to PDF 2.
+ $(prog) '\pdfmajorversion=2 \input $<'
+ sed 1q test-pdfmajor.pdf | grep "%PDF-2" >/dev/null
+
+test-incl: test-incl22 test-incl21 test-incl12
+#
+test-incl22: test-doc2incl2.tex incl2.pdf
+ $(prog) $< # no pdftex warning
+ ! grep "at most version <" test-doc2incl2.log >/dev/null
+
+test-incl21: test-doc2incl1.tex incl1.pdf
+ $(prog) $< # no pdftex warning
+ ! grep "at most version <" test-doc2incl1.log >/dev/null
+
+test-incl12: test-doc1incl2.tex incl2.pdf
+ $(prog) $< # pdftex warning should be in the log
+ grep "at most version <" test-doc1incl2.log >/dev/null
+ #
+ # Now let's force omission of the warning.
+ $(prog) '\pdfinclusionerrorlevel=-1 \input $<'
+ ! grep "at most version <" test-doc1incl2.log >/dev/null
+
+incl2.pdf: incl2.tex
+ $(prog) incl2.tex
+incl1.pdf: incl1.tex
+ $(prog) incl1.tex
+clean:
+ $(clean)