diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2016-07-19 19:55:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-19 19:55:42 -0300 |
| commit | b4536ebabffae8b5b8c3f1cd2eb1063225254100 (patch) | |
| tree | c7658afc65573b60db6f94e0f4c9cbcb6fada343 /spec/pack_spec.lua | |
| parent | 42de075dd63cb35107c514b55c061bf43f3ed184 (diff) | |
| parent | 3945f90b0bd80024294b048a793bae526cad30e2 (diff) | |
| download | luarocks-b4536ebabffae8b5b8c3f1cd2eb1063225254100.tar.gz luarocks-b4536ebabffae8b5b8c3f1cd2eb1063225254100.tar.bz2 luarocks-b4536ebabffae8b5b8c3f1cd2eb1063225254100.zip | |
Merge pull request #592 from robooo/new-tests
New tests & verbose mode
Diffstat (limited to 'spec/pack_spec.lua')
| -rw-r--r-- | spec/pack_spec.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 67ed5f3f..0e5b31c6 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
| @@ -24,8 +24,7 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
| 24 | end) | 24 | end) |
| 25 | 25 | ||
| 26 | it("LuaRocks pack basic", function() | 26 | it("LuaRocks pack basic", function() |
| 27 | assert.is_true(run.luarocks_bool("list")) | 27 | assert.is_true(run.luarocks_bool(test_env.quiet("pack luacov"))) |
| 28 | assert.is_true(run.luarocks_bool("pack luacov")) | ||
| 29 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) | 28 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luacov-")) |
| 30 | end) | 29 | end) |
| 31 | 30 | ||
| @@ -49,10 +48,9 @@ describe("LuaRocks pack tests #blackbox #b_pack", function() | |||
| 49 | assert.is_false(run.luarocks_bool("pack say")) | 48 | assert.is_false(run.luarocks_bool("pack say")) |
| 50 | end) | 49 | end) |
| 51 | 50 | ||
| 52 | |||
| 53 | it("LuaRocks pack src", function() | 51 | it("LuaRocks pack src", function() |
| 54 | assert.is_true(run.luarocks_bool("install luasec")) | 52 | assert.is_true(run.luarocks_bool(test_env.quiet("install luasec"))) |
| 55 | assert.is_true(run.luarocks_bool("download --rockspec luasocket")) | 53 | assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-1")) |
| 56 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) | 54 | assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) |
| 57 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) | 55 | assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) |
| 58 | end) | 56 | end) |
