Skip to content

Commit

Permalink
ConTeXt doesn't accept \input on command line
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Mar 22, 2018
1 parent d8d4618 commit 9376ec9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions l3build-check.lua
Expand Up @@ -654,8 +654,12 @@ function runtest(name, engine, hide, ext, makepdf, breakout)
checkopts = checkopts .. " -no-pdf"
end
-- Special casing for ConTeXt
local function setup(file)
return " -jobname=" .. name .. " " .. ' "\\input ' .. file .. '" '
end
if match(checkformat, "^context$") then
format = ""
function setup(file) return ' "' .. file .. '" ' end
if engine == "luatex" or engine == "luajittex" then
realengine = "context"
elseif engine == "pdftex" then
Expand Down Expand Up @@ -691,8 +695,9 @@ function runtest(name, engine, hide, ext, makepdf, breakout)
-- Ensure lines are of a known length
os_setenv .. " max_print_line=" .. maxprintline
.. os_concat ..
realengine .. format .. " -jobname=" .. name .. " "
.. asciiopt .. " " .. checkopts .. " \"\\input " .. lvtfile .. "\" "
realengine .. format
.. asciiopt .. " " .. checkopts
.. setup(lvtfile)
.. (hide and (" > " .. os_null) or "")
.. os_concat ..
runtest_tasks(jobname(lvtfile))
Expand Down

0 comments on commit 9376ec9

Please sign in to comment.