diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2021-07-22 17:12:15 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-07-22 17:12:15 -0300 |
commit | 9ddcd8df4af7f14abb60ec6512492ba20c8dbb4a (patch) | |
tree | 6994145fb79bbfcf4c1f20f71913da13aee4d250 /spec | |
parent | d4e82aae9f411d5d2cac10f7e043a0c3c6180eb1 (diff) | |
download | luarocks-9ddcd8df4af7f14abb60ec6512492ba20c8dbb4a.tar.gz luarocks-9ddcd8df4af7f14abb60ec6512492ba20c8dbb4a.tar.bz2 luarocks-9ddcd8df4af7f14abb60ec6512492ba20c8dbb4a.zip |
tests: bump luacov to 0.15.0
Diffstat (limited to 'spec')
-rw-r--r-- | spec/build_spec.lua | 4 | ||||
-rw-r--r-- | spec/list_spec.lua | 4 | ||||
-rw-r--r-- | spec/new_version_spec.lua | 8 | ||||
-rw-r--r-- | spec/show_spec.lua | 8 | ||||
-rw-r--r-- | spec/util/test_env.lua | 4 |
5 files changed, 14 insertions, 14 deletions
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() | |||
138 | 138 | ||
139 | describe("basic builds", function() | 139 | describe("basic builds", function() |
140 | it("luacov diff version", function() | 140 | it("luacov diff version", function() |
141 | assert.is_true(run.luarocks_bool("build luacov 0.13.0-1")) | 141 | assert.is_true(run.luarocks_bool("build luacov 0.15.0-1")) |
142 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.13.0-1/luacov-0.13.0-1.rockspec")) | 142 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luacov/0.15.0-1/luacov-0.15.0-1.rockspec")) |
143 | end) | 143 | end) |
144 | 144 | ||
145 | it("command stdlib", function() | 145 | 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() | |||
22 | 22 | ||
23 | it("--porcelain", function() | 23 | it("--porcelain", function() |
24 | local output = run.luarocks("list --porcelain") | 24 | local output = run.luarocks("list --porcelain") |
25 | assert.is.truthy(output:find("luacov\t0.13.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) | 25 | assert.is.truthy(output:find("luacov\t0.15.0-1\tinstalled\t" .. testing_paths.testing_sys_rocks, 1, true)) |
26 | end) | 26 | end) |
27 | 27 | ||
28 | it("shows version number", function() | 28 | it("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.13.0-1", output, 1, true) | 31 | assert.matches("0.15.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 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() | |||
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.13.0")) | 44 | assert.is_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) |
45 | assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec 0.2")) | 45 | assert.is_true(run.luarocks_bool("new_version luacov-0.15.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 #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.13.0")) | 58 | assert.is_true(run.luarocks_bool("download --rockspec luacov 0.15.0")) |
59 | assert.is_true(run.luarocks_bool("new_version luacov-0.13.0-1.rockspec --tag v0.3")) | 59 | assert.is_true(run.luarocks_bool("new_version luacov-0.15.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 380c2441..d07a8495 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.13.0--1.rockspec")) | 51 | assert.is.truthy(output:match("luacov--0.15.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.13.0--1")) | 56 | assert.is.truthy(output:match("0.15.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.13.0") | 77 | run.luarocks("install luacov 0.15.0") |
78 | run.luarocks_bool("show luacov 0.13.0") | 78 | run.luarocks_bool("show luacov 0.15.0") |
79 | end) | 79 | end) |
80 | 80 | ||
81 | it("can find by substring", function() | 81 | 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() | |||
940 | end | 940 | end |
941 | 941 | ||
942 | -- luacov is needed for both minimal or full environment | 942 | -- luacov is needed for both minimal or full environment |
943 | table.insert(urls, "/luacov-0.13.0-1.rockspec") | 943 | table.insert(urls, "/luacov-0.15.0-1.rockspec") |
944 | table.insert(urls, "/luacov-0.13.0-1.src.rock") | 944 | table.insert(urls, "/luacov-0.15.0-1.src.rock") |
945 | table.insert(urls, "/cluacov-0.1.1-1.rockspec") | 945 | table.insert(urls, "/cluacov-0.1.1-1.rockspec") |
946 | table.insert(urls, "/cluacov-0.1.1-1.src.rock") | 946 | table.insert(urls, "/cluacov-0.1.1-1.src.rock") |
947 | table.insert(rocks, "luacov") | 947 | table.insert(rocks, "luacov") |