diff options
author | Karl Berry <karl@freefriends.org> | 2016-05-04 23:10:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-05-04 23:10:15 +0000 |
commit | e5ac7d8301efd127740e0ebfde020aae9c9563c0 (patch) | |
tree | df767cacac937f540ded9149064797ca9a31a28f /Master/texmf-dist/doc/pdftex/tests | |
parent | 6e6b00930df3ed6b7e295b3b0ed3ef024686a9de (diff) |
import SOURCE_DATE_EPOCH_TEX_PRIMITIVES support from pdftex r751, per tex-k thread, http://tug.org/pipermail/tex-k/2016-May/002691.html
git-svn-id: svn://tug.org/texlive/trunk@40889 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/tests')
-rw-r--r-- | Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/Makefile | 17 | ||||
-rw-r--r-- | Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/test-prim.tex | 11 |
2 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/Makefile b/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/Makefile index cbf7ee13b25..1e0e72aea9c 100644 --- a/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/Makefile +++ b/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile 740 2016-04-23 15:08:37Z karl $ +# $Id: Makefile 751 2016-05-04 22:57:38Z karl $ # Public domain. include ../Common.mak @@ -9,6 +9,10 @@ test1: test2: $(prog) test-fixed-date-id.tex +testprim: + SOURCE_DATE_EPOCH=120 SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 \ + $(prog) test-prim.tex + test = test-SOURCE_DATE_EPOCH # test invalid settings of the envvar. test3-invalid: @@ -27,17 +31,18 @@ test3-valid: test3-orig.pdf test3-repro.pdf SOURCE_DATE_EPOCH=0 $(prog) $(test).tex SOURCE_DATE_EPOCH="" $(prog) $(test).tex # same as 0 -$(diff) $< $(test).pdf # shows differences - SOURCE_DATE_EPOCH=10 $(prog) $(test).tex + SOURCE_DATE_EPOCH=11 $(prog) $(test).tex $(diff) test3-repro.pdf $(test).pdf # should be identical # SOURCE_DATE_EPOCH=1439928155 $(prog) $(test).tex # make an original with nonzero time for checking. -test3-repro.pdf: - SOURCE_DATE_EPOCH=10 $(prog) $(test).tex && mv $(test).pdf $@ +test3-repro.pdf: force + SOURCE_DATE_EPOCH=11 $(prog) $(test).tex && mv $(test).pdf $@ +force: clean: rm -f *.log *.pdf *.fmt *.aux fmt: - $(prog) *pdflatex.ini - $(prog) *pdfetex.ini + $(prog) \*pdflatex.ini + $(prog) \*pdfetex.ini diff --git a/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/test-prim.tex b/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/test-prim.tex new file mode 100644 index 00000000000..7c83d90b422 --- /dev/null +++ b/Master/texmf-dist/doc/pdftex/tests/03-deterministic-output/test-prim.tex @@ -0,0 +1,11 @@ +% $Id$ +% See the testprim: target in ./Makefile for the invocation. + +\catcode`\{ = 1 +\catcode`\} = 2 + +\ifnum\year=1970 \else \errmessage{year is \the\year, not 1970}\fi +\ifnum\month=1 \else \errmessage{month is \the\month, not 1}\fi +\ifnum\day=1 \else \errmessage{day is \the\day, not 1}\fi +\ifnum\time=2 \else \errmessage{time is \the\time, not 2}\fi +\end |