[Libreoffice-commits] dev-tools.git: lcov/coverage.sh
Miklos Vajna
vmiklos at collabora.co.uk
Thu Jan 16 06:59:59 PST 2014
lcov/coverage.sh | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
New commits:
commit ae79f4cf6cabb7c2f26435da7fe74ad33976d14f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Jan 16 15:59:18 2014 +0100
fix coverage.sh after INPATH removal
Change-Id: Ib592907711759a4d0d416e49010f9097ccdf1b81
diff --git a/lcov/coverage.sh b/lcov/coverage.sh
index 99bbdc5..ee52aec 100755
--- a/lcov/coverage.sh
+++ b/lcov/coverage.sh
@@ -18,18 +18,18 @@ coverage()
tests="$5"
set -ex
- rm -rf workdir/*/CxxObject/$srcmodule/$srcdir/$srcfiles.{gcda,gcno} libreoffice.info coverage
+ rm -rf workdir/CxxObject/$srcmodule/$srcdir/$srcfiles.{gcda,gcno} libreoffice.info coverage
cd $srcmodule
touch $srcdir/$srcfiles
make -sr -j$parallelism gb_GCOV=YES
cd ../$testmodule
make -sr -j$parallelism $tests
cd ..
- lcov --directory workdir/*/CxxObject/$srcmodule/$srcdir --capture --output-file libreoffice.info
+ lcov --directory workdir/CxxObject/$srcmodule/$srcdir --capture --output-file libreoffice.info
genhtml -o coverage libreoffice.info
}
-parallelism=$(make -s cmd cmd='echo $(CHECK_PARALLELISM)'|tail -n 1)
+parallelism=$(make -s cmd cmd='echo $(PARALLELISM)'|tail -n 1)
case "$1" in
sw_docxexport)
@@ -40,9 +40,13 @@ case "$1" in
# Writer RTF import
coverage writerfilter source/rtftok '*' sw 'CppunitTest_sw_rtfimport CppunitTest_sw_rtfexport'
;;
+ sw_rtfpaste)
+ # Writer RTF paste
+ coverage sw source/filter/rtf '*' sw CppunitTest_sw_uiwriter
+ ;;
sw_rtfexport)
# Writer RTF export
- coverage sw source/filter/ww8 'rtf*' sw CppunitTest_sw_rtfexport
+ coverage sw source/filter/ww8 'rtf*' sw 'CppunitTest_sw_rtfexport CppunitTest_sw_uiwriter'
;;
*)
echo "Unknown code area. The currently supported ones are:"
@@ -50,6 +54,7 @@ case "$1" in
echo "sw_docxexport"
echo "sw_rtfexport"
echo "sw_rtfimport"
+ echo "sw_rtfpaste"
;;
esac
More information about the Libreoffice-commits
mailing list