diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
commit | bd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch) | |
tree | 9812779fea52afea7dbbf15a21620d3c59102476 /spec/path_spec.lua | |
parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip |
tests: shorter descriptions
Diffstat (limited to 'spec/path_spec.lua')
-rw-r--r-- | spec/path_spec.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/path_spec.lua b/spec/path_spec.lua index 3a7dcea2..7736741c 100644 --- a/spec/path_spec.lua +++ b/spec/path_spec.lua | |||
@@ -3,12 +3,12 @@ local run = test_env.run | |||
3 | 3 | ||
4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
5 | 5 | ||
6 | describe("LuaRocks path tests #integration", function() | 6 | describe("luarocks path #integration", function() |
7 | before_each(function() | 7 | before_each(function() |
8 | test_env.setup_specs() | 8 | test_env.setup_specs() |
9 | end) | 9 | end) |
10 | 10 | ||
11 | it("LuaRocks path", function() | 11 | it("runs", function() |
12 | local output = run.luarocks("path") | 12 | local output = run.luarocks("path") |
13 | assert.match("LUA_PATH=", output) | 13 | assert.match("LUA_PATH=", output) |
14 | assert.match("LUA_CPATH=", output) | 14 | assert.match("LUA_CPATH=", output) |
@@ -17,21 +17,21 @@ describe("LuaRocks path tests #integration", function() | |||
17 | if _VERSION:match("[23]") then | 17 | if _VERSION:match("[23]") then |
18 | local v = _VERSION:gsub("Lua (%d+)%.(%d+)", "%1_%2") | 18 | local v = _VERSION:gsub("Lua (%d+)%.(%d+)", "%1_%2") |
19 | 19 | ||
20 | it("LuaRocks path with LUA_PATH_"..v, function() | 20 | it("with LUA_PATH_"..v, function() |
21 | local output = run.luarocks("path", { | 21 | local output = run.luarocks("path", { |
22 | ["LUA_PATH_"..v] = package.path, | 22 | ["LUA_PATH_"..v] = package.path, |
23 | }) | 23 | }) |
24 | assert.match("LUA_PATH_"..v.."=", output) | 24 | assert.match("LUA_PATH_"..v.."=", output) |
25 | end) | 25 | end) |
26 | 26 | ||
27 | it("LuaRocks path with LUA_CPATH_"..v, function() | 27 | it("with LUA_CPATH_"..v, function() |
28 | local output = run.luarocks("path", { | 28 | local output = run.luarocks("path", { |
29 | ["LUA_CPATH_"..v] = package.cpath, | 29 | ["LUA_CPATH_"..v] = package.cpath, |
30 | }) | 30 | }) |
31 | assert.match("LUA_CPATH_"..v.."=", output) | 31 | assert.match("LUA_CPATH_"..v.."=", output) |
32 | end) | 32 | end) |
33 | 33 | ||
34 | it("LuaRocks path with LUA_PATH_"..v.." and LUA_CPATH_"..v, function() | 34 | it("with LUA_PATH_"..v.." and LUA_CPATH_"..v, function() |
35 | local output = run.luarocks("path", { | 35 | local output = run.luarocks("path", { |
36 | ["LUA_PATH_"..v] = package.path, | 36 | ["LUA_PATH_"..v] = package.path, |
37 | ["LUA_CPATH_"..v] = package.cpath, | 37 | ["LUA_CPATH_"..v] = package.cpath, |
@@ -42,23 +42,23 @@ describe("LuaRocks path tests #integration", function() | |||
42 | 42 | ||
43 | end | 43 | end |
44 | 44 | ||
45 | it("LuaRocks path bin", function() | 45 | it("--bin", function() |
46 | assert.is_true(run.luarocks_bool("path --bin")) | 46 | assert.is_true(run.luarocks_bool("path --bin")) |
47 | end) | 47 | end) |
48 | 48 | ||
49 | it("LuaRocks path lr-path", function() | 49 | it("--lr-path", function() |
50 | assert.is_true(run.luarocks_bool("path --lr-path")) | 50 | assert.is_true(run.luarocks_bool("path --lr-path")) |
51 | end) | 51 | end) |
52 | 52 | ||
53 | it("LuaRocks path lr-cpath", function() | 53 | it("--lr-cpath", function() |
54 | assert.is_true(run.luarocks_bool("path --lr-cpath")) | 54 | assert.is_true(run.luarocks_bool("path --lr-cpath")) |
55 | end) | 55 | end) |
56 | 56 | ||
57 | it("LuaRocks path with tree", function() | 57 | it("--tree", function() |
58 | assert.is_true(run.luarocks_bool("path --tree=lua_modules")) | 58 | assert.is_true(run.luarocks_bool("path --tree=lua_modules")) |
59 | end) | 59 | end) |
60 | 60 | ||
61 | it("LuaRocks path with project-tree", function() | 61 | it("--project-tree", function() |
62 | local path1 = "/share/lua/5%." .. test_env.lua_version:sub(3, 3) .. "/%?%.lua" | 62 | local path1 = "/share/lua/5%." .. test_env.lua_version:sub(3, 3) .. "/%?%.lua" |
63 | local path2 = "/share/lua/5%." .. test_env.lua_version:sub(3, 3) .. "/%?/init%.lua" | 63 | local path2 = "/share/lua/5%." .. test_env.lua_version:sub(3, 3) .. "/%?/init%.lua" |
64 | 64 | ||