aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/add_spec.lua4
-rw-r--r--spec/build_spec.lua1
-rw-r--r--spec/config_spec.lua3
-rw-r--r--spec/deps_spec.lua3
-rw-r--r--spec/doc_spec.lua2
-rw-r--r--spec/download_spec.lua1
-rw-r--r--spec/fetch_spec.lua3
-rw-r--r--spec/help_spec.lua4
-rw-r--r--spec/install_spec.lua3
-rw-r--r--spec/lint_spec.lua4
-rw-r--r--spec/list_spec.lua2
-rw-r--r--spec/make_manifest_spec.lua4
-rw-r--r--spec/make_spec.lua3
-rw-r--r--spec/new_version_spec.lua3
-rw-r--r--spec/pack_spec.lua1
-rw-r--r--spec/path_spec.lua2
-rw-r--r--spec/purge_spec.lua2
-rw-r--r--spec/refresh_cache_spec.lua4
-rw-r--r--spec/remove_spec.lua3
-rw-r--r--spec/search_spec.lua4
-rw-r--r--spec/show_spec.lua2
-rw-r--r--spec/unpack_spec.lua2
-rw-r--r--spec/upload_spec.lua2
23 files changed, 13 insertions, 49 deletions
diff --git a/spec/add_spec.lua b/spec/add_spec.lua
index e417f974..5d020859 100644
--- a/spec/add_spec.lua
+++ b/spec/add_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local add = require("luarocks.add")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/luasocket-3.0rc1-1.src.rock", 6 "/luasocket-3.0rc1-1.src.rock",
@@ -43,4 +41,4 @@ expose("LuaRocks add tests #blackbox #b_add", function()
43 assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "luasocket-3.0rc1-1.src.rock")) 41 assert.is_false(run.luarocks_admin_bool("--server=\"localhost@/tmp/luarocks_testing\" add " .. testing_paths.testing_server .. "luasocket-3.0rc1-1.src.rock"))
44 end) 42 end)
45 end) 43 end)
46end) \ No newline at end of file 44end)
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 6665de0b..ee88cce4 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local build = require("luarocks.build")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/lmathx-20120430.51-1.src.rock", 7 "/lmathx-20120430.51-1.src.rock",
diff --git a/spec/config_spec.lua b/spec/config_spec.lua
index f6cabd8c..a7842811 100644
--- a/spec/config_spec.lua
+++ b/spec/config_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local cfg = require("luarocks.cfg")
6 5
7expose("LuaRocks config tests #blackbox #b_config", function() 6expose("LuaRocks config tests #blackbox #b_config", function()
8 7
@@ -87,4 +86,4 @@ expose("LuaRocks config tests #blackbox #b_config", function()
87 test_env.remove_dir(testing_paths.testing_lrprefix) 86 test_env.remove_dir(testing_paths.testing_lrprefix)
88 end) 87 end)
89 end) 88 end)
90end) \ No newline at end of file 89end)
diff --git a/spec/deps_spec.lua b/spec/deps_spec.lua
index ce784080..3a0cda74 100644
--- a/spec/deps_spec.lua
+++ b/spec/deps_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local deps = require("luarocks.deps")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/lxsh-0.8.6-2.src.rock", 7 "/lxsh-0.8.6-2.src.rock",
@@ -112,4 +111,4 @@ expose("LuaRocks deps tests #blackbox #b_deps", function()
112 assert.is.falsy(lfs.attributes(testing_paths.testing_tree .. "/lib/luarocks/rocks/lxsh")) 111 assert.is.falsy(lfs.attributes(testing_paths.testing_tree .. "/lib/luarocks/rocks/lxsh"))
113 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh")) 112 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/lxsh"))
114 end) 113 end)
115end) \ No newline at end of file 114end)
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua
index 476b8ea8..d0d6ff1e 100644
--- a/spec/doc_spec.lua
+++ b/spec/doc_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local doc = require("luarocks.doc")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/luarepl-0.4-1.src.rock" 6 "/luarepl-0.4-1.src.rock"
diff --git a/spec/download_spec.lua b/spec/download_spec.lua
index 9b5d9e2e..d1216d33 100644
--- a/spec/download_spec.lua
+++ b/spec/download_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local download = require("luarocks.download")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/validate-args-1.5.4-1.rockspec" 7 "/validate-args-1.5.4-1.rockspec"
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index 1f298733..05a709e4 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -1,5 +1,4 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local fetch = require("luarocks.fetch") 4local fetch = require("luarocks.fetch")
@@ -13,4 +12,4 @@ describe("Luarocks fetch test #whitebox #w_fetch", function()
13 assert.are.same("parser.moon", fetch.url_to_base_dir("git://github.com/Cirru/parser.moon")) 12 assert.are.same("parser.moon", fetch.url_to_base_dir("git://github.com/Cirru/parser.moon"))
14 assert.are.same("v0.3", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3")) 13 assert.are.same("v0.3", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3"))
15 end) 14 end)
16end) \ No newline at end of file 15end)
diff --git a/spec/help_spec.lua b/spec/help_spec.lua
index 0f40dd38..08f6f1f1 100644
--- a/spec/help_spec.lua
+++ b/spec/help_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local help = require("luarocks.help")
6 4
7expose("LuaRocks help tests #blackbox #b_help", function() 5expose("LuaRocks help tests #blackbox #b_help", function()
8 6
@@ -26,4 +24,4 @@ expose("LuaRocks help tests #blackbox #b_help", function()
26 it("LuaRocks-admin help with no flags/arguments", function() 24 it("LuaRocks-admin help with no flags/arguments", function()
27 assert.is_true(run.luarocks_admin_bool("help")) 25 assert.is_true(run.luarocks_admin_bool("help"))
28 end) 26 end)
29end) \ No newline at end of file 27end)
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index 306bbbc1..a598f324 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local install = require("luarocks.install")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/cprint-0.1-2.src.rock", 7 "/cprint-0.1-2.src.rock",
@@ -127,4 +126,4 @@ expose("LuaRocks install tests #blackbox #b_install", function()
127 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.0-1")) 126 assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/luarocks/rocks/say/1.0-1"))
128 end) 127 end)
129 end) 128 end)
130end) \ No newline at end of file 129end)
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua
index cba80a3e..58c87c4e 100644
--- a/spec/lint_spec.lua
+++ b/spec/lint_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local lint = require("luarocks.lint")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/validate-args-1.5.4-1.rockspec" 6 "/validate-args-1.5.4-1.rockspec"
@@ -48,4 +46,4 @@ expose("LuaRocks lint tests #blackbox #b_lint", function()
48 assert.is_false(run.luarocks_bool("lint " .. testing_paths.testing_dir .. "/testfiles/no_build_table-1.0-1.rockspec")) 46 assert.is_false(run.luarocks_bool("lint " .. testing_paths.testing_dir .. "/testfiles/no_build_table-1.0-1.rockspec"))
49 end) 47 end)
50 end) 48 end)
51end) \ No newline at end of file 49end)
diff --git a/spec/list_spec.lua b/spec/list_spec.lua
index 545483df..edc310ca 100644
--- a/spec/list_spec.lua
+++ b/spec/list_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local list = require("luarocks.list")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/say-1.0-1.src.rock", 6 "/say-1.0-1.src.rock",
diff --git a/spec/make_manifest_spec.lua b/spec/make_manifest_spec.lua
index c6cb1328..a5b19eff 100644
--- a/spec/make_manifest_spec.lua
+++ b/spec/make_manifest_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local make_manifest = require("luarocks.make_manifest")
6 4
7expose("LuaRocks make_manifest tests #blackbox #b_make_manifest", function() 5expose("LuaRocks make_manifest tests #blackbox #b_make_manifest", function()
8 6
@@ -16,4 +14,4 @@ expose("LuaRocks make_manifest tests #blackbox #b_make_manifest", function()
16 assert.is_true(run.luarocks_admin_bool("make_manifest")) 14 assert.is_true(run.luarocks_admin_bool("make_manifest"))
17 end) 15 end)
18 end) 16 end)
19end) \ No newline at end of file 17end)
diff --git a/spec/make_spec.lua b/spec/make_spec.lua
index f70bb7e9..b0177fc5 100644
--- a/spec/make_spec.lua
+++ b/spec/make_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local make = require("luarocks.make")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/lpeg-0.12-1.src.rock", 7 "/lpeg-0.12-1.src.rock",
@@ -96,4 +95,4 @@ expose("LuaRocks make tests #blackbox #b_make", function()
96 assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock")) 95 assert.is.truthy(lfs.attributes("lxsh-0.8.6-2.all.rock"))
97 end) 96 end)
98 end) 97 end)
99end) \ No newline at end of file 98end)
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua
index 57014226..685d31b4 100644
--- a/spec/new_version_spec.lua
+++ b/spec/new_version_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local new_version = require("luarocks.new_version")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/abelhas-1.0-1.rockspec" 7 "/abelhas-1.0-1.rockspec"
@@ -50,4 +49,4 @@ expose("LuaRocks new_version tests #blackbox #b_new_version", function()
50 test_env.remove_files(lfs.currentdir(), "luacov--") 49 test_env.remove_files(lfs.currentdir(), "luacov--")
51 end) 50 end)
52 end) 51 end)
53end) \ No newline at end of file 52end)
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua
index a07e7ed2..39d8bc5c 100644
--- a/spec/pack_spec.lua
+++ b/spec/pack_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local pack = require("luarocks.pack")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/luasec-0.6-1.rockspec", 7 "/luasec-0.6-1.rockspec",
diff --git a/spec/path_spec.lua b/spec/path_spec.lua
index 266ada89..cffc186b 100644
--- a/spec/path_spec.lua
+++ b/spec/path_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local path = require("luarocks.path")
6 4
7expose("LuaRocks path tests #blackbox #b_path", function() 5expose("LuaRocks path tests #blackbox #b_path", function()
8 before_each(function() 6 before_each(function()
diff --git a/spec/purge_spec.lua b/spec/purge_spec.lua
index 639f96f3..f5515cb5 100644
--- a/spec/purge_spec.lua
+++ b/spec/purge_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local purge = require("luarocks.purge")
6 4
7expose("LuaRocks purge tests #blackbox #b_purge", function() 5expose("LuaRocks purge tests #blackbox #b_purge", function()
8 before_each(function() 6 before_each(function()
diff --git a/spec/refresh_cache_spec.lua b/spec/refresh_cache_spec.lua
index 27a95e5c..ef8c3a12 100644
--- a/spec/refresh_cache_spec.lua
+++ b/spec/refresh_cache_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local refresh_cache = require("luarocks.refresh_cache")
6 4
7expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function() 5expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function()
8 6
@@ -16,4 +14,4 @@ expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function()
16 assert.is_true(run.luarocks_admin_bool("--server=testing refresh_cache")) 14 assert.is_true(run.luarocks_admin_bool("--server=testing refresh_cache"))
17 end) 15 end)
18 end) 16 end)
19end) \ No newline at end of file 17end)
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua
index a94673a8..1b3cda7e 100644
--- a/spec/remove_spec.lua
+++ b/spec/remove_spec.lua
@@ -2,7 +2,6 @@ local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5local remove = require("luarocks.remove")
6 5
7local extra_rocks = { 6local extra_rocks = {
8 "/abelhas-1.0-1.rockspec", 7 "/abelhas-1.0-1.rockspec",
@@ -82,4 +81,4 @@ expose("LuaRocks remove tests #blackbox #b_remove", function()
82 it("LuaRocks-admin remove missing", function() 81 it("LuaRocks-admin remove missing", function()
83 assert.is_false(run.luarocks_admin_bool("--server=testing remove")) 82 assert.is_false(run.luarocks_admin_bool("--server=testing remove"))
84 end) 83 end)
85end) \ No newline at end of file 84end)
diff --git a/spec/search_spec.lua b/spec/search_spec.lua
index a0258942..8e84931b 100644
--- a/spec/search_spec.lua
+++ b/spec/search_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local search = require("luarocks.search")
6 4
7local extra_rocks = { 5local extra_rocks = {
8"/lzlib-0.4.1.53-1.src.rock" 6"/lzlib-0.4.1.53-1.src.rock"
@@ -39,4 +37,4 @@ expose("LuaRocks search tests #blackbox #b_search", function()
39 local num = 123 37 local num = 123
40 assert.is_true(run.luarocks_bool("search " .. num)) 38 assert.is_true(run.luarocks_bool("search " .. num))
41 end) 39 end)
42end) \ No newline at end of file 40end)
diff --git a/spec/show_spec.lua b/spec/show_spec.lua
index 85797eb6..c2f70c92 100644
--- a/spec/show_spec.lua
+++ b/spec/show_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local show = require("luarocks.show")
6 4
7expose("LuaRocks show tests #blackbox #b_show", function() 5expose("LuaRocks show tests #blackbox #b_show", function()
8 6
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua
index efe902f5..3930a583 100644
--- a/spec/unpack_spec.lua
+++ b/spec/unpack_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local unpack = require("luarocks.unpack")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/cprint-0.1-2.src.rock", 6 "/cprint-0.1-2.src.rock",
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index daf40d61..f0125966 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -1,8 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs")
3 2
4test_env.unload_luarocks() 3test_env.unload_luarocks()
5local upload = require("luarocks.upload")
6 4
7local extra_rocks = { 5local extra_rocks = {
8 "/lua-cjson-2.1.0-1.src.rock" 6 "/lua-cjson-2.1.0-1.src.rock"