diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:59:24 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-26 02:59:35 -0300 |
commit | 5b45de21552d8daba274913bed83694d8f6e0385 (patch) | |
tree | 9811969538c413b3bd421b6df7676134327ecfed /test | |
parent | 98e09791e8c5ae540f57ec3305f05b0589164c90 (diff) | |
download | luarocks-5b45de21552d8daba274913bed83694d8f6e0385.tar.gz luarocks-5b45de21552d8daba274913bed83694d8f6e0385.tar.bz2 luarocks-5b45de21552d8daba274913bed83694d8f6e0385.zip |
More small tests.
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/testing.sh b/test/testing.sh index 2c87183f..ab444151 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
@@ -360,6 +360,10 @@ fail_inexistent_dir() { mkdir idontexist; cd idontexist; rmdir ../idontexist; $l | |||
360 | 360 | ||
361 | fail_make_norockspec() { $luarocks make; } | 361 | fail_make_norockspec() { $luarocks make; } |
362 | 362 | ||
363 | fail_build_permissions() { $luarocks build --tree=/usr lpeg; } | ||
364 | fail_build_permissions_parent() { $luarocks build --tree=/usr/invalid lpeg; } | ||
365 | |||
366 | test_build_verbose() { $luarocks build --verbose lpeg; } | ||
363 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } | 367 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } |
364 | test_build_withpatch() { need_luasocket; $luarocks build luadoc; } | 368 | test_build_withpatch() { need_luasocket; $luarocks build luadoc; } |
365 | test_build_diffversion() { $luarocks build luacov ${version_luacov}; } | 369 | test_build_diffversion() { $luarocks build luacov ${version_luacov}; } |
@@ -384,6 +388,9 @@ test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luaroc | |||
384 | test_install_with_bin() { $luarocks install wsapi; } | 388 | test_install_with_bin() { $luarocks install wsapi; } |
385 | fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; } | 389 | fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; } |
386 | fail_install_invalidpatch() { need_luasocket; $luarocks install "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } | 390 | fail_install_invalidpatch() { need_luasocket; $luarocks install "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } |
391 | fail_install_invalid_filename() { $luarocks install "invalid.rock"; } | ||
392 | fail_install_invalid_arch() { $luarocks install "foo-1.0-1.impossible-x86.rock"; } | ||
393 | test_install_reinstall() { $luarocks install "$testing_cache/luasocket-$verrev_luasocket.$platform.rock"; $luarocks install --deps-mode=none "$testing_cache/luasocket-$verrev_luasocket.$platform.rock"; } | ||
387 | 394 | ||
388 | test_lint_ok() { $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks lint ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; } | 395 | test_lint_ok() { $luarocks download --rockspec validate-args ${verrev_validate_args} && $luarocks lint ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; } |
389 | fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; } | 396 | fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; } |
@@ -533,10 +540,9 @@ run_all_tests $1 | |||
533 | 540 | ||
534 | if [ "$travis" ] | 541 | if [ "$travis" ] |
535 | then | 542 | then |
536 | build_environment luacov luafilesystem luacov-coveralls | ||
537 | echo "( cd $testing_dir && $testing_sys_tree/bin/luacov-coveralls || echo ok )" | ||
538 | if [ "$TRAVIS" ] | 543 | if [ "$TRAVIS" ] |
539 | then | 544 | then |
545 | build_environment luacov luafilesystem luacov-coveralls | ||
540 | ( cd $testing_dir; $testing_sys_tree/bin/luacov-coveralls || echo "ok" ) | 546 | ( cd $testing_dir; $testing_sys_tree/bin/luacov-coveralls || echo "ok" ) |
541 | fi | 547 | fi |
542 | $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin | 548 | $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin |