diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-13 12:46:22 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-09-13 12:46:22 -0300 |
| commit | f1473f71235bb89555dea7041b536144d32bac8c (patch) | |
| tree | 5c0b9215801ea1711c7919c1b42085d1b5687075 /spec | |
| parent | 1eb598706f9000361f0059a303c3cf99be5a8ceb (diff) | |
| parent | 9c853b1e7ec0f30e0e539fb56d7c81edbe5c8d7d (diff) | |
| download | luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.gz luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.bz2 luarocks-f1473f71235bb89555dea7041b536144d32bac8c.zip | |
Merge branch 'luarocks-3'
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/config_spec.lua | 3 | ||||
| -rw-r--r-- | spec/show_spec.lua | 8 | ||||
| -rw-r--r-- | spec/unpack_spec.lua | 10 |
3 files changed, 19 insertions, 2 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua index 4a7f4aea..cdb5ccc4 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua | |||
| @@ -57,7 +57,8 @@ describe("LuaRocks config tests #blackbox #b_config", function() | |||
| 57 | end) | 57 | end) |
| 58 | 58 | ||
| 59 | it("LuaRocks config missing user config", function() | 59 | it("LuaRocks config missing user config", function() |
| 60 | assert.is_false(run.luarocks_bool("config --user-config", {LUAROCKS_CONFIG = "missing_file.lua"})) | 60 | local output = run.luarocks("config --user-config", {LUAROCKS_CONFIG = "missing_file.lua"}) |
| 61 | assert.truthy(output:match("Warning")) | ||
| 61 | end) | 62 | end) |
| 62 | end) | 63 | end) |
| 63 | 64 | ||
diff --git a/spec/show_spec.lua b/spec/show_spec.lua index d07fdc31..0b046de0 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua | |||
| @@ -54,6 +54,14 @@ describe("LuaRocks show tests #blackbox #b_show", function() | |||
| 54 | it("LuaRocks show rock directory of luacov", function() | 54 | it("LuaRocks show rock directory of luacov", function() |
| 55 | local output = run.luarocks("show --rock-dir luacov") | 55 | local output = run.luarocks("show --rock-dir luacov") |
| 56 | end) | 56 | end) |
| 57 | |||
| 58 | it("LuaRocks show issues URL of luacov", function() | ||
| 59 | local output = run.luarocks("show --issues luacov") | ||
| 60 | end) | ||
| 61 | |||
| 62 | it("LuaRocks show labels of luacov", function() | ||
| 63 | local output = run.luarocks("show --labels luacov") | ||
| 64 | end) | ||
| 57 | end) | 65 | end) |
| 58 | 66 | ||
| 59 | it("LuaRocks show old version of luacov", function() | 67 | it("LuaRocks show old version of luacov", function() |
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index 1a8dfa7e..d629e225 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua | |||
| @@ -50,7 +50,15 @@ describe("LuaRocks unpack tests #blackbox #b_unpack", function() | |||
| 50 | os.remove("lua-cprint") | 50 | os.remove("lua-cprint") |
| 51 | test_env.remove_dir("cprint-0.1-2") | 51 | test_env.remove_dir("cprint-0.1-2") |
| 52 | end) | 52 | end) |
| 53 | 53 | ||
| 54 | -- #595 luarocks unpack of a git:// rockspec fails to copy the rockspec | ||
| 55 | it("LuaRocks unpack git:// rockspec", function() | ||
| 56 | assert.is_true(run.luarocks_bool("download --rockspec luazip")) | ||
| 57 | assert.is_true(run.luarocks_bool("unpack luazip-1.2.4-1.rockspec")) | ||
| 58 | assert.is_truthy(lfs.attributes("luazip-1.2.4-1/luazip/luazip-1.2.4-1.rockspec")) | ||
| 59 | test_env.remove_dir("luazip-1.2.4-1") | ||
| 60 | end) | ||
| 61 | |||
| 54 | it("LuaRocks unpack binary", function() | 62 | it("LuaRocks unpack binary", function() |
| 55 | assert.is_true(run.luarocks_bool("build cprint")) | 63 | assert.is_true(run.luarocks_bool("build cprint")) |
| 56 | assert.is_true(run.luarocks_bool("pack cprint")) | 64 | assert.is_true(run.luarocks_bool("pack cprint")) |
