diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:09:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:09:12 -0300 |
commit | 7c8e527c64775b2d6ed19d6fcb9e688397501812 (patch) | |
tree | e4ac1f2556d23b7299b4dfaf9d2f76362170eba8 /test | |
parent | 98e09791e8c5ae540f57ec3305f05b0589164c90 (diff) | |
download | luarocks-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-x | test/testing.sh | 16 |
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 | } |
79 | local_cache = "$testing_cache" | 79 | local_cache = "$testing_cache" |
80 | upload_server = "testing" | 80 | upload_server = "testing" |
81 | upload_user = "hisham" | 81 | upload_user = "$USER" |
82 | upload_servers = { | 82 | upload_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 | } |
109 | local_cache = "$testing_cache" | 109 | local_cache = "$testing_cache" |
110 | upload_server = "testing" | 110 | upload_server = "testing" |
111 | upload_user = "hisham" | 111 | upload_user = "$USER" |
112 | upload_servers = { | 112 | upload_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 | |||
432 | test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } | 432 | test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } |
433 | test_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}; } | 433 | test_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}; } |
434 | fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } | 434 | fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } |
435 | fail_unpack_invalidrockspec() { need_luasocket; $luarocks unpack "invalid.rockspec"; } | ||
435 | 436 | ||
436 | fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } | 437 | fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } |
438 | fail_upload_invalidkey() { $luarocks upload --api-key="invalid" "invalid.rockspec"; } | ||
437 | 439 | ||
438 | test_admin_help() { $luarocks_admin help; } | 440 | test_admin_help() { $luarocks_admin help; } |
439 | 441 | ||
440 | test_admin_make_manifest() { $luarocks_admin make_manifest; } | 442 | test_admin_make_manifest() { $luarocks_admin make_manifest; } |
441 | test_admin_add_rsync() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } | 443 | test_admin_add_rsync() { $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } |
442 | test_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"; } | 444 | test_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"; } |
443 | fail_admin_add_missing() { $luarocks_admin --server=testing add; } | 445 | fail_admin_add_missing() { $luarocks_admin --server=testing add; } |
444 | fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } | 446 | fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } |
445 | fail_admin_invalidrock() { if [ "$travis" ]; then return 1; fi; $luarocks_admin --server=testing add invalid; } | 447 | fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; } |
446 | test_admin_refresh_cache() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing refresh_cache; } | 448 | test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; } |
447 | test_admin_remove() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } | 449 | test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } |
448 | fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } | 450 | fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } |
449 | 451 | ||
450 | fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } | 452 | fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } |