blob: 46525f91ecfaf04b60e3dd7cae423aef4251c6dc (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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)
|