aboutsummaryrefslogtreecommitdiff
path: root/spec/unpack_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2017-09-13 12:46:22 -0300
committerHisham Muhammad <hisham@gobolinux.org>2017-09-13 12:46:22 -0300
commitf1473f71235bb89555dea7041b536144d32bac8c (patch)
tree5c0b9215801ea1711c7919c1b42085d1b5687075 /spec/unpack_spec.lua
parent1eb598706f9000361f0059a303c3cf99be5a8ceb (diff)
parent9c853b1e7ec0f30e0e539fb56d7c81edbe5c8d7d (diff)
downloadluarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.gz
luarocks-f1473f71235bb89555dea7041b536144d32bac8c.tar.bz2
luarocks-f1473f71235bb89555dea7041b536144d32bac8c.zip
Merge branch 'luarocks-3'
Diffstat (limited to 'spec/unpack_spec.lua')
-rw-r--r--spec/unpack_spec.lua10
1 files changed, 9 insertions, 1 deletions
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"))