diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-18 15:32:54 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-12-18 15:32:54 -0200 |
commit | 138d823b77b9cbc30397d05286723cf499d85157 (patch) | |
tree | 8a4ab811ce2a414804e31c2034465ce3793651a2 /test | |
parent | 7a9bd561c4fd86a58eda66df14c26cf49d8361f6 (diff) | |
download | luarocks-138d823b77b9cbc30397d05286723cf499d85157.tar.gz luarocks-138d823b77b9cbc30397d05286723cf499d85157.tar.bz2 luarocks-138d823b77b9cbc30397d05286723cf499d85157.zip |
More tests
Diffstat (limited to 'test')
-rwxr-xr-x | test/testing.sh | 9 |
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 | |||
330 | test_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; } | 330 | test_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; } |
331 | test_build_supported_platforms() { $luarocks build lpty; } | 331 | test_build_supported_platforms() { $luarocks build lpty; } |
332 | 332 | ||
333 | test_build_deps_partial_match() { if [ "$travis" ]; then return; fi; $luarocks build yaml; } | 333 | test_build_deps_partial_match() { $luarocks build lrandom; } |
334 | test_build_show_downloads() { export LUAROCKS_CONFIG="$testing_dir/testing_config_show_downloads.lua" && $luarocks build alien; export LUAROCKS_CONFIG="$testing_dir/testing_config.lua"; } | 334 | test_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 | ||
336 | test_download_all() { $luarocks download --all validate-args && rm validate-args-*; } | 336 | test_download_all() { $luarocks download --all validate-args && rm validate-args-*; } |
@@ -340,8 +340,12 @@ test_help() { $luarocks help; } | |||
340 | 340 | ||
341 | test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luarocks install ./cprint-${verrev_cprint}.${platform}.rock && rm ./cprint-${verrev_cprint}.${platform}.rock; } | 341 | test_install_binaryrock() { $luarocks build --pack-binary-rock cprint && $luarocks install ./cprint-${verrev_cprint}.${platform}.rock && rm ./cprint-${verrev_cprint}.${platform}.rock; } |
342 | test_install_with_bin() { $luarocks install wsapi; } | 342 | test_install_with_bin() { $luarocks install wsapi; } |
343 | fail_install_notazipfile() { $luarocks install "$testing_dir/testfiles/not_a_zipfile-1.0-1.src.rock"; } | ||
343 | 344 | ||
344 | 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; } | 345 | 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; } |
346 | fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; } | ||
347 | fail_lint_type_mismatch_version() { $luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"; } | ||
348 | fail_lint_type_mismatch_table() { $luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"; } | ||
345 | 349 | ||
346 | test_list() { $luarocks list; } | 350 | test_list() { $luarocks list; } |
347 | test_list_porcelain() { $luarocks list --porcelain; } | 351 | test_list_porcelain() { $luarocks list --porcelain; } |
@@ -358,6 +362,9 @@ test_pack() { $luarocks list && $luarocks pack luacov && rm ./luacov-*.rock; } | |||
358 | test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } | 362 | test_pack_src() { $luarocks install $luasec && $luarocks download --rockspec luasocket && $luarocks pack ./luasocket-${verrev_luasocket}.rockspec && rm ./luasocket-${version_luasocket}-*.rock; } |
359 | 363 | ||
360 | test_path() { $luarocks path --bin; } | 364 | test_path() { $luarocks path --bin; } |
365 | test_path_lr_path() { $luarocks path --lr-path; } | ||
366 | test_path_lr_cpath() { $luarocks path --lr-cpath; } | ||
367 | test_path_lr_bin() { $luarocks path --lr-bin; } | ||
361 | 368 | ||
362 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } | 369 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } |
363 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } | 370 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } |