diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2017-10-04 11:14:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-04 11:14:42 -0300 |
| commit | 84b4fe99cac37850a97858e0b641043bd3178d8a (patch) | |
| tree | b4578689091b8360aed71f531faf2513b7d41684 /spec/install_spec.lua | |
| parent | 100c18d048936b5a47f29f55e6ce8b24277fb70f (diff) | |
| download | luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.tar.gz luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.tar.bz2 luarocks-84b4fe99cac37850a97858e0b641043bd3178d8a.zip | |
Use versioned files only. (#734)
Let's take the opportunity of a new major version to make an important cleanup: getting rid of the error-prone unversioned configuration files. This drops support for:
* Unversioned config.lua -> use config-5.x.lua
* Unversioned luarocks/site_config.lua -> it always generates luarocks/core/site_config_5_x.lua
* Unversioned lib/luarocks/rocks -> it always uses lib/luarocks/rocks-5.x
Diffstat (limited to 'spec/install_spec.lua')
| -rw-r--r-- | spec/install_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 74f8f493..92b780d3 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
| @@ -83,9 +83,9 @@ describe("LuaRocks install tests #blackbox #b_install", function() | |||
| 83 | assert.is_true(run.luarocks_bool("show luasec")) | 83 | assert.is_true(run.luarocks_bool("show luasec")) |
| 84 | if env_variables.TYPE_TEST_ENV == "minimal" then | 84 | if env_variables.TYPE_TEST_ENV == "minimal" then |
| 85 | assert.is_false(run.luarocks_bool(test_env.quiet("show luasocket"))) | 85 | assert.is_false(run.luarocks_bool(test_env.quiet("show luasocket"))) |
| 86 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) | 86 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket")) |
| 87 | end | 87 | end |
| 88 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasec")) | 88 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasec")) |
| 89 | end) | 89 | end) |
| 90 | 90 | ||
| 91 | it('LuaRocks install - handle relative path in --tree #632', function() | 91 | it('LuaRocks install - handle relative path in --tree #632', function() |
| @@ -170,22 +170,22 @@ describe("LuaRocks install tests #blackbox #b_install", function() | |||
| 170 | assert.is_true(run.luarocks_bool("install say 1.2")) | 170 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 171 | assert.is_true(run.luarocks_bool("install luassert")) | 171 | assert.is_true(run.luarocks_bool("install luassert")) |
| 172 | assert.is_true(run.luarocks_bool("install say 1.0")) | 172 | assert.is_true(run.luarocks_bool("install say 1.0")) |
| 173 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.2-1")) | 173 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| 174 | end) | 174 | end) |
| 175 | it("LuaRocks install break dependencies force", function() | 175 | it("LuaRocks install break dependencies force", function() |
| 176 | assert.is_true(run.luarocks_bool("install say 1.2")) | 176 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 177 | assert.is_true(run.luarocks_bool("install luassert")) | 177 | assert.is_true(run.luarocks_bool("install luassert")) |
| 178 | local output = run.luarocks("install --force say 1.0") | 178 | local output = run.luarocks("install --force say 1.0") |
| 179 | assert.is.truthy(output:find("Checking stability of dependencies")) | 179 | assert.is.truthy(output:find("Checking stability of dependencies")) |
| 180 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.2-1")) | 180 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| 181 | end) | 181 | end) |
| 182 | it("LuaRocks install break dependencies force fast", function() | 182 | it("LuaRocks install break dependencies force fast", function() |
| 183 | assert.is_true(run.luarocks_bool("install say 1.2")) | 183 | assert.is_true(run.luarocks_bool("install say 1.2")) |
| 184 | assert.is_true(run.luarocks_bool("install luassert")) | 184 | assert.is_true(run.luarocks_bool("install luassert")) |
| 185 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.2-1")) | 185 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.2-1")) |
| 186 | local output = run.luarocks("install --force-fast say 1.0") | 186 | local output = run.luarocks("install --force-fast say 1.0") |
| 187 | assert.is.falsy(output:find("Checking stability of dependencies")) | 187 | assert.is.falsy(output:find("Checking stability of dependencies")) |
| 188 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.0-1")) | 188 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/say/1.0-1")) |
| 189 | end) | 189 | end) |
| 190 | end) | 190 | end) |
| 191 | end) | 191 | end) |
