aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testing.bat2
-rwxr-xr-xtest/testing.sh37
2 files changed, 18 insertions, 21 deletions
diff --git a/test/testing.bat b/test/testing.bat
index 319e12c3..7083678b 100644
--- a/test/testing.bat
+++ b/test/testing.bat
@@ -1,7 +1,7 @@
1@echo off 1@echo off
2Setlocal EnableDelayedExpansion EnableExtensions 2Setlocal EnableDelayedExpansion EnableExtensions
3 3
4if not defined LUAROCKS_REPO set LUAROCKS_REPO=http://rocks.moonscript.org 4if not defined LUAROCKS_REPO set LUAROCKS_REPO=https://luarocks.org
5 5
6appveyor DownloadFile %LUAROCKS_REPO%/stdlib-41.0.0-1.src.rock 6appveyor DownloadFile %LUAROCKS_REPO%/stdlib-41.0.0-1.src.rock
7luarocks build stdlib 7luarocks build stdlib
diff --git a/test/testing.sh b/test/testing.sh
index 70bd68b2..44e78205 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -119,20 +119,15 @@ upload_servers = {
119EOF 119EOF
120cat <<EOF > $testing_dir/luacov.config 120cat <<EOF > $testing_dir/luacov.config
121return { 121return {
122 ["configfile"] = ".luacov", 122 statsfile = "$testing_dir/luacov.stats.out",
123 ["statsfile"] = "$testing_dir/luacov.stats.out", 123 reportfile = "$testing_dir/luacov.report.out",
124 ["reportfile"] = "$testing_dir/luacov.report.out", 124 modules = {
125 runreport = false, 125 ["luarocks"] = "src/bin/luarocks",
126 deletestats = false, 126 ["luarocks-admin"] = "src/bin/luarocks-admin",
127 ["include"] = {}, 127 ["luarocks.*"] = "src",
128 ["exclude"] = { 128 ["luarocks.*.*"] = "src",
129 "luacov$", 129 ["luarocks.*.*.*"] = "src"
130 "luacov%.reporter$", 130 }
131 "luacov%.defaults$",
132 "luacov%.runner$",
133 "luacov%.stats$",
134 "luacov%.tick$",
135 },
136} 131}
137EOF 132EOF
138 133
@@ -184,7 +179,7 @@ srcdir_luasocket=luasocket-3.0-rc1
184version_cprint=0.1 179version_cprint=0.1
185verrev_cprint=0.1-2 180verrev_cprint=0.1-2
186 181
187version_luacov=0.8 182version_luacov=0.9.1
188verrev_luacov=${version_luacov}-1 183verrev_luacov=${version_luacov}-1
189version_lxsh=0.8.6 184version_lxsh=0.8.6
190version_validate_args=1.5.4 185version_validate_args=1.5.4
@@ -230,7 +225,7 @@ luarocks_admin_nocov="run_lua --nocov luarocks-admin"
230mkdir -p "$testing_server" 225mkdir -p "$testing_server"
231( 226(
232 cd "$testing_server" 227 cd "$testing_server"
233 luarocks_repo="http://rocks.moonscript.org" 228 luarocks_repo="https://luarocks.org"
234 get() { [ -e `basename "$1"` ] || wget -c "$1"; } 229 get() { [ -e `basename "$1"` ] || wget -c "$1"; }
235 get "$luarocks_repo/luacov-${verrev_luacov}.src.rock" 230 get "$luarocks_repo/luacov-${verrev_luacov}.src.rock"
236 get "$luarocks_repo/luacov-${verrev_luacov}.rockspec" 231 get "$luarocks_repo/luacov-${verrev_luacov}.rockspec"
@@ -591,16 +586,18 @@ run_all_tests() {
591run_all_tests $1 586run_all_tests $1
592#run_with_minimal_environment $1 587#run_with_minimal_environment $1
593 588
589cd "$testing_dir/.."
590
594if [ "$travis" ] 591if [ "$travis" ]
595then 592then
596 if [ "$TRAVIS" ] 593 if [ "$TRAVIS" ]
597 then 594 then
598 build_environment luacov luafilesystem luacov-coveralls 595 build_environment luacov luafilesystem luacov-coveralls
599 ( cd $testing_dir; $testing_sys_tree/bin/luacov-coveralls || echo "ok" ) 596 $testing_sys_tree/bin/luacov-coveralls -c "$testing_dir/luacov.config" || echo "ok"
600 fi 597 fi
601 $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin 598 $testing_sys_tree/bin/luacov -c "$testing_dir/luacov.config"
602 grep "Summary" -B1 -A1000 $testing_dir/luacov.report.out 599 grep "Summary" -B1 -A1000 "$testing_dir/luacov.report.out"
603else 600else
604 $testing_sys_tree/bin/luacov -c $testing_dir/luacov.config src/luarocks src/bin 601 $testing_sys_tree/bin/luacov -c "$testing_dir/luacov.config"
605 cat "$testing_dir/luacov.report.out" 602 cat "$testing_dir/luacov.report.out"
606fi 603fi