From 9ddcd8df4af7f14abb60ec6512492ba20c8dbb4a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 22 Jul 2021 17:12:15 -0300 Subject: tests: bump luacov to 0.15.0 --- 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 | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'spec') diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 7dc4af03..b78d3ffb 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua @@ -138,8 +138,8 @@ describe("LuaRocks build #integration", function() describe("basic builds", function() it("luacov diff version", function() - 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")) + assert.is_true(run.luarocks_bool("build luacov 0.15.0-1")) + assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.15.0-1/luacov-0.15.0-1.rockspec")) end) it("command stdlib", function() diff --git a/spec/list_spec.lua b/spec/list_spec.lua index a3580094..875d72a4 100644 --- a/spec/list_spec.lua +++ b/spec/list_spec.lua @@ -22,13 +22,13 @@ describe("luarocks list #integration", function() it("--porcelain", function() local output = run.luarocks("list --porcelain") - assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) + assert.is.truthy(output:find("luacov\t0.15.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) end) it("shows version number", function() local output = run.luarocks("list") assert.is.truthy(output:find("luacov")) - assert.matches("0.13.0-1", output, 1, true) + assert.matches("0.15.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 830e4d11..f8795db0 100644 --- a/spec/new_version_spec.lua +++ b/spec/new_version_spec.lua @@ -41,8 +41,8 @@ describe("luarocks new_version #integration", function() describe("more complex tests", function() it("of luacov", function() - 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_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) + assert.is_true(run.luarocks_bool("new_version luacov-0.15.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 #integration", function() end) it("of luacov with tag", function() - 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_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) + assert.is_true(run.luarocks_bool("new_version luacov-0.15.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 380c2441..d07a8495 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.13.0--1.rockspec")) + assert.is.truthy(output:match("luacov--0.15.0--1.rockspec")) end) it("mversion of luacov", function() local output = run.luarocks("show --mversion luacov") - assert.is.truthy(output:match("0.13.0--1")) + assert.is.truthy(output:match("0.15.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.13.0") - run.luarocks_bool("show luacov 0.13.0") + run.luarocks("install luacov 0.15.0") + run.luarocks_bool("show luacov 0.15.0") end) it("can find by substring", function() diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 1585adac..35c27dc8 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -940,8 +940,8 @@ function test_env.main() end -- luacov is needed for both minimal or full environment - table.insert(urls, "/luacov-0.13.0-1.rockspec") - table.insert(urls, "/luacov-0.13.0-1.src.rock") + table.insert(urls, "/luacov-0.15.0-1.rockspec") + table.insert(urls, "/luacov-0.15.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") -- cgit v1.2.3-55-g6feb