Add test rock

This commit is contained in:
mpeterv 2015-11-23 20:35:43 +03:00
parent 975d41ec56
commit ca15782699
4 changed files with 30 additions and 0 deletions

View File

@ -22,3 +22,5 @@ script:
- export PATH=$PATH:$PWD/here/bin
- lua -v
- luarocks --version
- luarocks make
- hererocks-test

View File

@ -0,0 +1,26 @@
package = "hererocks-test"
version = "scm-1"
source = {
url = "git://github.com/mpeterv/hererocks"
}
description = {
summary = "A test rock for hererocks",
detailed = "A test rock for hererocks",
homepage = "https://github.com/mpeterv/hererocks",
license = "MIT <http://opensource.org/licenses/MIT>"
}
dependencies = {
"lua >= 5.1, < 5.4"
}
build = {
type = "builtin",
modules = {
["hererocks.test"] = "test.lua"
},
install = {
bin = {
["hererocks-test"] = "hererocks-test.lua"
}
},
copy_directories = {}
}

1
hererocks-test.lua Normal file
View File

@ -0,0 +1 @@
require "hererocks.test"

1
test.lua Normal file
View File

@ -0,0 +1 @@
print("Lua version: " .. (_G.jit and _G.jit.version or _VERSION))