diff options
author | mpeterv <mpeterval@gmail.com> | 2016-01-04 15:32:37 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-01-04 15:39:36 +0300 |
commit | cf02cd21e225f9c9c0eba8f3cf53567209bebe47 (patch) | |
tree | 9237215dff47885b9908fbefcd032c4e7daec54c /test | |
parent | faf7b4d2688a8d6027c062a9f0ebd7baee9ab5f5 (diff) | |
download | luarocks-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-x | test/testing.sh | 35 |
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 = { | |||
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 |
@@ -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 |