From 05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89 Mon Sep 17 00:00:00 2001 From: Ryan Hartlage Date: Mon, 18 Apr 2016 19:39:09 -0400 Subject: Add support for the --tree argument to the path command --- test/testing.lua | 1 + test/testing.sh | 1 + 2 files changed, 2 insertions(+) (limited to 'test') 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 = { test_path_lr_path = function() return run "$luarocks path --lr-path" end, test_path_lr_cpath = function() return run "$luarocks path --lr-cpath" end, test_path_lr_bin = function() return run "$luarocks path --lr-bin" end, + test_path_with_tree = function() return run "$luarocks path --tree=lua_modules" end, fail_purge_missing_tree = function() return run '$luarocks purge --tree="$testing_tree"' end, test_purge = function() return run '$luarocks purge --tree="$testing_sys_tree"' end, 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; } test_path_lr_path() { $luarocks path --lr-path; } test_path_lr_cpath() { $luarocks path --lr-cpath; } test_path_lr_bin() { $luarocks path --lr-bin; } +test_path_with_tree() { $luarocks path --tree=lua_modules; } fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } fail_purge_tree_notstring() { $luarocks purge --tree=1; } -- cgit v1.2.3-55-g6feb