summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-04-02 16:18:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2019-04-03 10:44:51 -0300
commit1ebc96ac47b72b9c7c226f14cd018ef5e4d62a74 (patch)
treef8c6c85191883077b1be62f542f99d256a5ba836 /spec
parent38c02b5e1e6c30733acc54736d1dc7369a0f3342 (diff)
downloadluarocks-1ebc96ac47b72b9c7c226f14cd018ef5e4d62a74.tar.gz
luarocks-1ebc96ac47b72b9c7c226f14cd018ef5e4d62a74.tar.bz2
luarocks-1ebc96ac47b72b9c7c226f14cd018ef5e4d62a74.zip
update to luacov 0.13.1 + cluacov 0.1.1
Diffstat (limited to 'spec')
-rw-r--r--spec/build_spec.lua4
-rw-r--r--spec/list_spec.lua4
-rw-r--r--spec/new_version_spec.lua8
-rw-r--r--spec/show_spec.lua8
-rw-r--r--spec/util/test_env.lua7
5 files changed, 17 insertions, 14 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 4bf0d96c..2cfdeace 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -141,8 +141,8 @@ describe("LuaRocks build tests #integration", function()
141 141
142 describe("LuaRocks build - basic builds", function() 142 describe("LuaRocks build - basic builds", function()
143 it("LuaRocks build luacov diff version", function() 143 it("LuaRocks build luacov diff version", function()
144 assert.is_true(run.luarocks_bool("build luacov 0.11.0-1")) 144 assert.is_true(run.luarocks_bool("build luacov 0.13.0-1"))
145 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.11.0-1/luacov-0.11.0-1.rockspec")) 145 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.13.0-1/luacov-0.13.0-1.rockspec"))
146 end) 146 end)
147 147
148 it("LuaRocks build command stdlib", function() 148 it("LuaRocks build command stdlib", function()
diff --git a/spec/list_spec.lua b/spec/list_spec.lua
index 9cf4f0a8..8e05c064 100644
--- a/spec/list_spec.lua
+++ b/spec/list_spec.lua
@@ -22,13 +22,13 @@ describe("LuaRocks list tests #integration", function()
22 22
23 it("LuaRocks list porcelain", function() 23 it("LuaRocks list porcelain", function()
24 local output = run.luarocks("list --porcelain") 24 local output = run.luarocks("list --porcelain")
25 assert.is.truthy(output:find("luacov\t0.11.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) 25 assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true))
26 end) 26 end)
27 27
28 it("LuaRocks list shows version number", function() 28 it("LuaRocks list shows version number", function()
29 local output = run.luarocks("list") 29 local output = run.luarocks("list")
30 assert.is.truthy(output:find("luacov")) 30 assert.is.truthy(output:find("luacov"))
31 assert.matches("0.11.0-1", output, 1, true) 31 assert.matches("0.13.0-1", output, 1, true)
32 end) 32 end)
33 33
34 it("LuaRocks install outdated and list it", function() 34 it("LuaRocks install outdated and list it", function()
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua
index 22506d3c..e8952f75 100644
--- a/spec/new_version_spec.lua
+++ b/spec/new_version_spec.lua
@@ -41,8 +41,8 @@ describe("LuaRocks new_version tests #integration", function()
41 41
42 describe("more complex tests", function() 42 describe("more complex tests", function()
43 it("of luacov", function() 43 it("of luacov", function()
44 assert.is_true(run.luarocks_bool("download --rockspec luacov 0.11.0")) 44 assert.is_true(run.luarocks_bool("download --rockspec luacov 0.13.0"))
45 assert.is_true(run.luarocks_bool("new_version luacov-0.11.0-1.rockspec 0.2")) 45 assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec 0.2"))
46 assert.is.truthy(lfs.attributes("luacov-0.2-1.rockspec")) 46 assert.is.truthy(lfs.attributes("luacov-0.2-1.rockspec"))
47 test_env.remove_files(lfs.currentdir(), "luacov%-") 47 test_env.remove_files(lfs.currentdir(), "luacov%-")
48 end) 48 end)
@@ -55,8 +55,8 @@ describe("LuaRocks new_version tests #integration", function()
55 end) 55 end)
56 56
57 it("of luacov with tag", function() 57 it("of luacov with tag", function()
58 assert.is_true(run.luarocks_bool("download --rockspec luacov 0.11.0")) 58 assert.is_true(run.luarocks_bool("download --rockspec luacov 0.13.0"))
59 assert.is_true(run.luarocks_bool("new_version luacov-0.11.0-1.rockspec --tag v0.3")) 59 assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec --tag v0.3"))
60 assert.is.truthy(lfs.attributes("luacov-0.3-1.rockspec")) 60 assert.is.truthy(lfs.attributes("luacov-0.3-1.rockspec"))
61 test_env.remove_files(lfs.currentdir(), "luacov%-") 61 test_env.remove_files(lfs.currentdir(), "luacov%-")
62 end) 62 end)
diff --git a/spec/show_spec.lua b/spec/show_spec.lua
index a721a692..a0987de0 100644
--- a/spec/show_spec.lua
+++ b/spec/show_spec.lua
@@ -48,12 +48,12 @@ describe("LuaRocks show #integration", function()
48 48
49 it("rockspec of luacov", function() 49 it("rockspec of luacov", function()
50 local output = run.luarocks("show --rockspec luacov") 50 local output = run.luarocks("show --rockspec luacov")
51 assert.is.truthy(output:match("luacov--0.11.0--1.rockspec")) 51 assert.is.truthy(output:match("luacov--0.13.0--1.rockspec"))
52 end) 52 end)
53 53
54 it("mversion of luacov", function() 54 it("mversion of luacov", function()
55 local output = run.luarocks("show --mversion luacov") 55 local output = run.luarocks("show --mversion luacov")
56 assert.is.truthy(output:match("0.11.0--1")) 56 assert.is.truthy(output:match("0.13.0--1"))
57 end) 57 end)
58 58
59 it("rock tree of luacov", function() 59 it("rock tree of luacov", function()
@@ -74,8 +74,8 @@ describe("LuaRocks show #integration", function()
74 end) 74 end)
75 75
76 it("old version of luacov", function() 76 it("old version of luacov", function()
77 run.luarocks("install luacov 0.11.0") 77 run.luarocks("install luacov 0.13.0")
78 run.luarocks_bool("show luacov 0.11.0") 78 run.luarocks_bool("show luacov 0.13.0")
79 end) 79 end)
80 80
81 it("shows #build_dependencies", function() 81 it("shows #build_dependencies", function()
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 9337c396..9ff0a470 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -926,9 +926,12 @@ function test_env.main()
926 end 926 end
927 927
928 -- luacov is needed for both minimal or full environment 928 -- luacov is needed for both minimal or full environment
929 table.insert(urls, "/luacov-0.11.0-1.rockspec") 929 table.insert(urls, "/luacov-0.13.0-1.rockspec")
930 table.insert(urls, "/luacov-0.11.0-1.src.rock") 930 table.insert(urls, "/luacov-0.13.0-1.src.rock")
931 table.insert(urls, "/cluacov-0.1.1-1.rockspec")
932 table.insert(urls, "/cluacov-0.1.1-1.src.rock")
931 table.insert(rocks, "luacov") 933 table.insert(rocks, "luacov")
934 table.insert(rocks, "cluacov")
932 935
933 -- Download rocks needed for LuaRocks testing environment 936 -- Download rocks needed for LuaRocks testing environment
934 lfs.mkdir(testing_paths.testing_server) 937 lfs.mkdir(testing_paths.testing_server)