aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Hartlage <ryanplusplus@gmail.com>2016-04-18 19:39:09 -0400
committerRyan Hartlage <ryanplusplus@gmail.com>2016-04-18 19:41:05 -0400
commit05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89 (patch)
treea3b5048cd82e7880feb51f647a02a38c0f4a9b84 /test
parent09da2f695b3e531e8bc88082e9f06f3875685cab (diff)
downloadluarocks-05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89.tar.gz
luarocks-05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89.tar.bz2
luarocks-05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89.zip
Add support for the --tree argument to the path command
Diffstat (limited to 'test')
-rw-r--r--test/testing.lua1
-rwxr-xr-xtest/testing.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/testing.lua b/test/testing.lua
index 6d4b4b05..c37293ee 100644
--- a/test/testing.lua
+++ b/test/testing.lua
@@ -266,6 +266,7 @@ local tests = {
266 test_path_lr_path = function() return run "$luarocks path --lr-path" end, 266 test_path_lr_path = function() return run "$luarocks path --lr-path" end,
267 test_path_lr_cpath = function() return run "$luarocks path --lr-cpath" end, 267 test_path_lr_cpath = function() return run "$luarocks path --lr-cpath" end,
268 test_path_lr_bin = function() return run "$luarocks path --lr-bin" end, 268 test_path_lr_bin = function() return run "$luarocks path --lr-bin" end,
269 test_path_with_tree = function() return run "$luarocks path --tree=lua_modules" end,
269 fail_purge_missing_tree = function() return run '$luarocks purge --tree="$testing_tree"' end, 270 fail_purge_missing_tree = function() return run '$luarocks purge --tree="$testing_tree"' end,
270 test_purge = function() return run '$luarocks purge --tree="$testing_sys_tree"' end, 271 test_purge = function() return run '$luarocks purge --tree="$testing_sys_tree"' end,
271 test_remove = function() 272 test_remove = function()
diff --git a/test/testing.sh b/test/testing.sh
index 95b3243c..305168c8 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -449,6 +449,7 @@ test_path() { $luarocks path --bin; }
449test_path_lr_path() { $luarocks path --lr-path; } 449test_path_lr_path() { $luarocks path --lr-path; }
450test_path_lr_cpath() { $luarocks path --lr-cpath; } 450test_path_lr_cpath() { $luarocks path --lr-cpath; }
451test_path_lr_bin() { $luarocks path --lr-bin; } 451test_path_lr_bin() { $luarocks path --lr-bin; }
452test_path_with_tree() { $luarocks path --tree=lua_modules; }
452 453
453fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } 454fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; }
454fail_purge_tree_notstring() { $luarocks purge --tree=1; } 455fail_purge_tree_notstring() { $luarocks purge --tree=1; }