aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-30 23:32:30 -0200
committerHisham <hisham@gobolinux.org>2016-10-30 23:32:30 -0200
commit27be765c4a846c0d4e970e154b29cbab1a833738 (patch)
tree1436b7eed4dc61a8b9df0cfed512b477d9a8f8ac /spec
parentba1ba4be6e0ecc6936c49fae38c71e22250ceb65 (diff)
parentf8bd89d27323403dd9de9772a7974b439b37b29d (diff)
downloadluarocks-27be765c4a846c0d4e970e154b29cbab1a833738.tar.gz
luarocks-27be765c4a846c0d4e970e154b29cbab1a833738.tar.bz2
luarocks-27be765c4a846c0d4e970e154b29cbab1a833738.zip
Merge branch 'new-cmd-dir'
Diffstat (limited to 'spec')
-rw-r--r--spec/config_spec.lua3
-rw-r--r--spec/show_spec.lua8
-rw-r--r--spec/unpack_spec.lua10
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"))