X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=lcov_reports.sh;h=cd094cf1528fb31670e24af8f0b45dfd6e2d4ce3;hb=dac0a1447e65c792b3283ed290976b1634d793a9;hp=0fc2f13f89cce8264a0b97911a68b9f52d12372c;hpb=d0b1fffdcead73cbfb22a9f62b794479341c2ca5;p=modules%2Fshaper.git diff --git a/lcov_reports.sh b/lcov_reports.sh index 0fc2f13f8..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 @@ -43,6 +43,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,10 +58,10 @@ 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 GeomDataAPLI 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}API* --output-file covElse_res -q + lcov -r covElse *${MASK}* --output-file covElse_res -q mv -f covElse_res covElse fi done