aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-26 01:52:44 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-26 01:52:44 -0300
commited02691e8b7ce5e500ac1fe3c9c3f894e95b6099 (patch)
treeca34bc3317bc6b3afee5d5d14315088d60b0d8c2 /test
parenta19af6d438247812e07528a1b18781d7f04863eb (diff)
downloadluarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.tar.gz
luarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.tar.bz2
luarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.zip
Add trivial tests for `luarocks upload`
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index f99fd8e3..2c87183f 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -343,6 +343,7 @@ fail_lint_noarg() { $luarocks lint; }
343fail_search_noarg() { $luarocks search; } 343fail_search_noarg() { $luarocks search; }
344fail_show_noarg() { $luarocks show; } 344fail_show_noarg() { $luarocks show; }
345fail_unpack_noarg() { $luarocks unpack; } 345fail_unpack_noarg() { $luarocks unpack; }
346fail_upload_noarg() { $luarocks upload; }
346fail_remove_noarg() { $luarocks remove; } 347fail_remove_noarg() { $luarocks remove; }
347fail_doc_noarg() { $luarocks doc; } 348fail_doc_noarg() { $luarocks doc; }
348fail_new_version_noarg() { $luarocks new_version; } 349fail_new_version_noarg() { $luarocks new_version; }
@@ -432,6 +433,8 @@ test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download
432test_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}; }
433fail_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"; }
434 435
436fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; }
437
435test_admin_help() { $luarocks_admin help; } 438test_admin_help() { $luarocks_admin help; }
436 439
437test_admin_make_manifest() { $luarocks_admin make_manifest; } 440test_admin_make_manifest() { $luarocks_admin make_manifest; }
@@ -532,7 +535,10 @@ if [ "$travis" ]
532then 535then
533 build_environment luacov luafilesystem luacov-coveralls 536 build_environment luacov luafilesystem luacov-coveralls
534 echo "( cd $testing_dir && $testing_sys_tree/bin/luacov-coveralls || echo ok )" 537 echo "( cd $testing_dir && $testing_sys_tree/bin/luacov-coveralls || echo ok )"
535 ( cd $testing_dir; $testing_sys_tree/bin/luacov-coveralls || echo "ok" ) 538 if [ "$TRAVIS" ]
539 then
540 ( cd $testing_dir; $testing_sys_tree/bin/luacov-coveralls || echo "ok" )
541 fi
536 $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin 542 $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin
537 grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out 543 grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out
538else 544else