From 81bf86e2428fd5616864bf895e11e88c25a38a4d Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 3 Dec 2017 15:47:32 +0000 Subject: [PATCH] lua@5.3: add luarocks test Closes #21297. Signed-off-by: ilovezfs --- Formula/lua@5.3.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/lua@5.3.rb b/Formula/lua@5.3.rb index 3dfcd16f76..d8148121b8 100644 --- a/Formula/lua@5.3.rb +++ b/Formula/lua@5.3.rb @@ -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