diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 01:52:44 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 01:52:44 -0300 |
commit | ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099 (patch) | |
tree | ca34bc3317bc6b3afee5d5d14315088d60b0d8c2 /test | |
parent | a19af6d438247812e07528a1b18781d7f04863eb (diff) | |
download | luarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.tar.gz luarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.tar.bz2 luarocks-ed02691e8b7ce5e500ac1fe3c9c3f894e95b6099.zip |
Add trivial tests for `luarocks upload`
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 8 |
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; } | |||
343 | fail_search_noarg() { $luarocks search; } | 343 | fail_search_noarg() { $luarocks search; } |
344 | fail_show_noarg() { $luarocks show; } | 344 | fail_show_noarg() { $luarocks show; } |
345 | fail_unpack_noarg() { $luarocks unpack; } | 345 | fail_unpack_noarg() { $luarocks unpack; } |
346 | fail_upload_noarg() { $luarocks upload; } | ||
346 | fail_remove_noarg() { $luarocks remove; } | 347 | fail_remove_noarg() { $luarocks remove; } |
347 | fail_doc_noarg() { $luarocks doc; } | 348 | fail_doc_noarg() { $luarocks doc; } |
348 | fail_new_version_noarg() { $luarocks new_version; } | 349 | fail_new_version_noarg() { $luarocks new_version; } |
@@ -432,6 +433,8 @@ test_unpack_rockspec() { rm -rf ./cprint-${verrev_cprint} && $luarocks download | |||
432 | 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}; } |
433 | 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"; } |
434 | 435 | ||
436 | fail_upload_invalidrockspec() { $luarocks upload "invalid.rockspec"; } | ||
437 | |||
435 | test_admin_help() { $luarocks_admin help; } | 438 | test_admin_help() { $luarocks_admin help; } |
436 | 439 | ||
437 | test_admin_make_manifest() { $luarocks_admin make_manifest; } | 440 | test_admin_make_manifest() { $luarocks_admin make_manifest; } |
@@ -532,7 +535,10 @@ if [ "$travis" ] | |||
532 | then | 535 | then |
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 |
538 | else | 544 | else |