-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathconfig-examples.lua
More file actions
40 lines (35 loc) · 1.65 KB
/
Copy pathconfig-examples.lua
File metadata and controls
40 lines (35 loc) · 1.65 KB
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
-- Tests generated from the code examples in the pgfmanual
--
-- The test files in testfiles-examples are generated automatically from the
-- manual sources with
--
-- l3build examples
--
-- Each \begin{codeexample} ... \end{codeexample} block becomes one box test
-- whose typeset content is dumped to the log and compared against a reference.
--
-- The tests are run for every supported engine. Because the box dumps differ
-- between engines, each test has an engine specific reference file
-- (name.tlg for the std engine luatex, name.<engine>.tlg for the others).
-- checkengines is left unset so that all engines from build.lua (pdftex,
-- latexdvips, latexdvisvgm, luatex, xetex) are used.
stdengine = "luatex"
testfiledir = "testfiles-examples"
-- Some examples call out to gnuplot to generate plot data. Enable shell
-- escape so that they can. Where gnuplot is unavailable the prebuilt tables
-- copied in by checkinit_hook below are used instead.
checkopts = "-interaction=nonstopmode -shell-escape"
-- files generated by gnuplot examples, removed between engine runs
dynamicfiles = {"*.gnuplot", "*.table"}
-- Keep all \special data so that backend output is captured faithfully
maxprintline = 9999
-- Many plot examples read prebuilt data from plots/*.table (shipped with the
-- manual), and several examples \includegraphics images from the manual's
-- images directory. Make both available inside the test directory.
function checkinit_hook()
mkdir(testdir .. "/plots")
cp("*.table", "doc/generic/pgf/plots", testdir .. "/plots")
cp("*.gnuplot", "doc/generic/pgf/plots", testdir .. "/plots")
cp("*", "doc/generic/pgf/images", testdir)
return 0
end