Codebase list lua-ldoc / 4828ea61-d0e2-4079-ad8a-2e9e8d0f48ab/main run-tests.lua
4828ea61-d0e2-4079-ad8a-2e9e8d0f48ab/main

Tree @4828ea61-d0e2-4079-ad8a-2e9e8d0f48ab/main (Download .tar.gz)

run-tests.lua @4828ea61-d0e2-4079-ad8a-2e9e8d0f48ab/mainraw · history · blame

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