Salome HOME
Add Primitives and GDML packages (both Plugins and API) to the code coverage reports.
authormpv <mpv@opencascade.com>
Fri, 16 Nov 2018 10:09:55 +0000 (13:09 +0300)
committermpv <mpv@opencascade.com>
Mon, 19 Nov 2018 08:45:52 +0000 (11:45 +0300)
lcov_reports.sh

index ff376c922ca148c162c7d7a8cc883e1e7789b5ad..89ea89df72f17dec74779efd43028eca11c41040 100644 (file)
@@ -9,7 +9,7 @@ lcov --capture --directory /data/mpv/build --no-external --base-directory=/data/
 # make a working copy of report
 cp -f coverage.info.noext covfile
 # remove all reports of GUI and external parts (for all the next kinds of reports)
-for MASK in '*wrap*' 'moc_*' 'XAO_*' 'SketcherPrs_*' 'GeomAlgoImpl_*' 'ModuleBase_*' 'Primitives*' '*Widget*' '*Splitter*'; do
+for MASK in '*wrap*' 'moc_*' 'XAO_*' 'SketcherPrs_*' 'GeomAlgoImpl_*' 'ModuleBase_*' '*Widget*' '*Splitter*'; do
 lcov -r covfile ${MASK} --output-file covfile_res -q
 mv -f covfile_res covfile
 done
@@ -18,12 +18,12 @@ done
 # prepare API report
 cp -f covfile covAPI
 # remove plugins
-for MASK in 'Build' 'Collection' 'Construction' 'Exchange' 'Features' 'GDML' 'Initialization' 'Parameters' 'PartSet' 'Sketch'; do
+for MASK in 'Build' 'Collection' 'Construction' 'Exchange' 'Features' 'GDML' 'Primitives' 'Initialization' 'Parameters' 'PartSet' 'Sketch'; do
 lcov -r covAPI *${MASK}Plugin* --output-file covAPI_res -q
 mv -f covAPI_res covAPI
 done
 # remove low level API
-for MASK in 'GDML' 'Geom' 'GeomAlgo' 'GeomData' 'Model'; do
+for MASK in 'Geom' 'GeomAlgo' 'GeomData' 'Model'; do
 lcov -r covAPI *${MASK}API* --output-file covAPI_res -q
 mv -f covAPI_res covAPI
 done
@@ -39,13 +39,13 @@ genhtml covAPI --output-directory lcov_htmlAPI -q
 # prepare Direct report
 cp -f covfile covDirect
 # remove plugins
-for MASK in 'Build' 'Collection' 'Construction' 'Exchange' 'Features' 'GDML' 'Initialization' 'Parameters' 'PartSet' 'Sketch'; do
+for MASK in 'Build' 'Collection' 'Construction' 'Exchange' 'Features' 'GDML' 'Primitives' 'Initialization' 'Parameters' 'PartSet' 'Sketch'; do
 str=$startmask$MASK$endmask
 lcov -r covDirect *${MASK}Plugin* --output-file covDirect_res -q
 mv -f covDirect_res covDirect
 done
 # remove low level API
-for MASK in 'GDML' 'Builder' 'Collection' 'Connector' 'Construction' 'Model' 'Exchange' 'Features' 'ModelHigh' 'Parameters' 'PartSet' 'Sketch' 'Build' 'GeomData'; do
+for MASK in 'GDML' 'Primitives' 'Builder' 'Collection' 'Connector' 'Construction' 'Model' 'Exchange' 'Features' 'ModelHigh' 'Parameters' 'PartSet' 'Sketch' 'Build' 'GeomData'; do
 lcov -r covDirect *${MASK}API* --output-file covDirect_res -q
 mv -f covDirect_res covDirect
 done
@@ -60,14 +60,8 @@ genhtml covDirect --output-directory lcov_htmlDirect -q
 
 # prepare Else report
 cp -f covfile covElse
-# remove plugins
-for MASK in 'GDML'; do
-str=$startmask$MASK$endmask
-lcov -r covElse *${MASK}Plugin* --output-file covElse_res -q
-mv -f covElse_res covElse
-done
 # remove low level API
-for MASK in 'Geom' 'GeomAlgo' 'GDML' 'Builder' 'Collection' 'Connector' 'Construction' 'Exchange' 'Features' 'ModelHigh' 'Parameters' 'PartSet' 'Sketch' 'Build'; do
+for MASK in 'Geom' 'GeomAlgo' 'GDML' 'Primitives' 'Builder' 'Collection' 'Connector' 'Construction' 'Exchange' 'Features' 'ModelHigh' 'Parameters' 'PartSet' 'Sketch' 'Build'; do
 lcov -r covElse *${MASK}API* --output-file covElse_res -q
 mv -f covElse_res covElse
 done