Codebase list lua-ldoc / d8042a7f-5b58-4534-8e96-54b5b7978733/main run-tests.lua
d8042a7f-5b58-4534-8e96-54b5b7978733/main

Tree @d8042a7f-5b58-4534-8e96-54b5b7978733/main (Download .tar.gz)

run-tests.lua @d8042a7f-5b58-4534-8e96-54b5b7978733/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