aboutsummaryrefslogtreecommitdiff
path: root/spec/init_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2022-04-16 18:53:07 -0300
committerHisham Muhammad <hisham@gobolinux.org>2022-04-16 21:17:34 -0300
commit0f82063a51cd9197edd214e0427fe4e84ae9c0b9 (patch)
tree90b1f09e2504e8eb97209af4ec24e7ab6fdfbb17 /spec/init_spec.lua
parenta405d1a5f6c9eb7249a9271ca23ff1f701f91cfe (diff)
downloadluarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.tar.gz
luarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.tar.bz2
luarocks-0f82063a51cd9197edd214e0427fe4e84ae9c0b9.zip
tests: run tests on Lua 5.4 and LuaJIT 2.1
Diffstat (limited to 'spec/init_spec.lua')
-rw-r--r--spec/init_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/init_spec.lua b/spec/init_spec.lua
index 3bde313a..dadeb300 100644
--- a/spec/init_spec.lua
+++ b/spec/init_spec.lua
@@ -92,13 +92,13 @@ describe("luarocks init #integration", function()
92 lfs.mkdir(myproject) 92 lfs.mkdir(myproject)
93 lfs.chdir(myproject) 93 lfs.chdir(myproject)
94 94
95 assert(run.luarocks("init --lua-versions=5.1,5.2,5.3")) 95 assert(run.luarocks("init --lua-versions=5.1,5.2,5.3,5.4"))
96 local rockspec_name = myproject .. "/myproject-dev-1.rockspec" 96 local rockspec_name = myproject .. "/myproject-dev-1.rockspec"
97 assert.truthy(lfs.attributes(rockspec_name)) 97 assert.truthy(lfs.attributes(rockspec_name))
98 local fd = assert(io.open(rockspec_name, "rb")) 98 local fd = assert(io.open(rockspec_name, "rb"))
99 local data = fd:read("*a") 99 local data = fd:read("*a")
100 fd:close() 100 fd:close()
101 assert.truthy(data:find("lua >= 5.1, < 5.4", 1, true)) 101 assert.truthy(data:find("lua >= 5.1, < 5.5", 1, true))
102 end, finally) 102 end, finally)
103 end) 103 end)
104 104