lua@5.3: add luarocks test
Closes #21297. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
a124157d10
commit
81bf86e242
1 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,12 @@ class LuaAT53 < Formula
|
||||||
|
|
||||||
test do
|
test do
|
||||||
system "#{bin}/lua-5.3", "-e", "print ('Ducks are cool')"
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue