diff options
author | Hisham <hisham@gobolinux.org> | 2016-09-08 14:04:40 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-09-08 14:04:40 -0300 |
commit | f91fc9a6ef9ef488c709894a29ce63db2bc1e399 (patch) | |
tree | 3b9dbbe28ad79f2d1115b2048f3cbf9738303373 /spec/make_spec.lua | |
parent | c6d48427430b6b96f88b249dee1533fb5e6ff681 (diff) | |
download | luarocks-f91fc9a6ef9ef488c709894a29ce63db2bc1e399.tar.gz luarocks-f91fc9a6ef9ef488c709894a29ce63db2bc1e399.tar.bz2 luarocks-f91fc9a6ef9ef488c709894a29ce63db2bc1e399.zip |
Tests: luarocks_bool commands log their outputs on failure.
Diffstat (limited to 'spec/make_spec.lua')
-rw-r--r-- | spec/make_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua index 624badff..ae79a29c 100644 --- a/spec/make_spec.lua +++ b/spec/make_spec.lua | |||
@@ -30,10 +30,10 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
30 | assert.is_true(run.luarocks_bool("download --source luasocket 3.0rc1-2")) | 30 | assert.is_true(run.luarocks_bool("download --source luasocket 3.0rc1-2")) |
31 | assert.is_true(run.luarocks_bool("unpack luasocket-3.0rc1-2.src.rock")) | 31 | assert.is_true(run.luarocks_bool("unpack luasocket-3.0rc1-2.src.rock")) |
32 | lfs.chdir("luasocket-3.0rc1-2/luasocket-3.0-rc1/") | 32 | lfs.chdir("luasocket-3.0rc1-2/luasocket-3.0-rc1/") |
33 | assert.is_true(run.luarocks_bool(test_env.quiet("make luasocket-3.0rc1-2.rockspec"))) | 33 | assert.is_true(run.luarocks_bool("make luasocket-3.0rc1-2.rockspec")) |
34 | 34 | ||
35 | -- test it | 35 | -- test it |
36 | assert.is_true(run.luarocks_bool(test_env.quiet("show luasocket"))) | 36 | assert.is_true(run.luarocks_bool("show luasocket")) |
37 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) | 37 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) |
38 | 38 | ||
39 | -- delete downloaded and unpacked files | 39 | -- delete downloaded and unpacked files |
@@ -69,7 +69,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
69 | test_env.copy("lxsh-0.8.6-2.rockspec", "rockspec") | 69 | test_env.copy("lxsh-0.8.6-2.rockspec", "rockspec") |
70 | assert.is_true(run.luarocks_bool("make")) | 70 | assert.is_true(run.luarocks_bool("make")) |
71 | 71 | ||
72 | assert.is_true(run.luarocks_bool(test_env.quiet("show lxsh"))) | 72 | assert.is_true(run.luarocks_bool("show lxsh")) |
73 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) | 73 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh/0.8.6-2/lxsh-0.8.6-2.rockspec")) |
74 | os.remove("rockspec") | 74 | os.remove("rockspec") |
75 | end) | 75 | end) |
@@ -94,7 +94,7 @@ describe("LuaRocks make tests #blackbox #b_make", function() | |||
94 | end) | 94 | end) |
95 | 95 | ||
96 | it("LuaRocks make pack binary rock", function() | 96 | it("LuaRocks make pack binary rock", function() |
97 | assert.is_true(run.luarocks_bool(test_env.quiet("make --deps-mode=none --pack-binary-rock"))) | 97 | assert.is_true(run.luarocks_bool("make --deps-mode=none --pack-binary-rock")) |
98 | assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock")) | 98 | assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock")) |
99 | end) | 99 | end) |
100 | end) | 100 | end) |