aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-12-18 15:32:54 -0200
committerHisham Muhammad <hisham@gobolinux.org>2013-12-18 15:32:54 -0200
commit138d823b77b9cbc30397d05286723cf499d85157 (patch)
tree8a4ab811ce2a414804e31c2034465ce3793651a2 /test
parent7a9bd561c4fd86a58eda66df14c26cf49d8361f6 (diff)
downloadluarocks-138d823b77b9cbc30397d05286723cf499d85157.tar.gz
luarocks-138d823b77b9cbc30397d05286723cf499d85157.tar.bz2
luarocks-138d823b77b9cbc30397d05286723cf499d85157.zip
More tests
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 24aa5e78..0fa40e53 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -330,7 +330,7 @@ fail_build_nohttps() { need_luasocket; $luarocks download --rockspec validate-ar
330test_build_https() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx && pwd && ls && $luarocks install $luasec && pwd && ls && $luarocks build ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; } 330test_build_https() { need_luasocket; $luarocks download --rockspec validate-args ${verrev_validate_args} && echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx && pwd && ls && $luarocks install $luasec && pwd && ls && $luarocks build ./validate-args-${verrev_validate_args}.rockspec && rm ./validate-args-${verrev_validate_args}.rockspec; }
331test_build_supported_platforms() { $luarocks build lpty; } 331test_build_supported_platforms() { $luarocks build lpty; }
332 332
333test_build_deps_partial_match() { if [ "$travis" ]; then return; fi; $luarocks build yaml; } 333test_build_deps_partial_match() { $luarocks build lrandom; }
334test_build_show_downloads() { export LUAROCKS_CONFIG="$testing_dir/testing_config_show_downloads.lua" && $luarocks build alien; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; } 334test_build_show_downloads() { export LUAROCKS_CONFIG="$testing_dir/testing_config_show_downloads.lua" && $luarocks build alien; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; }
335 335
336test_download_all() { $luarocks download --all validate-args && rm validate-args-*; } 336test_download_all() { $luarocks download --all validate-args && rm validate-args-*; }
@@ -340,8 +340,12 @@ test_help() { $luarocks help; }
340 340
341test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luarocks install ./cprint-${verrev_cprint}.${platform}.rock && rm ./cprint-${verrev_cprint}.${platform}.rock; } 341test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luarocks install ./cprint-${verrev_cprint}.${platform}.rock && rm ./cprint-${verrev_cprint}.${platform}.rock; }
342test_install_with_bin() { $luarocks install wsapi; } 342test_install_with_bin() { $luarocks install wsapi; }
343fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; }
343 344
344test_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; } 345test_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; }
346fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; }
347fail_lint_type_mismatch_version() { $luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"; }
348fail_lint_type_mismatch_table() { $luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"; }
345 349
346test_list() { $luarocks list; } 350test_list() { $luarocks list; }
347test_list_porcelain() { $luarocks list --porcelain; } 351test_list_porcelain() { $luarocks list --porcelain; }
@@ -358,6 +362,9 @@ test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; }
358test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } 362test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; }
359 363
360test_path() { $luarocks path --bin; } 364test_path() { $luarocks path --bin; }
365test_path_lr_path() { $luarocks path --lr-path; }
366test_path_lr_cpath() { $luarocks path --lr-cpath; }
367test_path_lr_bin() { $luarocks path --lr-bin; }
361 368
362fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } 369fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; }
363test_purge() { $luarocks purge --tree="$testing_sys_tree"; } 370test_purge() { $luarocks purge --tree="$testing_sys_tree"; }