aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:59:24 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-26 02:59:35 -0300
commit5b45de21552d8daba274913bed83694d8f6e0385 (patch)
tree9811969538c413b3bd421b6df7676134327ecfed /test
parent98e09791e8c5ae540f57ec3305f05b0589164c90 (diff)
downloadluarocks-5b45de21552d8daba274913bed83694d8f6e0385.tar.gz
luarocks-5b45de21552d8daba274913bed83694d8f6e0385.tar.bz2
luarocks-5b45de21552d8daba274913bed83694d8f6e0385.zip
More small tests.
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh10
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
361fail_make_norockspec() { $luarocks make; } 361fail_make_norockspec() { $luarocks make; }
362 362
363fail_build_permissions() { $luarocks build --tree=/usr lpeg; }
364fail_build_permissions_parent() { $luarocks build --tree=/usr/invalid lpeg; }
365
366test_build_verbose() { $luarocks build --verbose lpeg; }
363fail_build_blank_arg() { $luarocks build --tree="" lpeg; } 367fail_build_blank_arg() { $luarocks build --tree="" lpeg; }
364test_build_withpatch() { need_luasocket; $luarocks build luadoc; } 368test_build_withpatch() { need_luasocket; $luarocks build luadoc; }
365test_build_diffversion() { $luarocks build luacov ${version_luacov}; } 369test_build_diffversion() { $luarocks build luacov ${version_luacov}; }
@@ -384,6 +388,9 @@ test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luaroc
384test_install_with_bin() { $luarocks install wsapi; } 388test_install_with_bin() { $luarocks install wsapi; }
385fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; } 389fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; }
386fail_install_invalidpatch() { need_luasocket; $luarocks install "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; } 390fail_install_invalidpatch() { need_luasocket; $luarocks install "$testing_dir/testfiles/invalid_patch-0.1-1.rockspec"; }
391fail_install_invalid_filename() { $luarocks install "invalid.rock"; }
392fail_install_invalid_arch() { $luarocks install "foo-1.0-1.impossible-x86.rock"; }
393test_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
388test_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; } 395test_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; }
389fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; } 396fail_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
534if [ "$travis" ] 541if [ "$travis" ]
535then 542then
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