Codebase list lua-ldoc / 028b86b2-9dd0-40cb-927d-0c882722f6e4/main run-tests.lua
028b86b2-9dd0-40cb-927d-0c882722f6e4/main

Tree @028b86b2-9dd0-40cb-927d-0c882722f6e4/main (Download .tar.gz)

run-tests.lua @028b86b2-9dd0-40cb-927d-0c882722f6e4/main

3d31f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f09d617
local run
if not arg[1] then
  run = function (dir)
     local cmd = 'cd '..dir..' && ldoc --testing . && diff -r doc cdocs'
     print(cmd) 
     os.execute(cmd)
  end
elseif arg[1] == 'update' then
   run = function (dir)
     local cmd = 'cd '..dir..' && ldoc --dir cdocs --testing .'
     print(cmd) 
     os.execute(cmd)
   end
end

for _,d in ipairs{'tests','tests/example','tests/md-test'} do
   run(d)
end