aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:59:49 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:59:49 -0300
commit8d6a9e333d7d62c870b25e5402de5555245cf73e (patch)
treef9cc11f8a138fdb44e071c864d956282f59e09c3 /test
parent5b45de21552d8daba274913bed83694d8f6e0385 (diff)
parent066cda416c5a97136006470f3050580c20d67a06 (diff)
downloadluarocks-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-xtest/testing.sh20
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}
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",
@@ -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
157else 161else
158 luadir="/Programs/Lua/Current" 162 luadir="/Programs/Lua/Current"
159fi 163fi
@@ -439,19 +443,21 @@ test_unpack_src() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --sou
439test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; } 443test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download --rockspec cprint && $luarocks unpack ./cprint-${verrev_cprint}.rockspec && rm -rf ./cprint-${verrev_cprint}; }
440test_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}; } 444test_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}; }
441fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } 445fail_unpack_invalidpatch() { need_luasocket; $luarocks unpack "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; }
446fail_unpack_invalidrockspec() { need_luasocket; $luarocks unpack "invalid.rockspec"; }
442 447
443fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } 448fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; }
449fail_upload_invalidkey() { $luarocks upload --api-key="invalid" "invalid.rockspec"; }
444 450
445test_admin_help() { $luarocks_admin help; } 451test_admin_help() { $luarocks_admin help; }
446 452
447test_admin_make_manifest() { $luarocks_admin make_manifest; } 453test_admin_make_manifest() { $luarocks_admin make_manifest; }
448test_admin_add_rsync() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } 454test_admin_add_rsync() { $luarocks_admin --server=testing add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
449test_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"; } 455test_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"; }
450fail_admin_add_missing() { $luarocks_admin --server=testing add; } 456fail_admin_add_missing() { $luarocks_admin --server=testing add; }
451fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; } 457fail_admin_invalidserver() { $luarocks_admin --server=invalid add "$testing_server/luasocket-${verrev_luasocket}.src.rock"; }
452fail_admin_invalidrock() { if [ "$travis" ]; then return 1; fi; $luarocks_admin --server=testing add invalid; } 458fail_admin_invalidrock() { $luarocks_admin --server=testing add invalid; }
453test_admin_refresh_cache() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing refresh_cache; } 459test_admin_refresh_cache() { $luarocks_admin --server=testing refresh_cache; }
454test_admin_remove() { if [ "$travis" ]; then return; fi; $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; } 460test_admin_remove() { $luarocks_admin --server=testing remove luasocket-${verrev_luasocket}.src.rock; }
455fail_admin_remove_missing() { $luarocks_admin --server=testing remove; } 461fail_admin_remove_missing() { $luarocks_admin --server=testing remove; }
456 462
457fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; } 463fail_deps_mode_invalid_arg() { $luarocks remove luacov --deps-mode; }