-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend PDF-based tests to dvips
#278
Changes from all commits
5ac8d35
50e7ae3
3212b2e
86cc6ef
f6fc3db
f9e2345
eba84bf
35d2821
4d861f7
6654d27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,11 @@ this project uses date-based 'snapshot' version identifiers. | |
|
||
## [Unreleased] | ||
|
||
### Added | ||
- Force non-Windows diff program to consider all files to be text files | ||
- Extend PDF-based tests to `dvips` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what you mean - that the change may require There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the changes only involving "using l3build to test l3build itself" |
||
- Normalize a new pattern of PDF stream | ||
|
||
### Fixed | ||
- Restore epoch settings for `dvitopdf()` | ||
- Use plural form of variable `ps2pdfopts` consistently in code and doc, and | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,16 @@ bundle = "" | |
-- Non-standard settings | ||
checkconfigs = {"build", "config-pdf", "config-plain"} | ||
checkdeps = { } | ||
--[[ FIXME: | ||
- setting specialformats in config-pdf.lua results in "binary" set to "latexdvips" (should be "latex") | ||
- setting specialformats in build.lua disables specifying engine | ||
l3build save -c config-pdf -e latexdvips 00-test-2 | ||
]] | ||
specialformats = specialformats or {} | ||
specialformats["latex"] = specialformats["latex"] or | ||
{ | ||
latexdvips = {binary = "latex", format = ""} | ||
} | ||
Comment on lines
+10
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess the wired limitations are caused by some |
||
checkengines = {"pdftex", "xetex", "luatex", "ptex", "uptex"} | ||
cleanfiles = {"*.pdf", "*.tex", "*.zip"} | ||
exefiles = {"l3build.lua"} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
checkengines = {"pdftex", "xetex"} | ||
testfiledir = "testfiles-pdf" | ||
checkengines = {"pdftex", "xetex", "latexdvips"} | ||
testfiledir = "testfiles-pdf" | ||
|
||
ps2pdfopts = " -dCompressStreams=false " |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -551,6 +551,11 @@ local function normalize_pdf(content) | |
binary = false | ||
stream = true | ||
stream_content = "stream" .. os_newline | ||
elseif match(line, "/Length %d+>>stream$") then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
binary = false | ||
stream = true | ||
stream_content = "stream" .. os_newline | ||
new_content = new_content .. gsub(line, "stream$", "") .. os_newline | ||
elseif not match(line, "^ *$") and | ||
not match(line,"^%%%%Invocation") and | ||
not match(line,"^%%%%%+") then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these three packages too experimental to cause less stable test output files?