aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:09:12 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:09:12 -0300
commit7c8e527c64775b2d6ed19d6fcb9e688397501812 (patch)
treee4ac1f2556d23b7299b4dfaf9d2f76362170eba8 /test
parent98e09791e8c5ae540f57ec3305f05b0589164c90 (diff)
downloadluarocks-7c8e527c64775b2d6ed19d6fcb9e688397501812.tar.gz
luarocks-7c8e527c64775b2d6ed19d6fcb9e688397501812.tar.bz2
luarocks-7c8e527c64775b2d6ed19d6fcb9e688397501812.zip
Let's see if Travis allow sftp'ing to localhost.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 2c87183f..f87a10ef 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -78,7 +78,7 @@ rocks_servers = {
78} 78}
79local_cache = "$testing_cache" 79local_cache = "$testing_cache"
80upload_server = "testing" 80upload_server = "testing"
81upload_user = "hisham" 81upload_user = "$USER"
82upload_servers = { 82upload_servers = {
83 testing = { 83 testing = {
84 rsync = "localhost/tmp/luarocks_testing", 84 rsync = "localhost/tmp/luarocks_testing",
@@ -108,7 +108,7 @@ rocks_trees = {
108} 108}
109local_cache = "$testing_cache" 109local_cache = "$testing_cache"
110upload_server = "testing" 110upload_server = "testing"
111upload_user = "hisham" 111upload_user = "$USER"
112upload_servers = { 112upload_servers = {
113 testing = { 113 testing = {
114 sftp = "localhost/tmp/luarocks_testing", 114 sftp = "localhost/tmp/luarocks_testing",
@@ -432,19 +432,21 @@ test_unpack_src() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --sou
432test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } 432test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; }
433test_unpack_binary() { rm -rf ./cprint-${verrev_cprint} && $luarocks build cprint && $luarocks pack cprint && $luarocks unpack ./cprint-${verrev_cprint}.${platform}.rock && rm -rf ./cprint-${verrev_cprint}; } 433test_unpack_binary() { rm -rf ./cprint-${verrev_cprint} && $luarocks build cprint && $luarocks pack cprint && $luarocks unpack ./cprint-${verrev_cprint}.${platform}.rock && rm -rf ./cprint-${verrev_cprint}; }
434fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } 434fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; }
435fail_unpack_invalidrockspec() { need_luasocket; $luarocks unpack "invalid.rockspec"; }
435 436
436fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } 437fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; }
438fail_upload_invalidkey() { $luarocks upload --api-key="invalid" "invalid.rockspec"; }
437 439
438test_admin_help() { $luarocks_admin help; } 440test_admin_help() { $luarocks_admin help; }
439 441
440test_admin_make_manifest() { $luarocks_admin make_manifest; } 442test_admin_make_manifest() { $luarocks_admin make_manifest; }
441test_admin_add_rsync() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } 443test_admin_add_rsync() { $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
442test_admin_add_sftp() { if [ "$travis" ]; then return; fi; export LUAROCKS_CONFIG="$testing_dir/testing_config_sftp.lua" && $luarocks_admin --server=testing add ./luasocket-${verrev_luasocket}.src.rock; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; } 444test_admin_add_sftp() { export LUAROCKS_CONFIG="$testing_dir/testing_config_sftp.lua" && $luarocks_admin --server=testing add ./luasocket-${verrev_luasocket}.src.rock; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; }
443fail_admin_add_missing() { $luarocks_admin --server=testing add; } 445fail_admin_add_missing() { $luarocks_admin --server=testing add; }
444fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } 446fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
445fail_admin_invalidrock() { if [ "$travis" ]; then return 1; fi; $luarocks_admin --server=testing add invalid; } 447fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; }
446test_admin_refresh_cache() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing refresh_cache; } 448test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; }
447test_admin_remove() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } 449test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; }
448fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } 450fail_admin_remove_missing() { $luarocks_admin --server=testing remove; }
449 451
450fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } 452fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; }