Skip to content

Commit

Permalink
lua@5.3: add luarocks test
Browse files Browse the repository at this point in the history
Closes #21297.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
DomT4 authored and ilovezfs committed Dec 3, 2017
1 parent a124157 commit 81bf86e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/lua@5.3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ def pc_file; <<~EOS

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

Expand Down

0 comments on commit 81bf86e

Please sign in to comment.