diff options
author | Ryan Hartlage <ryanplusplus@gmail.com> | 2016-04-18 19:39:09 -0400 |
---|---|---|
committer | Ryan Hartlage <ryanplusplus@gmail.com> | 2016-04-18 19:41:05 -0400 |
commit | 05c1c8b0699d5ac8a85a844332d6b6ae0dff0c89 (patch) | |
tree | a3b5048cd82e7880feb51f647a02a38c0f4a9b84 /test | |
parent | 09da2f695b3e531e8bc88082e9f06f3875685cab (diff) | |
download | luarocks-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.lua | 1 | ||||
-rwxr-xr-x | test/testing.sh | 1 |
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; } | |||
449 | test_path_lr_path() { $luarocks path --lr-path; } | 449 | test_path_lr_path() { $luarocks path --lr-path; } |
450 | test_path_lr_cpath() { $luarocks path --lr-cpath; } | 450 | test_path_lr_cpath() { $luarocks path --lr-cpath; } |
451 | test_path_lr_bin() { $luarocks path --lr-bin; } | 451 | test_path_lr_bin() { $luarocks path --lr-bin; } |
452 | test_path_with_tree() { $luarocks path --tree=lua_modules; } | ||
452 | 453 | ||
453 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } | 454 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } |
454 | fail_purge_tree_notstring() { $luarocks purge --tree=1; } | 455 | fail_purge_tree_notstring() { $luarocks purge --tree=1; } |