aboutsummaryrefslogtreecommitdiff
path: root/spec/make_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/make_spec.lua')
-rw-r--r--spec/make_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua
index 2821c143..e684033a 100644
--- a/spec/make_spec.lua
+++ b/spec/make_spec.lua
@@ -27,13 +27,13 @@ describe("LuaRocks make tests #blackbox #b_make", function()
27 27
28 it("LuaRocks make with rockspec", function() 28 it("LuaRocks make with rockspec", function()
29 -- make luasocket 29 -- make luasocket
30 assert.is_true(run.luarocks_bool("download --source luasocket")) 30 assert.is_true(run.luarocks_bool("download --source luasocket 3.0rc1-1"))
31 assert.is_true(run.luarocks_bool("unpack luasocket-3.0rc1-1.src.rock")) 31 assert.is_true(run.luarocks_bool("unpack luasocket-3.0rc1-1.src.rock"))
32 lfs.chdir("luasocket-3.0rc1-1/luasocket-3.0-rc1/") 32 lfs.chdir("luasocket-3.0rc1-1/luasocket-3.0-rc1/")
33 assert.is_true(run.luarocks_bool("make luasocket-3.0rc1-1.rockspec")) 33 assert.is_true(run.luarocks_bool(test_env.quiet("make luasocket-3.0rc1-1.rockspec")))
34 34
35 -- test it 35 -- test it
36 assert.is_true(run.luarocks_bool("show luasocket")) 36 assert.is_true(run.luarocks_bool(test_env.quiet("show luasocket")))
37 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket")) 37 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/luasocket"))
38 38
39 -- delete downloaded and unpacked files 39 -- delete downloaded and unpacked files
@@ -61,7 +61,7 @@ describe("LuaRocks make tests #blackbox #b_make", function()
61 assert.is_true(run.luarocks_bool("new_version lxsh-0.8.6-2.rockspec")) 61 assert.is_true(run.luarocks_bool("new_version lxsh-0.8.6-2.rockspec"))
62 assert.is_true(run.luarocks_bool("make")) 62 assert.is_true(run.luarocks_bool("make"))
63 63
64 assert.is_true(run.luarocks_bool("show lxsh")) 64 assert.is_true(run.luarocks_bool(test_env.quiet("show lxsh")))
65 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh")) 65 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh"))
66 end) 66 end)
67 67
@@ -69,7 +69,7 @@ describe("LuaRocks make tests #blackbox #b_make", function()
69 os.execute("cp lxsh-0.8.6-2.rockspec rockspec") --rewrite with lfs 69 os.execute("cp lxsh-0.8.6-2.rockspec rockspec") --rewrite with lfs
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("show lxsh")) 72 assert.is_true(run.luarocks_bool(test_env.quiet("show lxsh")))
73 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh")) 73 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh"))
74 end) 74 end)
75 75
@@ -91,7 +91,7 @@ describe("LuaRocks make tests #blackbox #b_make", function()
91 end) 91 end)
92 92
93 it("LuaRocks make pack binary rock", function() 93 it("LuaRocks make pack binary rock", function()
94 assert.is_true(run.luarocks_bool("make --deps-mode=none --pack-binary-rock")) 94 assert.is_true(run.luarocks_bool(test_env.quiet("make --deps-mode=none --pack-binary-rock")))
95 assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock")) 95 assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock"))
96 end) 96 end)
97 end) 97 end)