aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbhattigurjot <bhattigurjot@gmail.com>2016-03-19 18:13:16 +0530
committerbhattigurjot <bhattigurjot@gmail.com>2016-03-19 18:13:16 +0530
commitee233f0d746d6c714c298f602cc3326ba9cb455d (patch)
tree6eef7c4f388903c77dcacb00d1a907846622cd32 /test
parentca60d34cf161e778bd4df7d79cda6df479df20ca (diff)
downloadluarocks-ee233f0d746d6c714c298f602cc3326ba9cb455d.tar.gz
luarocks-ee233f0d746d6c714c298f602cc3326ba9cb455d.tar.bz2
luarocks-ee233f0d746d6c714c298f602cc3326ba9cb455d.zip
Add split_server_url test for handling local cache
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 4be71fa6..a41f4d06 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -478,6 +478,7 @@ fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; }
478test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; } 478test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; }
479test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } 479test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; }
480fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } 480fail_admin_remove_missing() { $luarocks_admin --server=testing remove; }
481fail_admin_split_server_url() { $luarocks_admin --server="localhost@/tmp/luarocks_testing" add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
481 482
482fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } 483fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; }
483test_deps_mode_one() { $luarocks build --tree="system" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; } 484test_deps_mode_one() { $luarocks build --tree="system" lpeg && $luarocks list && $luarocks build --deps-mode=one --tree="$testing_tree" lxsh && [ `$luarocks_noecho list --tree="$testing_tree" --porcelain lpeg | wc -l` = 1 ]; }