lua@5.3: add luarocks test

Closes #21297.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Dominyk Tiller 2017-12-03 15:47:32 +00:00 committed by ilovezfs
parent a124157d10
commit 81bf86e242

View file

@ -106,6 +106,12 @@ class LuaAT53 < Formula
test do
system "#{bin}/lua-5.3", "-e", "print ('Ducks are cool')"
if File.exist?(bin/"luarocks-5.3")
(testpath/"luarocks").mkpath
system bin/"luarocks-5.3", "install", "moonscript", "--tree=#{testpath}/luarocks"
assert_predicate testpath/"luarocks/bin/moon", :exist?
end
end
end