diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-28 22:38:41 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-29 15:46:16 +0000 |
| commit | 0ca8c460e867356342180bb625760ed9201a5503 (patch) | |
| tree | 34a5b7c761cfdf1f0f14faf7a5e694ba98461457 | |
| parent | 5eb1e7a0845570c25585552068fde229da9e0b7a (diff) | |
| download | luarocks-0ca8c460e867356342180bb625760ed9201a5503.tar.gz luarocks-0ca8c460e867356342180bb625760ed9201a5503.tar.bz2 luarocks-0ca8c460e867356342180bb625760ed9201a5503.zip | |
tests: disable luacov runner tick
| -rw-r--r-- | spec/dummy_spec.lua | 2 | ||||
| -rw-r--r-- | spec/unit/build_spec.lua | 3 | ||||
| -rw-r--r-- | spec/unit/deps_spec.lua | 3 | ||||
| -rw-r--r-- | spec/unit/dir_spec.lua | 5 | ||||
| -rw-r--r-- | spec/unit/fetch_spec.lua | 5 | ||||
| -rw-r--r-- | spec/unit/fs_spec.lua | 7 | ||||
| -rw-r--r-- | spec/unit/fun_spec.lua | 5 | ||||
| -rw-r--r-- | spec/unit/loader_spec.lua | 7 | ||||
| -rw-r--r-- | spec/unit/persist_spec.lua | 7 | ||||
| -rw-r--r-- | spec/unit/test_spec.lua | 3 | ||||
| -rw-r--r-- | spec/unit/tools_spec.lua | 7 | ||||
| -rw-r--r-- | spec/unit/util_spec.lua | 5 |
12 files changed, 23 insertions, 36 deletions
diff --git a/spec/dummy_spec.lua b/spec/dummy_spec.lua index 85fc8932..9ddd669a 100644 --- a/spec/dummy_spec.lua +++ b/spec/dummy_spec.lua | |||
| @@ -21,4 +21,4 @@ require("luarocks.fetch.hg") | |||
| 21 | require("luarocks.fetch.sscm") | 21 | require("luarocks.fetch.sscm") |
| 22 | require("luarocks.fetch.svn") | 22 | require("luarocks.fetch.svn") |
| 23 | 23 | ||
| 24 | runner.shutdown() | 24 | runner.save_stats() |
diff --git a/spec/unit/build_spec.lua b/spec/unit/build_spec.lua index fb680858..3ef8eece 100644 --- a/spec/unit/build_spec.lua +++ b/spec/unit/build_spec.lua | |||
| @@ -32,7 +32,6 @@ describe("LuaRocks build #unit", function() | |||
| 32 | lazy_setup(function() | 32 | lazy_setup(function() |
| 33 | runner = require("luacov.runner") | 33 | runner = require("luacov.runner") |
| 34 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 34 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 35 | runner.tick = true | ||
| 36 | cfg.init() | 35 | cfg.init() |
| 37 | fs.init() | 36 | fs.init() |
| 38 | deps.check_lua_incdir(cfg.variables) | 37 | deps.check_lua_incdir(cfg.variables) |
| @@ -40,7 +39,7 @@ describe("LuaRocks build #unit", function() | |||
| 40 | end) | 39 | end) |
| 41 | 40 | ||
| 42 | lazy_teardown(function() | 41 | lazy_teardown(function() |
| 43 | runner.shutdown() | 42 | runner.save_stats() |
| 44 | end) | 43 | end) |
| 45 | 44 | ||
| 46 | describe("build.builtin", function() | 45 | describe("build.builtin", function() |
diff --git a/spec/unit/deps_spec.lua b/spec/unit/deps_spec.lua index b8c89a2d..3be80b91 100644 --- a/spec/unit/deps_spec.lua +++ b/spec/unit/deps_spec.lua | |||
| @@ -16,11 +16,10 @@ describe("LuaRocks deps #unit", function() | |||
| 16 | 16 | ||
| 17 | runner = require("luacov.runner") | 17 | runner = require("luacov.runner") |
| 18 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 18 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 19 | runner.tick = true | ||
| 20 | end) | 19 | end) |
| 21 | 20 | ||
| 22 | lazy_teardown(function() | 21 | lazy_teardown(function() |
| 23 | runner.shutdown() | 22 | runner.save_stats() |
| 24 | end) | 23 | end) |
| 25 | 24 | ||
| 26 | describe("deps", function() | 25 | describe("deps", function() |
diff --git a/spec/unit/dir_spec.lua b/spec/unit/dir_spec.lua index f340beea..da5d6389 100644 --- a/spec/unit/dir_spec.lua +++ b/spec/unit/dir_spec.lua | |||
| @@ -11,11 +11,10 @@ describe("luarocks.dir #unit", function() | |||
| 11 | setup(function() | 11 | setup(function() |
| 12 | runner = require("luacov.runner") | 12 | runner = require("luacov.runner") |
| 13 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 13 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 14 | runner.tick = true | ||
| 15 | end) | 14 | end) |
| 16 | 15 | ||
| 17 | teardown(function() | 16 | lazy_teardown(function() |
| 18 | runner.shutdown() | 17 | runner.save_stats() |
| 19 | end) | 18 | end) |
| 20 | 19 | ||
| 21 | describe("dir.is_basic_protocol", function() | 20 | describe("dir.is_basic_protocol", function() |
diff --git a/spec/unit/fetch_spec.lua b/spec/unit/fetch_spec.lua index c58e2cea..4fc01d80 100644 --- a/spec/unit/fetch_spec.lua +++ b/spec/unit/fetch_spec.lua | |||
| @@ -60,11 +60,10 @@ describe("luarocks fetch #unit", function() | |||
| 60 | 60 | ||
| 61 | runner = require("luacov.runner") | 61 | runner = require("luacov.runner") |
| 62 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 62 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 63 | runner.tick = true | ||
| 64 | end) | 63 | end) |
| 65 | 64 | ||
| 66 | teardown(function() | 65 | lazy_teardown(function() |
| 67 | runner.shutdown() | 66 | runner.save_stats() |
| 68 | end) | 67 | end) |
| 69 | 68 | ||
| 70 | 69 | ||
diff --git a/spec/unit/fs_spec.lua b/spec/unit/fs_spec.lua index 7643e9b5..5718aea4 100644 --- a/spec/unit/fs_spec.lua +++ b/spec/unit/fs_spec.lua | |||
| @@ -63,16 +63,15 @@ describe("luarocks.fs #unit", function() | |||
| 63 | 63 | ||
| 64 | local runner | 64 | local runner |
| 65 | 65 | ||
| 66 | setup(function() | 66 | lazy_setup(function() |
| 67 | cfg.init() | 67 | cfg.init() |
| 68 | fs.init() | 68 | fs.init() |
| 69 | runner = require("luacov.runner") | 69 | runner = require("luacov.runner") |
| 70 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 70 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 71 | runner.tick = true | ||
| 72 | end) | 71 | end) |
| 73 | 72 | ||
| 74 | teardown(function() | 73 | lazy_teardown(function() |
| 75 | runner.shutdown() | 74 | runner.save_stats() |
| 76 | end) | 75 | end) |
| 77 | 76 | ||
| 78 | describe("fs.Q", function() | 77 | describe("fs.Q", function() |
diff --git a/spec/unit/fun_spec.lua b/spec/unit/fun_spec.lua index c2b3e864..d7db1362 100644 --- a/spec/unit/fun_spec.lua +++ b/spec/unit/fun_spec.lua | |||
| @@ -9,11 +9,10 @@ describe("luarocks.fun #unit", function() | |||
| 9 | setup(function() | 9 | setup(function() |
| 10 | runner = require("luacov.runner") | 10 | runner = require("luacov.runner") |
| 11 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 11 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 12 | runner.tick = true | ||
| 13 | end) | 12 | end) |
| 14 | 13 | ||
| 15 | teardown(function() | 14 | lazy_teardown(function() |
| 16 | runner.shutdown() | 15 | runner.save_stats() |
| 17 | end) | 16 | end) |
| 18 | 17 | ||
| 19 | describe("fun.concat", function() | 18 | describe("fun.concat", function() |
diff --git a/spec/unit/loader_spec.lua b/spec/unit/loader_spec.lua index 7650c80c..cde30590 100644 --- a/spec/unit/loader_spec.lua +++ b/spec/unit/loader_spec.lua | |||
| @@ -1,12 +1,9 @@ | |||
| 1 | local test_env = require("spec.util.test_env") | 1 | local test_env = require("spec.util.test_env") |
| 2 | local run = test_env.run | 2 | local run = test_env.run |
| 3 | 3 | ||
| 4 | describe("luarocks.loader", function() | 4 | test_env.setup_specs() |
| 5 | |||
| 6 | before_each(function() | ||
| 7 | test_env.setup_specs() | ||
| 8 | end) | ||
| 9 | 5 | ||
| 6 | describe("luarocks.loader", function() | ||
| 10 | describe("#unit", function() | 7 | describe("#unit", function() |
| 11 | it("starts", function() | 8 | it("starts", function() |
| 12 | assert(run.lua_bool([[-e "require 'luarocks.loader'; print(package.loaded['luarocks.loaded'])"]])) | 9 | assert(run.lua_bool([[-e "require 'luarocks.loader'; print(package.loaded['luarocks.loaded'])"]])) |
diff --git a/spec/unit/persist_spec.lua b/spec/unit/persist_spec.lua index ea5985aa..ed78345e 100644 --- a/spec/unit/persist_spec.lua +++ b/spec/unit/persist_spec.lua | |||
| @@ -6,14 +6,13 @@ local persist = require("luarocks.persist") | |||
| 6 | describe("luarocks.persist #unit", function() | 6 | describe("luarocks.persist #unit", function() |
| 7 | local runner | 7 | local runner |
| 8 | 8 | ||
| 9 | setup(function() | 9 | lazy_setup(function() |
| 10 | runner = require("luacov.runner") | 10 | runner = require("luacov.runner") |
| 11 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 11 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 12 | runner.tick = true | ||
| 13 | end) | 12 | end) |
| 14 | 13 | ||
| 15 | teardown(function() | 14 | lazy_teardown(function() |
| 16 | runner.shutdown() | 15 | runner.save_stats() |
| 17 | end) | 16 | end) |
| 18 | 17 | ||
| 19 | describe("persist.save_from_table_to_string", function() | 18 | describe("persist.save_from_table_to_string", function() |
diff --git a/spec/unit/test_spec.lua b/spec/unit/test_spec.lua index 4d338984..4a31777e 100644 --- a/spec/unit/test_spec.lua +++ b/spec/unit/test_spec.lua | |||
| @@ -19,11 +19,10 @@ describe("LuaRocks test #unit", function() | |||
| 19 | fs.init() | 19 | fs.init() |
| 20 | runner = require("luacov.runner") | 20 | runner = require("luacov.runner") |
| 21 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 21 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 22 | runner.tick = true | ||
| 23 | end) | 22 | end) |
| 24 | 23 | ||
| 25 | lazy_teardown(function() | 24 | lazy_teardown(function() |
| 26 | runner.shutdown() | 25 | runner.save_stats() |
| 27 | end) | 26 | end) |
| 28 | 27 | ||
| 29 | local tmpdir | 28 | local tmpdir |
diff --git a/spec/unit/tools_spec.lua b/spec/unit/tools_spec.lua index 0863c316..5b85c86a 100644 --- a/spec/unit/tools_spec.lua +++ b/spec/unit/tools_spec.lua | |||
| @@ -147,16 +147,15 @@ local invalid_patch3 = | |||
| 147 | describe("Luarocks patch test #unit", function() | 147 | describe("Luarocks patch test #unit", function() |
| 148 | local runner | 148 | local runner |
| 149 | 149 | ||
| 150 | setup(function() | 150 | lazy_setup(function() |
| 151 | cfg.init() | 151 | cfg.init() |
| 152 | fs.init() | 152 | fs.init() |
| 153 | runner = require("luacov.runner") | 153 | runner = require("luacov.runner") |
| 154 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 154 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 155 | runner.tick = true | ||
| 156 | end) | 155 | end) |
| 157 | 156 | ||
| 158 | teardown(function() | 157 | lazy_teardown(function() |
| 159 | runner.shutdown() | 158 | runner.save_stats() |
| 160 | end) | 159 | end) |
| 161 | 160 | ||
| 162 | describe("patch.read_patch", function() | 161 | describe("patch.read_patch", function() |
diff --git a/spec/unit/util_spec.lua b/spec/unit/util_spec.lua index 0e380f2a..bb427b3e 100644 --- a/spec/unit/util_spec.lua +++ b/spec/unit/util_spec.lua | |||
| @@ -11,11 +11,10 @@ describe("luarocks.util #unit", function() | |||
| 11 | setup(function() | 11 | setup(function() |
| 12 | runner = require("luacov.runner") | 12 | runner = require("luacov.runner") |
| 13 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 13 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 14 | runner.tick = true | ||
| 15 | end) | 14 | end) |
| 16 | 15 | ||
| 17 | teardown(function() | 16 | lazy_teardown(function() |
| 18 | runner.shutdown() | 17 | runner.save_stats() |
| 19 | end) | 18 | end) |
| 20 | 19 | ||
| 21 | describe("util.variable_substitutions", function() | 20 | describe("util.variable_substitutions", function() |
