diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testing.bat | 2 | ||||
-rwxr-xr-x | test/testing.sh | 37 |
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 |
2 | Setlocal EnableDelayedExpansion EnableExtensions | 2 | Setlocal EnableDelayedExpansion EnableExtensions |
3 | 3 | ||
4 | if not defined LUAROCKS_REPO set LUAROCKS_REPO=http://rocks.moonscript.org | 4 | if not defined LUAROCKS_REPO set LUAROCKS_REPO=https://luarocks.org |
5 | 5 | ||
6 | appveyor DownloadFile %LUAROCKS_REPO%/stdlib-41.0.0-1.src.rock | 6 | appveyor DownloadFile %LUAROCKS_REPO%/stdlib-41.0.0-1.src.rock |
7 | luarocks build stdlib | 7 | luarocks 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 = { | |||
119 | EOF | 119 | EOF |
120 | cat <<EOF > $testing_dir/luacov.config | 120 | cat <<EOF > $testing_dir/luacov.config |
121 | return { | 121 | return { |
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 | } |
137 | EOF | 132 | EOF |
138 | 133 | ||
@@ -184,7 +179,7 @@ srcdir_luasocket=luasocket-3.0-rc1 | |||
184 | version_cprint=0.1 | 179 | version_cprint=0.1 |
185 | verrev_cprint=0.1-2 | 180 | verrev_cprint=0.1-2 |
186 | 181 | ||
187 | version_luacov=0.8 | 182 | version_luacov=0.9.1 |
188 | verrev_luacov=${version_luacov}-1 | 183 | verrev_luacov=${version_luacov}-1 |
189 | version_lxsh=0.8.6 | 184 | version_lxsh=0.8.6 |
190 | version_validate_args=1.5.4 | 185 | version_validate_args=1.5.4 |
@@ -230,7 +225,7 @@ luarocks_admin_nocov="run_lua --nocov luarocks-admin" | |||
230 | mkdir -p "$testing_server" | 225 | mkdir -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() { | |||
591 | run_all_tests $1 | 586 | run_all_tests $1 |
592 | #run_with_minimal_environment $1 | 587 | #run_with_minimal_environment $1 |
593 | 588 | ||
589 | cd "$testing_dir/.." | ||
590 | |||
594 | if [ "$travis" ] | 591 | if [ "$travis" ] |
595 | then | 592 | then |
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" |
603 | else | 600 | else |
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" |
606 | fi | 603 | fi |