aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/add_spec.lua4
-rw-r--r--spec/build_spec.lua4
-rw-r--r--spec/config_spec.lua4
-rw-r--r--spec/deps_spec.lua2
-rw-r--r--spec/doc_spec.lua3
-rw-r--r--spec/download_spec.lua2
-rw-r--r--spec/help_spec.lua2
-rw-r--r--spec/install_spec.lua6
-rw-r--r--spec/lint_spec.lua4
-rw-r--r--spec/list_spec.lua4
-rw-r--r--spec/make_manifest_spec.lua2
-rw-r--r--spec/make_spec.lua4
-rw-r--r--spec/new_version_spec.lua4
-rw-r--r--spec/pack_spec.lua3
-rw-r--r--spec/path_spec.lua2
-rw-r--r--spec/purge_spec.lua4
-rw-r--r--spec/refresh_cache_spec.lua2
-rw-r--r--spec/remove_spec.lua4
-rw-r--r--spec/search_spec.lua2
-rw-r--r--spec/show_spec.lua2
-rw-r--r--spec/unpack_spec.lua4
-rw-r--r--spec/upload_spec.lua2
-rw-r--r--spec/util_spec.lua6
-rw-r--r--spec/write_rockspec_spec.lua4
24 files changed, 40 insertions, 40 deletions
diff --git a/spec/add_spec.lua b/spec/add_spec.lua
index 930c221d..dca6f850 100644
--- a/spec/add_spec.lua
+++ b/spec/add_spec.lua
@@ -1,4 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
3local testing_paths = test_env.testing_paths
2 4
3test_env.unload_luarocks() 5test_env.unload_luarocks()
4 6
@@ -11,8 +13,6 @@ describe("LuaRocks add tests #blackbox #b_add", function()
11 13
12 before_each(function() 14 before_each(function()
13 test_env.setup_specs(extra_rocks) 15 test_env.setup_specs(extra_rocks)
14 testing_paths = test_env.testing_paths
15 run = test_env.run
16 end) 16 end)
17 17
18 describe("LuaRocks-admin add tests", function() 18 describe("LuaRocks-admin add tests", function()
diff --git a/spec/build_spec.lua b/spec/build_spec.lua
index 7248e8f0..1ce99089 100644
--- a/spec/build_spec.lua
+++ b/spec/build_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
@@ -29,8 +31,6 @@ describe("LuaRocks build tests #blackbox #b_build", function()
29 31
30 before_each(function() 32 before_each(function()
31 test_env.setup_specs(extra_rocks) 33 test_env.setup_specs(extra_rocks)
32 testing_paths = test_env.testing_paths
33 run = test_env.run
34 end) 34 end)
35 35
36 describe("LuaRocks build - basic testing set", function() 36 describe("LuaRocks build - basic testing set", function()
diff --git a/spec/config_spec.lua b/spec/config_spec.lua
index df2480ac..4a09fdcf 100644
--- a/spec/config_spec.lua
+++ b/spec/config_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
@@ -9,8 +11,6 @@ describe("LuaRocks config tests #blackbox #b_config", function()
9 test_env.setup_specs(extra_rocks) 11 test_env.setup_specs(extra_rocks)
10 test_env.unload_luarocks() -- need to be required here, because site_config is created after first loading of specs 12 test_env.unload_luarocks() -- need to be required here, because site_config is created after first loading of specs
11 site_config = require("luarocks.site_config") 13 site_config = require("luarocks.site_config")
12 testing_paths = test_env.testing_paths
13 run = test_env.run
14 end) 14 end)
15 15
16 describe("LuaRocks config - basic tests", function() 16 describe("LuaRocks config - basic tests", function()
diff --git a/spec/deps_spec.lua b/spec/deps_spec.lua
index 9bb4709d..5df96452 100644
--- a/spec/deps_spec.lua
+++ b/spec/deps_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua
index e4e7f5f2..9dbeaab8 100644
--- a/spec/doc_spec.lua
+++ b/spec/doc_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -10,8 +11,6 @@ describe("LuaRocks doc tests #blackbox #b_doc", function()
10 11
11 before_each(function() 12 before_each(function()
12 test_env.setup_specs(extra_rocks) 13 test_env.setup_specs(extra_rocks)
13 testing_paths = test_env.testing_paths
14 run = test_env.run
15 end) 14 end)
16 15
17 describe("LuaRocks doc basic tests", function() 16 describe("LuaRocks doc basic tests", function()
diff --git a/spec/download_spec.lua b/spec/download_spec.lua
index 2485960d..320d9304 100644
--- a/spec/download_spec.lua
+++ b/spec/download_spec.lua
@@ -1,5 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
3 4
4test_env.unload_luarocks() 5test_env.unload_luarocks()
5 6
@@ -11,7 +12,6 @@ describe("LuaRocks download tests #blackbox #b_download", function()
11 12
12 before_each(function() 13 before_each(function()
13 test_env.setup_specs(extra_rocks) 14 test_env.setup_specs(extra_rocks)
14 run = test_env.run
15 end) 15 end)
16 16
17 it("LuaRocks download with no flags/arguments", function() 17 it("LuaRocks download with no flags/arguments", function()
diff --git a/spec/help_spec.lua b/spec/help_spec.lua
index 376b6ceb..35bb6817 100644
--- a/spec/help_spec.lua
+++ b/spec/help_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -6,7 +7,6 @@ describe("LuaRocks help tests #blackbox #b_help", function()
6 7
7 before_each(function() 8 before_each(function()
8 test_env.setup_specs(extra_rocks) 9 test_env.setup_specs(extra_rocks)
9 run = test_env.run
10 end) 10 end)
11 11
12 it("LuaRocks help with no flags/arguments", function() 12 it("LuaRocks help with no flags/arguments", function()
diff --git a/spec/install_spec.lua b/spec/install_spec.lua
index f8869791..876e25fc 100644
--- a/spec/install_spec.lua
+++ b/spec/install_spec.lua
@@ -1,5 +1,8 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
5local env_variables = test_env.env_variables
3 6
4test_env.unload_luarocks() 7test_env.unload_luarocks()
5 8
@@ -22,9 +25,6 @@ describe("LuaRocks install tests #blackbox #b_install", function()
22 25
23 before_each(function() 26 before_each(function()
24 test_env.setup_specs(extra_rocks) 27 test_env.setup_specs(extra_rocks)
25 testing_paths = test_env.testing_paths
26 env_variables = test_env.env_variables
27 run = test_env.run
28 platform = test_env.platform 28 platform = test_env.platform
29 end) 29 end)
30 30
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua
index ce753618..f7496037 100644
--- a/spec/lint_spec.lua
+++ b/spec/lint_spec.lua
@@ -1,4 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
3local testing_paths = test_env.testing_paths
2 4
3test_env.unload_luarocks() 5test_env.unload_luarocks()
4 6
@@ -10,8 +12,6 @@ describe("LuaRocks lint tests #blackbox #b_lint", function()
10 12
11 before_each(function() 13 before_each(function()
12 test_env.setup_specs(extra_rocks) 14 test_env.setup_specs(extra_rocks)
13 testing_paths = test_env.testing_paths
14 run = test_env.run
15 end) 15 end)
16 16
17 it("LuaRocks lint with no flags/arguments", function() 17 it("LuaRocks lint with no flags/arguments", function()
diff --git a/spec/list_spec.lua b/spec/list_spec.lua
index 344607e3..1b082ab6 100644
--- a/spec/list_spec.lua
+++ b/spec/list_spec.lua
@@ -1,4 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
3local testing_paths = test_env.testing_paths
2 4
3test_env.unload_luarocks() 5test_env.unload_luarocks()
4 6
@@ -11,8 +13,6 @@ describe("LuaRocks list tests #blackbox #b_list", function()
11 13
12 before_each(function() 14 before_each(function()
13 test_env.setup_specs(extra_rocks) 15 test_env.setup_specs(extra_rocks)
14 run = test_env.run
15 testing_paths = test_env.testing_paths
16 end) 16 end)
17 17
18 it("LuaRocks list with no flags/arguments", function() 18 it("LuaRocks list with no flags/arguments", function()
diff --git a/spec/make_manifest_spec.lua b/spec/make_manifest_spec.lua
index c6b0753c..5bd9e2f3 100644
--- a/spec/make_manifest_spec.lua
+++ b/spec/make_manifest_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -6,7 +7,6 @@ describe("LuaRocks make_manifest tests #blackbox #b_make_manifest", function()
6 7
7 before_each(function() 8 before_each(function()
8 test_env.setup_specs(extra_rocks) 9 test_env.setup_specs(extra_rocks)
9 run = test_env.run
10 end) 10 end)
11 11
12 describe("LuaRocks-admin make manifest tests", function() 12 describe("LuaRocks-admin make manifest tests", function()
diff --git a/spec/make_spec.lua b/spec/make_spec.lua
index 5ae23fd5..2821c143 100644
--- a/spec/make_spec.lua
+++ b/spec/make_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
@@ -15,8 +17,6 @@ describe("LuaRocks make tests #blackbox #b_make", function()
15 17
16 before_each(function() 18 before_each(function()
17 test_env.setup_specs(extra_rocks) 19 test_env.setup_specs(extra_rocks)
18 run = test_env.run
19 testing_paths = test_env.testing_paths
20 end) 20 end)
21 21
22 it("LuaRocks make with no flags/arguments", function() 22 it("LuaRocks make with no flags/arguments", function()
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua
index 140c9906..2274bce3 100644
--- a/spec/new_version_spec.lua
+++ b/spec/new_version_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
@@ -11,8 +13,6 @@ describe("LuaRocks new_version tests #blackbox #b_new_version", function()
11 13
12 before_each(function() 14 before_each(function()
13 test_env.setup_specs(extra_rocks) 15 test_env.setup_specs(extra_rocks)
14 testing_paths = test_env.testing_paths
15 run = test_env.run
16 end) 16 end)
17 17
18 describe("LuaRocks new_version basic tests", function() 18 describe("LuaRocks new_version basic tests", function()
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua
index 1671152c..416184a8 100644
--- a/spec/pack_spec.lua
+++ b/spec/pack_spec.lua
@@ -1,5 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
3 4
4test_env.unload_luarocks() 5test_env.unload_luarocks()
5 6
@@ -13,8 +14,6 @@ describe("LuaRocks pack tests #blackbox #b_pack", function()
13 14
14 before_each(function() 15 before_each(function()
15 test_env.setup_specs(extra_rocks) 16 test_env.setup_specs(extra_rocks)
16 testing_paths = test_env.testing_paths
17 run = test_env.run
18 end) 17 end)
19 18
20 it("LuaRocks pack basic", function() 19 it("LuaRocks pack basic", function()
diff --git a/spec/path_spec.lua b/spec/path_spec.lua
index d201f337..fcdb36cf 100644
--- a/spec/path_spec.lua
+++ b/spec/path_spec.lua
@@ -1,11 +1,11 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
5describe("LuaRocks path tests #blackbox #b_path", function() 6describe("LuaRocks path tests #blackbox #b_path", function()
6 before_each(function() 7 before_each(function()
7 test_env.setup_specs(extra_rocks) 8 test_env.setup_specs(extra_rocks)
8 run = test_env.run
9 end) 9 end)
10 10
11 it("LuaRocks path bin", function() 11 it("LuaRocks path bin", function()
diff --git a/spec/purge_spec.lua b/spec/purge_spec.lua
index 30ce15e2..e6f12ddb 100644
--- a/spec/purge_spec.lua
+++ b/spec/purge_spec.lua
@@ -1,12 +1,12 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
3local testing_paths = test_env.testing_paths
2 4
3test_env.unload_luarocks() 5test_env.unload_luarocks()
4 6
5describe("LuaRocks purge tests #blackbox #b_purge", function() 7describe("LuaRocks purge tests #blackbox #b_purge", function()
6 before_each(function() 8 before_each(function()
7 test_env.setup_specs(extra_rocks) 9 test_env.setup_specs(extra_rocks)
8 testing_paths = test_env.testing_paths
9 run = test_env.run
10 end) 10 end)
11 11
12 describe("LuaRocks purge basic tests", function() 12 describe("LuaRocks purge basic tests", function()
diff --git a/spec/refresh_cache_spec.lua b/spec/refresh_cache_spec.lua
index 764cbcb5..34d211ab 100644
--- a/spec/refresh_cache_spec.lua
+++ b/spec/refresh_cache_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -6,7 +7,6 @@ describe("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function()
6 7
7 before_each(function() 8 before_each(function()
8 test_env.setup_specs(extra_rocks) 9 test_env.setup_specs(extra_rocks)
9 run = test_env.run
10 end) 10 end)
11 11
12 describe("LuaRocks-admin refresh cache tests #ssh", function() 12 describe("LuaRocks-admin refresh cache tests #ssh", function()
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua
index 4129e755..41c6348a 100644
--- a/spec/remove_spec.lua
+++ b/spec/remove_spec.lua
@@ -1,5 +1,7 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
3 5
4test_env.unload_luarocks() 6test_env.unload_luarocks()
5 7
@@ -14,8 +16,6 @@ describe("LuaRocks remove tests #blackbox #b_remove", function()
14 16
15 before_each(function() 17 before_each(function()
16 test_env.setup_specs(extra_rocks) 18 test_env.setup_specs(extra_rocks)
17 testing_paths = test_env.testing_paths
18 run = test_env.run
19 end) 19 end)
20 20
21 describe("LuaRocks remove basic tests", function() 21 describe("LuaRocks remove basic tests", function()
diff --git a/spec/search_spec.lua b/spec/search_spec.lua
index 93e85928..33c49856 100644
--- a/spec/search_spec.lua
+++ b/spec/search_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -10,7 +11,6 @@ describe("LuaRocks search tests #blackbox #b_search", function()
10 11
11 before_each(function() 12 before_each(function()
12 test_env.setup_specs(extra_rocks) 13 test_env.setup_specs(extra_rocks)
13 run = test_env.run
14 end) 14 end)
15 15
16 it("LuaRocks search with no flags/arguments", function() 16 it("LuaRocks search with no flags/arguments", function()
diff --git a/spec/show_spec.lua b/spec/show_spec.lua
index a58eea52..6f055612 100644
--- a/spec/show_spec.lua
+++ b/spec/show_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -6,7 +7,6 @@ describe("LuaRocks show tests #blackbox #b_show", function()
6 7
7 before_each(function() 8 before_each(function()
8 test_env.setup_specs(extra_rocks) 9 test_env.setup_specs(extra_rocks)
9 run = test_env.run
10 end) 10 end)
11 11
12 it("LuaRocks show with no flags/arguments", function() 12 it("LuaRocks show with no flags/arguments", function()
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua
index 1e9df811..db71aa06 100644
--- a/spec/unpack_spec.lua
+++ b/spec/unpack_spec.lua
@@ -1,4 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
3local testing_paths = test_env.testing_paths
2 4
3test_env.unload_luarocks() 5test_env.unload_luarocks()
4 6
@@ -11,8 +13,6 @@ describe("LuaRocks unpack tests #blackbox #b_unpack", function()
11 13
12 before_each(function() 14 before_each(function()
13 test_env.setup_specs(extra_rocks) 15 test_env.setup_specs(extra_rocks)
14 testing_paths = test_env.testing_paths
15 run = test_env.run
16 platform = test_env.platform 16 platform = test_env.platform
17 end) 17 end)
18 18
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index ce998987..c10ef0e9 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -1,4 +1,5 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local run = test_env.run
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4 5
@@ -10,7 +11,6 @@ describe("LuaRocks upload tests #blackbox #b_upload", function()
10 11
11 before_each(function() 12 before_each(function()
12 test_env.setup_specs(extra_rocks) 13 test_env.setup_specs(extra_rocks)
13 run = test_env.run
14 end) 14 end)
15 15
16 it("LuaRocks upload with no flags/arguments", function() 16 it("LuaRocks upload with no flags/arguments", function()
diff --git a/spec/util_spec.lua b/spec/util_spec.lua
index 7e0289d6..39ce3c83 100644
--- a/spec/util_spec.lua
+++ b/spec/util_spec.lua
@@ -1,13 +1,13 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
5local env_variables = test_env.env_variables
3 6
4describe("Basic tests #blackbox #b_util", function() 7describe("Basic tests #blackbox #b_util", function()
5 8
6 before_each(function() 9 before_each(function()
7 test_env.setup_specs(extra_rocks) 10 test_env.setup_specs(extra_rocks)
8 testing_paths = test_env.testing_paths
9 env_variables = test_env.env_variables
10 run = test_env.run
11 end) 11 end)
12 12
13 it("LuaRocks version", function() 13 it("LuaRocks version", function()
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua
index 4c29f204..cf0a642e 100644
--- a/spec/write_rockspec_spec.lua
+++ b/spec/write_rockspec_spec.lua
@@ -1,5 +1,6 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
3 4
4test_env.unload_luarocks() 5test_env.unload_luarocks()
5local write_rockspec = require("luarocks.write_rockspec") 6local write_rockspec = require("luarocks.write_rockspec")
@@ -8,7 +9,6 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function()
8 9
9 before_each(function() 10 before_each(function()
10 test_env.setup_specs(extra_rocks) 11 test_env.setup_specs(extra_rocks)
11 run = test_env.run
12 end) 12 end)
13 13
14 describe("LuaRocks write_rockspec basic tests", function() 14 describe("LuaRocks write_rockspec basic tests", function()
@@ -71,4 +71,4 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function()
71 assert.is_true(os.remove("luafcgi-scm-1.rockspec")) 71 assert.is_true(os.remove("luafcgi-scm-1.rockspec"))
72 end) 72 end)
73 end) 73 end)
74end) \ No newline at end of file 74end)