Skip to content

Commit

Permalink
script: suppress TeX output
Browse files Browse the repository at this point in the history
The table-based approach makes the old method invalid.
  • Loading branch information
stone-zeng committed Sep 8, 2018
1 parent 5a34bfb commit cd3b4e6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ test_script:

cache:
- C:\texlive
# - C:\Users\appveyor\.texlive
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ matrix:
--volume $(pwd):/miktex/work
nanmu42/tex-package-test-bench
texlua build.lua check --halt-on-error --quiet --force --engine pdftex $TEST_FILES_GBK_BIG5_MIKTEX
# - name: MiKTeX (macOS)
# os: osx
# sudo: required
# install:
# - source .travis/miktex/install.sh
# script:
# - tex --version
- name: MiKTeX (macOS)
os: osx
sudo: required
install:
- source .travis/miktex/install.sh
script:
- tex --version

after_failure:
- tail -n +1 build/test/*.diff
39 changes: 30 additions & 9 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,36 @@ function modified_check(names)
names = names or { }
-- No names passed: find all test files
if not next(names) then
for _,i in pairs(filelist(testfiledir, "*" .. lvtext)) do
insert(names, jobname(i))
local excludenames = { }
for _,glob in pairs(excludetests) do
for _,name in pairs(filelist(testfiledir, glob .. lvtext)) do
excludenames[jobname(name)] = true
end
for _,name in pairs(filelist(unpackdir, glob .. lvtext)) do
excludenames[jobname(name)] = true
end
for _,name in pairs(filelist(testfiledir, glob .. pvtext)) do
excludenames[jobname(name)] = true
end
end
for _,i in ipairs(filelist(unpackdir, "*" .. lvtext)) do
if fileexists(testfiledir .. "/" .. i) then
print("Duplicate test file: " .. i)
return 1
else
insert(names, jobname(i))
local function addname(name)
if not excludenames[jobname(name)] then
insert(names,jobname(name))
end
end
for _,glob in pairs(includetests) do
for _,name in pairs(filelist(testfiledir, glob .. lvtext)) do
addname(name)
end
for _,name in pairs(filelist(testfiledir, glob .. pvtext)) do
addname(name)
end
for _,name in pairs(filelist(unpackdir, glob .. lvtext)) do
if fileexists(testfiledir .. "/" .. name) then
print("Duplicate test file: " .. i)
return 1
end
addname(name)
end
end
sort(names)
Expand Down Expand Up @@ -147,7 +168,7 @@ end
function main(target, names)
unhooked_bundleunpack = bundleunpack
bundleunpack = hooked_bundleunpack
check = modified_check
target_list["check"]["func"] = modified_check
stdmain(target, names)
end

Expand Down

0 comments on commit cd3b4e6

Please sign in to comment.