X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=lcov_reports.sh;h=e2b48e3cade1f7c88ffacb85eeb6b63239075f04;hb=f64e1300ed35bb1e9a2486cdb5713355e832dd39;hp=a23ed3fd985fb955287b3f0ad8e150983ce25fa8;hpb=7097e88bc8df60df964840f561a96317ae34687c;p=modules%2Fshaper.git diff --git a/lcov_reports.sh b/lcov_reports.sh index a23ed3fd9..e2b48e3ca 100755 --- a/lcov_reports.sh +++ b/lcov_reports.sh @@ -9,20 +9,19 @@ lcov --capture --directory ${BUILD_DIR} --no-external --base-directory ${SOURCES # 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) -# RefAttrList is unused type of attribute for now -for MASK in '*wrap*' 'moc_*' 'XAO_*' 'SketcherPrs_*' 'GeomAlgoImpl_*' 'ModuleBase_*' '*Widget*' '*Splitter*' '*RefAttrList*'; 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 -ALL='BuildPlugin CollectionPlugin ConstructionPlugin ExchangePlugin FeaturesPlugin GDMLPlugin PrimitivesPlugin InitializationPlugin ParametersPlugin PartSetPlugin SketchPlugin' -ALL+=' GDMLAPI PrimitivesAPI BuilderAPI CollectionAPI ConnectorAPI ConstructionAPI ModelAPI ExchangeAPI FeaturesAPI ModelHighAPI ParametersAPI PartSetAPI SketchAPI BuildAPI GeomDataAPI GeomAPI GeomAlgoAPI' +ALL='BuildPlugin CollectionPlugin ConstructionPlugin ExchangePlugin FiltersPlugin FeaturesPlugin GDMLPlugin PrimitivesPlugin InitializationPlugin ParametersPlugin PartSetPlugin SketchPlugin' +ALL+=' GDMLAPI PrimitivesAPI BuilderAPI CollectionAPI ConnectorAPI ConstructionAPI ModelAPI ExchangeAPI FiltersAPI FeaturesAPI ModelHighAPI ParametersAPI PartSetAPI SketchAPI BuildAPI GeomDataAPI GeomAPI GeomAlgoAPI' ALL+=' Config Events GeomValidators Model_ ModelGeomAlgo Selector SketchSolver GeomData' # prepare API report cp -f covfile covAPI # remove all plugins data except the needed -NEED='BuildAPI CollectionAPI ConnectorAPI ConstructionAPI ExchangeAPI FeaturesAPI GDMLAPI ModelHighAPI ParametersAPI PartSetAPI PrimitivesAPI SketchAPI' +NEED='BuildAPI CollectionAPI ConnectorAPI ConstructionAPI ExchangeAPI FiltersAPI FeaturesAPI ModelHighAPI ParametersAPI PartSetAPI PrimitivesAPI SketchAPI' for MASK in $ALL; do if ! [[ " $NEED " =~ " $MASK " ]]; then lcov -r covAPI *${MASK}* --output-file covAPI_res -q @@ -43,6 +42,14 @@ for MASK in $ALL; do mv -f covDirect_res covDirect fi done +# exclude GeomAPI_AISObject as GUI-related object +lcov -r covDirect GeomAPI_AISObject* --output-file covDirect_res -q +mv -f covDirect_res covDirect +# exclude coverage of algorithms related to GDML plugin +lcov -r covDirect GeomAlgoAPI_ConeSegment* --output-file covDirect_res -q +mv -f covDirect_res covDirect +lcov -r covDirect GeomAlgoAPI_Ellipsoid* --output-file covDirect_res -q +mv -f covDirect_res covDirect rm -rf lcov_htmlDirect genhtml covDirect --output-directory lcov_htmlDirect -q @@ -50,16 +57,13 @@ genhtml covDirect --output-directory lcov_htmlDirect -q # prepare Else report cp -f covfile covElse # remove all plugins data except the needed -NEED='BuildPlugin CollectionPlugin Config ConstructionPlugin Events ExchangePlugin FeaturesPlugin GDMLPlugin GeomData GeomDataAPI GeomValidators InitializationPlugin Model_ ModelAPI ModelGeomAlgo ParametersPlugin PartSetPlugin PrimitivesPlugin Selector SketchPlugin SketchSolver' +NEED='BuildPlugin CollectionPlugin Config ConstructionPlugin Events ExchangePlugin FiltersPlugin FeaturesPlugin GeomData GeomDataAPI GeomValidators InitializationPlugin Model_ ModelAPI ModelGeomAlgo ParametersPlugin PartSetPlugin PrimitivesPlugin Selector SketchPlugin SketchSolver' for MASK in $ALL; do if ! [[ " $NEED " =~ " $MASK " ]]; then lcov -r covElse *${MASK}* --output-file covElse_res -q mv -f covElse_res covElse fi done -# remove SketchPlugin's Ellipse feature (unsupported yet) -lcov -r covElse SketchPlugin*Ellipse* --output-file covElse_res -q -mv -f covElse_res covElse rm -rf lcov_htmlElse genhtml covElse --output-directory lcov_htmlElse -q