diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-25 13:31:57 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-25 13:31:57 -0300 |
| commit | f3aaee78795aec6485a781352777512604ca0a93 (patch) | |
| tree | dbce9c63e67376b6648af5d6b4df21163a727fda | |
| parent | 836898f2b0cd2a71fac04c4f7e6fb547f112162f (diff) | |
| download | luarocks-f3aaee78795aec6485a781352777512604ca0a93.tar.gz luarocks-f3aaee78795aec6485a781352777512604ca0a93.tar.bz2 luarocks-f3aaee78795aec6485a781352777512604ca0a93.zip | |
Avoid tests that mess with the testing environment.
| -rwxr-xr-x | test/testing.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/testing.sh b/test/testing.sh index b92f5d99..42ce2751 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
| @@ -180,6 +180,8 @@ version_lxsh=0.8.6 | |||
| 180 | version_validate_args=1.5.4 | 180 | version_validate_args=1.5.4 |
| 181 | verrev_validate_args=1.5.4-1 | 181 | verrev_validate_args=1.5.4-1 |
| 182 | verrev_lxsh=${version_lxsh}-2 | 182 | verrev_lxsh=${version_lxsh}-2 |
| 183 | version_abelhas=1.0 | ||
| 184 | verrev_abelhas=${version_abelhas}-1 | ||
| 183 | 185 | ||
| 184 | luasec=luasec | 186 | luasec=luasec |
| 185 | 187 | ||
| @@ -237,7 +239,7 @@ mkdir -p "$testing_server" | |||
| 237 | get "$luarocks_repo/cprint-${verrev_cprint}.rockspec" | 239 | get "$luarocks_repo/cprint-${verrev_cprint}.rockspec" |
| 238 | get "$luarocks_repo/wsapi-1.6-1.src.rock" | 240 | get "$luarocks_repo/wsapi-1.6-1.src.rock" |
| 239 | get "$luarocks_repo/lxsh-${verrev_lxsh}.src.rock" | 241 | get "$luarocks_repo/lxsh-${verrev_lxsh}.src.rock" |
| 240 | get "$luarocks_repo/abelhas-1.0-1.rockspec" | 242 | get "$luarocks_repo/abelhas-${verrev_abelhas}.rockspec" |
| 241 | get "$luarocks_repo/lzlib-0.4.1.53-1.src.rock" | 243 | get "$luarocks_repo/lzlib-0.4.1.53-1.src.rock" |
| 242 | get "$luarocks_repo/lpeg-0.12-1.src.rock" | 244 | get "$luarocks_repo/lpeg-0.12-1.src.rock" |
| 243 | get "$luarocks_repo/luaposix-33.2.1-1.src.rock" | 245 | get "$luarocks_repo/luaposix-33.2.1-1.src.rock" |
| @@ -407,7 +409,7 @@ test_path_lr_bin() { $luarocks path --lr-bin; } | |||
| 407 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } | 409 | fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } |
| 408 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } | 410 | test_purge() { $luarocks purge --tree="$testing_sys_tree"; } |
| 409 | 411 | ||
| 410 | test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; } | 412 | test_remove() { $luarocks build abelhas ${version_abelhas} && $luarocks remove abelhas ${version_abelhas}; } |
| 411 | test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; } | 413 | test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; } |
| 412 | fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; } | 414 | fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; } |
| 413 | fail_remove_missing() { $luarocks remove missing_rock; } | 415 | fail_remove_missing() { $luarocks remove missing_rock; } |
| @@ -511,9 +513,8 @@ run_with_full_environment() { | |||
| 511 | 513 | ||
| 512 | local bitop= | 514 | local bitop= |
| 513 | [ "$luaversion" = "5.1.5" ] && bitop=luabitop | 515 | [ "$luaversion" = "5.1.5" ] && bitop=luabitop |
| 514 | [ "$travis" ] && luacov_coveralls=luacov-coveralls | ||
| 515 | 516 | ||
| 516 | build_environment luacov $luacov_coveralls luafilesystem luasocket $bitop luaposix md5 lzlib | 517 | build_environment luacov luafilesystem luasocket $bitop luaposix md5 lzlib |
| 517 | run_tests $1 | 518 | run_tests $1 |
| 518 | } | 519 | } |
| 519 | 520 | ||
| @@ -529,6 +530,7 @@ $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin | |||
| 529 | 530 | ||
| 530 | if [ "$travis" ] | 531 | if [ "$travis" ] |
| 531 | then | 532 | then |
| 533 | build_environment luacov luacov-coveralls | ||
| 532 | $testing_sys_tree/bin/luacov-coveralls | 534 | $testing_sys_tree/bin/luacov-coveralls |
| 533 | grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out | 535 | grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out |
| 534 | else | 536 | else |
