diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:59:49 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:59:49 -0300 |
commit | 8d6a9e333d7d62c870b25e5402de5555245cf73e (patch) | |
tree | f9cc11f8a138fdb44e071c864d956282f59e09c3 /test | |
parent | 5b45de21552d8daba274913bed83694d8f6e0385 (diff) | |
parent | 066cda416c5a97136006470f3050580c20d67a06 (diff) | |
download | luarocks-8d6a9e333d7d62c870b25e5402de5555245cf73e.tar.gz luarocks-8d6a9e333d7d62c870b25e5402de5555245cf73e.tar.bz2 luarocks-8d6a9e333d7d62c870b25e5402de5555245cf73e.zip |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/test/testing.sh b/test/testing.sh index ab444151..c36cb013 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", |
@@ -154,6 +154,10 @@ then | |||
154 | make install INSTALL_TOP="$luadir" &> /dev/null | 154 | make install INSTALL_TOP="$luadir" &> /dev/null |
155 | fi | 155 | fi |
156 | popd | 156 | popd |
157 | [ -e ~/.ssh/id_rsa.pub ] || ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa | ||
158 | cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | ||
159 | chmod og-wx ~/.ssh/authorized_keys | ||
160 | ssh-keyscan localhost >> ~/.ssh/known_hosts | ||
157 | else | 161 | else |
158 | luadir="/Programs/Lua/Current" | 162 | luadir="/Programs/Lua/Current" |
159 | fi | 163 | fi |
@@ -439,19 +443,21 @@ test_unpack_src() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --sou | |||
439 | test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } | 443 | test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } |
440 | 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}; } | 444 | 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}; } |
441 | fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } | 445 | fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } |
446 | fail_unpack_invalidrockspec() { need_luasocket; $luarocks unpack "invalid.rockspec"; } | ||
442 | 447 | ||
443 | fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } | 448 | fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } |
449 | fail_upload_invalidkey() { $luarocks upload --api-key="invalid" "invalid.rockspec"; } | ||
444 | 450 | ||
445 | test_admin_help() { $luarocks_admin help; } | 451 | test_admin_help() { $luarocks_admin help; } |
446 | 452 | ||
447 | test_admin_make_manifest() { $luarocks_admin make_manifest; } | 453 | test_admin_make_manifest() { $luarocks_admin make_manifest; } |
448 | test_admin_add_rsync() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } | 454 | test_admin_add_rsync() { $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } |
449 | 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"; } | 455 | 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"; } |
450 | fail_admin_add_missing() { $luarocks_admin --server=testing add; } | 456 | fail_admin_add_missing() { $luarocks_admin --server=testing add; } |
451 | fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } | 457 | fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } |
452 | fail_admin_invalidrock() { if [ "$travis" ]; then return 1; fi; $luarocks_admin --server=testing add invalid; } | 458 | fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; } |
453 | test_admin_refresh_cache() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing refresh_cache; } | 459 | test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; } |
454 | test_admin_remove() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } | 460 | test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } |
455 | fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } | 461 | fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } |
456 | 462 | ||
457 | fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } | 463 | fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } |