diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2017-12-19 12:49:57 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2017-12-19 12:49:57 -0200 |
commit | b5365b9af7280a1f0810226559c88ec84bcb8395 (patch) | |
tree | 91f53094b97225434882649205ae2cad294189e5 /spec/write_rockspec_spec.lua | |
parent | a9e5469bcd85e0627576e56ff07aa17203954c31 (diff) | |
download | luarocks-b5365b9af7280a1f0810226559c88ec84bcb8395.tar.gz luarocks-b5365b9af7280a1f0810226559c88ec84bcb8395.tar.bz2 luarocks-b5365b9af7280a1f0810226559c88ec84bcb8395.zip |
Tests: fix write_rockspec tests wrt scm -> dev
Diffstat (limited to 'spec/write_rockspec_spec.lua')
-rw-r--r-- | spec/write_rockspec_spec.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index 531d11eb..380b6323 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
@@ -13,7 +13,7 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
13 | describe("LuaRocks write_rockspec basic tests", function() | 13 | describe("LuaRocks write_rockspec basic tests", function() |
14 | it("LuaRocks write_rockspec with no flags/arguments", function() | 14 | it("LuaRocks write_rockspec with no flags/arguments", function() |
15 | assert.is_true(run.luarocks_bool("write_rockspec")) | 15 | assert.is_true(run.luarocks_bool("write_rockspec")) |
16 | os.remove("luarocks-scm-1.rockspec") | 16 | os.remove("luarocks-dev-1.rockspec") |
17 | end) | 17 | end) |
18 | 18 | ||
19 | it("LuaRocks write_rockspec with invalid argument", function() | 19 | it("LuaRocks write_rockspec with invalid argument", function() |
@@ -28,8 +28,8 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
28 | describe("LuaRocks write_rockspec more complex tests", function() | 28 | describe("LuaRocks write_rockspec more complex tests", function() |
29 | it("LuaRocks write_rockspec git luarocks", function() | 29 | it("LuaRocks write_rockspec git luarocks", function() |
30 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/keplerproject/luarocks")) | 30 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/keplerproject/luarocks")) |
31 | assert.is.truthy(lfs.attributes("luarocks-scm-1.rockspec")) | 31 | assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) |
32 | assert.is_true(os.remove("luarocks-scm-1.rockspec")) | 32 | assert.is_true(os.remove("luarocks-dev-1.rockspec")) |
33 | end) | 33 | end) |
34 | 34 | ||
35 | it("LuaRocks write_rockspec git luarocks --tag=v2.3.0", function() | 35 | it("LuaRocks write_rockspec git luarocks --tag=v2.3.0", function() |
@@ -39,16 +39,16 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
39 | end) | 39 | end) |
40 | 40 | ||
41 | it("LuaRocks write_rockspec git luarocks with format flag", function() | 41 | it("LuaRocks write_rockspec git luarocks with format flag", function() |
42 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/mbalmer/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2")) | 42 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2")) |
43 | assert.is.truthy(lfs.attributes("luarocks-scm-1.rockspec")) | 43 | assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) |
44 | assert.is_true(os.remove("luarocks-scm-1.rockspec")) | 44 | assert.is_true(os.remove("luarocks-dev-1.rockspec")) |
45 | end) | 45 | end) |
46 | 46 | ||
47 | it("LuaRocks write_rockspec git luarocks with full flags", function() | 47 | it("LuaRocks write_rockspec git luarocks with full flags", function() |
48 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/mbalmer/luarocks --lua-version=5.1,5.2 --license=\"MIT/X11\" " | 48 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/luarocks --lua-version=5.1,5.2 --license=\"MIT/X11\" " |
49 | .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" ")) | 49 | .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" ")) |
50 | assert.is.truthy(lfs.attributes("luarocks-scm-1.rockspec")) | 50 | assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) |
51 | assert.is_true(os.remove("luarocks-scm-1.rockspec")) | 51 | assert.is_true(os.remove("luarocks-dev-1.rockspec")) |
52 | end) | 52 | end) |
53 | 53 | ||
54 | it("LuaRocks write_rockspec rockspec via http", function() | 54 | it("LuaRocks write_rockspec rockspec via http", function() |
@@ -65,8 +65,8 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
65 | 65 | ||
66 | it("LuaRocks write_rockspec git luafcgi with many flags", function() | 66 | it("LuaRocks write_rockspec git luafcgi with many flags", function() |
67 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license=\"3-clause BSD\" " .. "--lua-version=5.1,5.2")) | 67 | assert.is_true(run.luarocks_bool("write_rockspec git://github.com/mbalmer/luafcgi --lib=fcgi --license=\"3-clause BSD\" " .. "--lua-version=5.1,5.2")) |
68 | assert.is.truthy(lfs.attributes("luafcgi-scm-1.rockspec")) -- TODO maybe read it content and find arguments from flags? | 68 | assert.is.truthy(lfs.attributes("luafcgi-dev-1.rockspec")) -- TODO maybe read it content and find arguments from flags? |
69 | assert.is_true(os.remove("luafcgi-scm-1.rockspec")) | 69 | assert.is_true(os.remove("luafcgi-dev-1.rockspec")) |
70 | end) | 70 | end) |
71 | end) | 71 | end) |
72 | end) | 72 | end) |