Add test to luarocks
This commit is contained in:
parent
7059c5187d
commit
2e73c4d007
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue