From 1ebc96ac47b72b9c7c226f14cd018ef5e4d62a74 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 2 Apr 2019 16:18:51 -0300 Subject: update to luacov 0.13.1 + cluacov 0.1.1 --- spec/build_spec.lua | 4 ++-- spec/list_spec.lua | 4 ++-- spec/new_version_spec.lua | 8 ++++---- spec/show_spec.lua | 8 ++++---- spec/util/test_env.lua | 7 +++++-- 5 files changed, 17 insertions(+), 14 deletions(-) (limited to 'spec') 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() describe("LuaRocks build - basic builds", function() it("LuaRocks build luacov diff version", function() - assert.is_true(run.luarocks_bool("build luacov 0.11.0-1")) - assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.11.0-1/luacov-0.11.0-1.rockspec")) + assert.is_true(run.luarocks_bool("build luacov 0.13.0-1")) + assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.13.0-1/luacov-0.13.0-1.rockspec")) end) 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() it("LuaRocks list porcelain", function() local output = run.luarocks("list --porcelain") - assert.is.truthy(output:find("luacov\t0.11.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) + assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) end) it("LuaRocks list shows version number", function() local output = run.luarocks("list") assert.is.truthy(output:find("luacov")) - assert.matches("0.11.0-1", output, 1, true) + assert.matches("0.13.0-1", output, 1, true) end) 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() describe("more complex tests", function() it("of luacov", function() - assert.is_true(run.luarocks_bool("download --rockspec luacov 0.11.0")) - assert.is_true(run.luarocks_bool("new_version luacov-0.11.0-1.rockspec 0.2")) + assert.is_true(run.luarocks_bool("download --rockspec luacov 0.13.0")) + assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec 0.2")) assert.is.truthy(lfs.attributes("luacov-0.2-1.rockspec")) test_env.remove_files(lfs.currentdir(), "luacov%-") end) @@ -55,8 +55,8 @@ describe("LuaRocks new_version tests #integration", function() end) it("of luacov with tag", function() - assert.is_true(run.luarocks_bool("download --rockspec luacov 0.11.0")) - assert.is_true(run.luarocks_bool("new_version luacov-0.11.0-1.rockspec --tag v0.3")) + assert.is_true(run.luarocks_bool("download --rockspec luacov 0.13.0")) + assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec --tag v0.3")) assert.is.truthy(lfs.attributes("luacov-0.3-1.rockspec")) test_env.remove_files(lfs.currentdir(), "luacov%-") 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() it("rockspec of luacov", function() local output = run.luarocks("show --rockspec luacov") - assert.is.truthy(output:match("luacov--0.11.0--1.rockspec")) + assert.is.truthy(output:match("luacov--0.13.0--1.rockspec")) end) it("mversion of luacov", function() local output = run.luarocks("show --mversion luacov") - assert.is.truthy(output:match("0.11.0--1")) + assert.is.truthy(output:match("0.13.0--1")) end) it("rock tree of luacov", function() @@ -74,8 +74,8 @@ describe("LuaRocks show #integration", function() end) it("old version of luacov", function() - run.luarocks("install luacov 0.11.0") - run.luarocks_bool("show luacov 0.11.0") + run.luarocks("install luacov 0.13.0") + run.luarocks_bool("show luacov 0.13.0") end) 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() end -- luacov is needed for both minimal or full environment - table.insert(urls, "/luacov-0.11.0-1.rockspec") - table.insert(urls, "/luacov-0.11.0-1.src.rock") + table.insert(urls, "/luacov-0.13.0-1.rockspec") + table.insert(urls, "/luacov-0.13.0-1.src.rock") + table.insert(urls, "/cluacov-0.1.1-1.rockspec") + table.insert(urls, "/cluacov-0.1.1-1.src.rock") table.insert(rocks, "luacov") + table.insert(rocks, "cluacov") -- Download rocks needed for LuaRocks testing environment lfs.mkdir(testing_paths.testing_server) -- cgit v1.2.3-55-g6feb