aboutsummaryrefslogtreecommitdiff
path: root/spec/pack_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-07-14 14:43:42 -0300
committerGitHub <noreply@github.com>2016-07-14 14:43:42 -0300
commit36388709d628a76c450eed20b67f008faefc36cb (patch)
treee9e8a6959ecafcd8355b8b9614f65a613fe6ddb4 /spec/pack_spec.lua
parent0f63a95e991435c769584abd01b16bd748a1434b (diff)
parent48b98f0c099dc621e1f93cccf9a9e03ff75649b6 (diff)
downloadluarocks-36388709d628a76c450eed20b67f008faefc36cb.tar.gz
luarocks-36388709d628a76c450eed20b67f008faefc36cb.tar.bz2
luarocks-36388709d628a76c450eed20b67f008faefc36cb.zip
Merge pull request #588 from robooo/new-tests
New tests
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r--spec/pack_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua
index 416184a8..aa827682 100644
--- a/spec/pack_spec.lua
+++ b/spec/pack_spec.lua
@@ -1,6 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run 3local run = test_env.run
4local testing_paths = test_env.testing_paths
4 5
5test_env.unload_luarocks() 6test_env.unload_luarocks()
6 7
@@ -21,6 +22,10 @@ describe("LuaRocks pack tests #blackbox #b_pack", function()
21 assert.is_true(run.luarocks_bool("pack luacov")) 22 assert.is_true(run.luarocks_bool("pack luacov"))
22 assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) 23 assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-"))
23 end) 24 end)
25
26 it("LuaRocks pack invalid rockspec", function()
27 assert.is_false(run.luarocks_bool("pack " .. testing_paths.testing_dir .. "/testfiles/invaild_validate-args-1.5.4-1.rockspec"))
28 end)
24 29
25 it("LuaRocks pack src", function() 30 it("LuaRocks pack src", function()
26 assert.is_true(run.luarocks_bool("install luasec")) 31 assert.is_true(run.luarocks_bool("install luasec"))