Add test to luarocks

This commit is contained in:
Adam Vandenberg 2010-06-30 10:03:22 -07:00
parent 7059c5187d
commit 2e73c4d007

View file

@ -17,4 +17,10 @@ class Luarocks <Formula
system "make"
system "make install"
end
def test
opoo "Luarocks test script installs 'lpeg'"
system "luarocks install lpeg"
system "lua", "-lluarocks.loader", "-llpeg", "-e", 'print ("Hello World!")'
end
end