diff options
| author | daurnimator <quae@daurnimator.com> | 2025-12-26 22:30:36 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2025-12-26 22:30:36 +1100 |
| commit | 6b7b6c2506f9abef059794663a8598a736837cc4 (patch) | |
| tree | 4630dac80568c9377ff4cc1bcadef2c5fe9f7a6b /spec | |
| parent | ddb1c93bf93c9774cb9d854a665d51c369ea5acd (diff) | |
| parent | 24a9abaf330daf6882292a55256cf81dbdc5b622 (diff) | |
| download | luarocks-6b7b6c2506f9abef059794663a8598a736837cc4.tar.gz luarocks-6b7b6c2506f9abef059794663a8598a736837cc4.tar.bz2 luarocks-6b7b6c2506f9abef059794663a8598a736837cc4.zip | |
Merge remote-tracking branch 'origin/refs/pull/1844/head'
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/init_spec.lua | 4 | ||||
| -rw-r--r-- | spec/util/test_env.lua | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/init_spec.lua b/spec/init_spec.lua index 88bd23a5..6cc0dd90 100644 --- a/spec/init_spec.lua +++ b/spec/init_spec.lua | |||
| @@ -153,13 +153,13 @@ describe("luarocks init #integration", function() | |||
| 153 | lfs.mkdir(myproject) | 153 | lfs.mkdir(myproject) |
| 154 | lfs.chdir(myproject) | 154 | lfs.chdir(myproject) |
| 155 | 155 | ||
| 156 | assert(run.luarocks("init --lua-versions=5.1,5.2,5.3,5.4")) | 156 | assert(run.luarocks("init --lua-versions=5.1,5.2,5.3,5.4,5.5")) |
| 157 | local rockspec_name = myproject .. "/myproject-dev-1.rockspec" | 157 | local rockspec_name = myproject .. "/myproject-dev-1.rockspec" |
| 158 | assert.truthy(lfs.attributes(rockspec_name)) | 158 | assert.truthy(lfs.attributes(rockspec_name)) |
| 159 | local fd = assert(io.open(rockspec_name, "rb")) | 159 | local fd = assert(io.open(rockspec_name, "rb")) |
| 160 | local data = fd:read("*a") | 160 | local data = fd:read("*a") |
| 161 | fd:close() | 161 | fd:close() |
| 162 | assert.truthy(data:find("lua >= 5.1, < 5.5", 1, true)) | 162 | assert.truthy(data:find("lua >= 5.1, < 5.6", 1, true)) |
| 163 | end, finally) | 163 | end, finally) |
| 164 | end) | 164 | end) |
| 165 | 165 | ||
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 390ba01c..4b359b7f 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
| @@ -250,6 +250,10 @@ function test_env.execute_helper(command, print_command, env_variables) | |||
| 250 | "LUA_CPATH_5_2", | 250 | "LUA_CPATH_5_2", |
| 251 | "LUA_PATH_5_3", | 251 | "LUA_PATH_5_3", |
| 252 | "LUA_CPATH_5_3", | 252 | "LUA_CPATH_5_3", |
| 253 | "LUA_PATH_5_4", | ||
| 254 | "LUA_CPATH_5_4", | ||
| 255 | "LUA_PATH_5_5", | ||
| 256 | "LUA_CPATH_5_5", | ||
| 253 | "LUAROCKS_SYSCONFDIR", | 257 | "LUAROCKS_SYSCONFDIR", |
| 254 | } | 258 | } |
| 255 | 259 | ||
