X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=lcov_reports.sh;h=cd094cf1528fb31670e24af8f0b45dfd6e2d4ce3;hb=a66b0bcd9669a90bcdf30ea3188ee409325cc21f;hp=de745d0f7a726630af6c56cab8e79ae27a2cd085;hpb=cf11142a6059ad586ddc8353cca8a64a3c140e14;p=modules%2Fshaper.git diff --git a/lcov_reports.sh b/lcov_reports.sh index de745d0f7..cd094cf15 100755 --- a/lcov_reports.sh +++ b/lcov_reports.sh @@ -15,14 +15,14 @@ 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 @@ -44,8 +44,13 @@ for MASK in $ALL; do fi done # exclude GeomAPI_AISObject as GUI-related object -lcov -r covElse GeomAPI_AISObject* --output-file covElse_res -q -mv -f covElse_res covElse +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 @@ -53,16 +58,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