aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormpeterv <mpeterval@gmail.com>2016-01-04 15:32:37 +0300
committermpeterv <mpeterval@gmail.com>2016-01-04 15:39:36 +0300
commitcf02cd21e225f9c9c0eba8f3cf53567209bebe47 (patch)
tree9237215dff47885b9908fbefcd032c4e7daec54c /test
parentfaf7b4d2688a8d6027c062a9f0ebd7baee9ab5f5 (diff)
downloadluarocks-cf02cd21e225f9c9c0eba8f3cf53567209bebe47.tar.gz
luarocks-cf02cd21e225f9c9c0eba8f3cf53567209bebe47.tar.bz2
luarocks-cf02cd21e225f9c9c0eba8f3cf53567209bebe47.zip
Upgrade to LuaCov 0.9.1, make coverage viewable
Diffstat (limited to 'test')
-rwxr-xr-xtest/testing.sh35
1 files changed, 16 insertions, 19 deletions
diff --git a/test/testing.sh b/test/testing.sh
index 70bd68b2..dc7912bf 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
@@ -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