aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-25 13:31:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-25 13:31:57 -0300
commitf3aaee78795aec6485a781352777512604ca0a93 (patch)
treedbce9c63e67376b6648af5d6b4df21163a727fda
parent836898f2b0cd2a71fac04c4f7e6fb547f112162f (diff)
downloadluarocks-f3aaee78795aec6485a781352777512604ca0a93.tar.gz
luarocks-f3aaee78795aec6485a781352777512604ca0a93.tar.bz2
luarocks-f3aaee78795aec6485a781352777512604ca0a93.zip
Avoid tests that mess with the testing environment.
Diffstat (limited to '')
-rwxr-xr-xtest/testing.sh10
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
180version_validate_args=1.5.4 180version_validate_args=1.5.4
181verrev_validate_args=1.5.4-1 181verrev_validate_args=1.5.4-1
182verrev_lxsh=${version_lxsh}-2 182verrev_lxsh=${version_lxsh}-2
183version_abelhas=1.0
184verrev_abelhas=${version_abelhas}-1
183 185
184luasec=luasec 186luasec=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; }
407fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; } 409fail_purge_missing_tree() { $luarocks purge --tree="$testing_tree"; }
408test_purge() { $luarocks purge --tree="$testing_sys_tree"; } 410test_purge() { $luarocks purge --tree="$testing_sys_tree"; }
409 411
410test_remove() { $luarocks build luacov ${version_luacov} && $luarocks remove luacov ${version_luacov}; } 412test_remove() { $luarocks build abelhas ${version_abelhas} && $luarocks remove abelhas ${version_abelhas}; }
411test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; } 413test_remove_force() { need_luasocket; $luarocks build lualogging && $luarocks remove --force luasocket; }
412fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; } 414fail_remove_deps() { need_luasocket; $luarocks build lualogging && $luarocks remove luasocket; }
413fail_remove_missing() { $luarocks remove missing_rock; } 415fail_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
530if [ "$travis" ] 531if [ "$travis" ]
531then 532then
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
534else 536else