diff options
author | George Roman <george.roman.99@gmail.com> | 2018-07-04 01:00:58 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-05 15:51:35 -0300 |
commit | d9f09ba8c9630e93331a45722ad1d2d9fb5f4aa4 (patch) | |
tree | e6bebd0d59228901007cc6e4bff846edd07a15be /spec/build_spec.lua | |
parent | cfabbfb04ed77647f68689acb0457c8f9e555ad5 (diff) | |
download | luarocks-d9f09ba8c9630e93331a45722ad1d2d9fb5f4aa4.tar.gz luarocks-d9f09ba8c9630e93331a45722ad1d2d9fb5f4aa4.tar.bz2 luarocks-d9f09ba8c9630e93331a45722ad1d2d9fb5f4aa4.zip |
Tests: remove redundant build tests
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 03f60d18..53c338f9 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -17,10 +17,8 @@ local extra_rocks = { | |||
17 | "/lpeg-1.0.0-1.rockspec", | 17 | "/lpeg-1.0.0-1.rockspec", |
18 | "/lpeg-1.0.0-1.src.rock", | 18 | "/lpeg-1.0.0-1.src.rock", |
19 | "/lpty-1.0.1-1.src.rock", | 19 | "/lpty-1.0.1-1.src.rock", |
20 | "/luadoc-3.0.1-1.src.rock", | ||
21 | "/luafilesystem-1.6.3-1.src.rock", | 20 | "/luafilesystem-1.6.3-1.src.rock", |
22 | "/lualogging-1.3.0-1.src.rock", | 21 | "/lualogging-1.3.0-1.src.rock", |
23 | "/luarepl-0.4-1.src.rock", | ||
24 | "/luasec-0.6-1.rockspec", | 22 | "/luasec-0.6-1.rockspec", |
25 | "/luasocket-3.0rc1-2.src.rock", | 23 | "/luasocket-3.0rc1-2.src.rock", |
26 | "/luasocket-3.0rc1-2.rockspec", | 24 | "/luasocket-3.0rc1-2.rockspec", |
@@ -130,10 +128,6 @@ describe("LuaRocks build tests #integration", function() | |||
130 | end) | 128 | end) |
131 | 129 | ||
132 | describe("LuaRocks build - basic builds", function() | 130 | describe("LuaRocks build - basic builds", function() |
133 | it("LuaRocks build luadoc", function() | ||
134 | assert.is_true(run.luarocks_bool("build luadoc")) | ||
135 | end) | ||
136 | |||
137 | it("LuaRocks build luacov diff version", function() | 131 | it("LuaRocks build luacov diff version", function() |
138 | assert.is_true(run.luarocks_bool("build luacov 0.11.0-1")) | 132 | assert.is_true(run.luarocks_bool("build luacov 0.11.0-1")) |
139 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.11.0-1/luacov-0.11.0-1.rockspec")) | 133 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.11.0-1/luacov-0.11.0-1.rockspec")) |
@@ -144,11 +138,6 @@ describe("LuaRocks build tests #integration", function() | |||
144 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/stdlib/41.0.0-1/stdlib-41.0.0-1.rockspec")) | 138 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/stdlib/41.0.0-1/stdlib-41.0.0-1.rockspec")) |
145 | end) | 139 | end) |
146 | 140 | ||
147 | it("LuaRocks build install bin luarepl", function() | ||
148 | assert.is_true(run.luarocks_bool("build luarepl")) | ||
149 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luarepl/0.4-1/luarepl-0.4-1.rockspec")) | ||
150 | end) | ||
151 | |||
152 | it("LuaRocks build supported platforms lpty", function() | 141 | it("LuaRocks build supported platforms lpty", function() |
153 | if test_env.TEST_TARGET_OS == "windows" then | 142 | if test_env.TEST_TARGET_OS == "windows" then |
154 | assert.is_false(run.luarocks_bool("build lpty")) --Error: This rockspec for lpty does not support win32, windows platforms | 143 | assert.is_false(run.luarocks_bool("build lpty")) --Error: This rockspec for lpty does not support win32, windows platforms |
@@ -244,16 +233,6 @@ describe("LuaRocks build tests #integration", function() | |||
244 | assert.is_true(os.remove("lxsh-0.8.6-2.src.rock")) | 233 | assert.is_true(os.remove("lxsh-0.8.6-2.src.rock")) |
245 | end) | 234 | end) |
246 | 235 | ||
247 | it("LuaRocks build no https", function() | ||
248 | assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) | ||
249 | assert.is_true(run.luarocks_bool("build validate-args-1.5.4-1.rockspec")) | ||
250 | |||
251 | assert.is.truthy(run.luarocks("show validate-args")) | ||
252 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/validate-args/1.5.4-1/validate-args-1.5.4-1.rockspec")) | ||
253 | |||
254 | assert.is_true(os.remove("validate-args-1.5.4-1.rockspec")) | ||
255 | end) | ||
256 | |||
257 | it("LuaRocks build with https", function() | 236 | it("LuaRocks build with https", function() |
258 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR | 237 | local openssl_dirs = "OPENSSL_INCDIR=" .. test_env.OPENSSL_INCDIR .. " OPENSSL_LIBDIR=" .. test_env.OPENSSL_LIBDIR |
259 | assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) | 238 | assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) |
@@ -320,28 +299,6 @@ describe("LuaRocks build tests #integration", function() | |||
320 | assert.is.truthy(run.luarocks("show a_rock")) | 299 | assert.is.truthy(run.luarocks("show a_rock")) |
321 | end) | 300 | end) |
322 | 301 | ||
323 | it("'builtin' detects lua files if modules are not given", function() | ||
324 | local rockspec = "autodetect-1.0-1.rockspec" | ||
325 | test_env.write_file(rockspec, [[ | ||
326 | rockspec_format = "3.0" | ||
327 | package = "autodetect" | ||
328 | version = "1.0-1" | ||
329 | source = { | ||
330 | url = "file://autodetect/bla.lua" | ||
331 | } | ||
332 | description = { | ||
333 | summary = "An example rockspec", | ||
334 | } | ||
335 | dependencies = { | ||
336 | "lua >= 5.1" | ||
337 | } | ||
338 | build = { | ||
339 | } | ||
340 | ]], finally) | ||
341 | assert.truthy(run.luarocks_bool("build " .. rockspec)) | ||
342 | assert.match("bla.lua", run.luarocks("show autodetect")) | ||
343 | end) | ||
344 | |||
345 | it("'builtin' detects lua files if build is not given", function() | 302 | it("'builtin' detects lua files if build is not given", function() |
346 | local rockspec = "autodetect-1.0-1.rockspec" | 303 | local rockspec = "autodetect-1.0-1.rockspec" |
347 | test_env.write_file(rockspec, [[ | 304 | test_env.write_file(rockspec, [[ |