diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
| commit | bd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch) | |
| tree | 9812779fea52afea7dbbf15a21620d3c59102476 /spec/deps_spec.lua | |
| parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
| download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip | |
tests: shorter descriptions
Diffstat (limited to 'spec/deps_spec.lua')
| -rw-r--r-- | spec/deps_spec.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/deps_spec.lua b/spec/deps_spec.lua index 846434f4..b677acc4 100644 --- a/spec/deps_spec.lua +++ b/spec/deps_spec.lua | |||
| @@ -13,13 +13,13 @@ local extra_rocks = { | |||
| 13 | "/lpeg-1.0.0-1.src.rock", | 13 | "/lpeg-1.0.0-1.src.rock", |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | describe("LuaRocks deps tests #integration", function() | 16 | describe("LuaRocks deps-mode #integration", function() |
| 17 | 17 | ||
| 18 | before_each(function() | 18 | before_each(function() |
| 19 | test_env.setup_specs(extra_rocks) | 19 | test_env.setup_specs(extra_rocks) |
| 20 | end) | 20 | end) |
| 21 | 21 | ||
| 22 | it("LuaRocks deps mode one", function() | 22 | it("one", function() |
| 23 | assert.is_true(run.luarocks_bool("build --tree=system lpeg")) | 23 | assert.is_true(run.luarocks_bool("build --tree=system lpeg")) |
| 24 | assert.is_true(run.luarocks_bool("build --deps-mode=one --tree=" .. testing_paths.testing_tree .. " lxsh")) | 24 | assert.is_true(run.luarocks_bool("build --deps-mode=one --tree=" .. testing_paths.testing_tree .. " lxsh")) |
| 25 | 25 | ||
| @@ -29,7 +29,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 29 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 29 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 30 | end) | 30 | end) |
| 31 | 31 | ||
| 32 | it("LuaRocks deps mode order", function() | 32 | it("order", function() |
| 33 | assert.is_true(run.luarocks_bool("build --tree=system lpeg")) | 33 | assert.is_true(run.luarocks_bool("build --tree=system lpeg")) |
| 34 | assert.is_true(run.luarocks_bool("build --deps-mode=order --tree=" .. testing_paths.testing_tree .. " lxsh")) | 34 | assert.is_true(run.luarocks_bool("build --deps-mode=order --tree=" .. testing_paths.testing_tree .. " lxsh")) |
| 35 | 35 | ||
| @@ -39,7 +39,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 39 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 39 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 40 | end) | 40 | end) |
| 41 | 41 | ||
| 42 | it("LuaRocks deps mode order sys", function() | 42 | it("order sys", function() |
| 43 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) | 43 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) |
| 44 | assert.is_true(run.luarocks_bool("build --deps-mode=order --tree=" .. testing_paths.testing_sys_tree .. " lxsh")) | 44 | assert.is_true(run.luarocks_bool("build --deps-mode=order --tree=" .. testing_paths.testing_sys_tree .. " lxsh")) |
| 45 | 45 | ||
| @@ -49,7 +49,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 49 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 49 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 50 | end) | 50 | end) |
| 51 | 51 | ||
| 52 | it("LuaRocks deps mode all sys", function() | 52 | it("all sys", function() |
| 53 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) | 53 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) |
| 54 | assert.is_true(run.luarocks_bool("build --deps-mode=all --tree=" .. testing_paths.testing_sys_tree .. " lxsh")) | 54 | assert.is_true(run.luarocks_bool("build --deps-mode=all --tree=" .. testing_paths.testing_sys_tree .. " lxsh")) |
| 55 | 55 | ||
| @@ -59,7 +59,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 59 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 59 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 60 | end) | 60 | end) |
| 61 | 61 | ||
| 62 | it("LuaRocks deps mode none", function() | 62 | it("none", function() |
| 63 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) | 63 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) |
| 64 | assert.is_true(run.luarocks_bool("build --deps-mode=none lxsh")) | 64 | assert.is_true(run.luarocks_bool("build --deps-mode=none lxsh")) |
| 65 | 65 | ||
| @@ -78,7 +78,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 78 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 78 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 79 | end) | 79 | end) |
| 80 | 80 | ||
| 81 | it("LuaRocks deps mode make order", function() | 81 | it("make order", function() |
| 82 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_sys_tree .. " lpeg")) | 82 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_sys_tree .. " lpeg")) |
| 83 | assert.is_true(run.luarocks_bool("download --source lxsh 0.8.6")) | 83 | assert.is_true(run.luarocks_bool("download --source lxsh 0.8.6")) |
| 84 | assert.is_true(run.luarocks_bool("unpack lxsh-0.8.6-2.src.rock")) | 84 | assert.is_true(run.luarocks_bool("unpack lxsh-0.8.6-2.src.rock")) |
| @@ -95,7 +95,7 @@ describe("LuaRocks deps tests #integration", function() | |||
| 95 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 95 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
| 96 | end) | 96 | end) |
| 97 | 97 | ||
| 98 | it("LuaRocks deps mode make order sys", function() | 98 | it("make order sys", function() |
| 99 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) | 99 | assert.is_true(run.luarocks_bool("build --tree=" .. testing_paths.testing_tree .. " lpeg")) |
| 100 | assert.is_true(run.luarocks_bool("download --source lxsh 0.8.6")) | 100 | assert.is_true(run.luarocks_bool("download --source lxsh 0.8.6")) |
| 101 | assert.is_true(run.luarocks_bool("unpack lxsh-0.8.6-2.src.rock")) | 101 | assert.is_true(run.luarocks_bool("unpack lxsh-0.8.6-2.src.rock")) |
