[openrtm-commit:01571] r2638 - trunk/OpenRTM-aist/src/lib/rtm/tests
openrtm @ openrtm.org
openrtm @ openrtm.org
2015年 6月 25日 (木) 16:22:46 JST
Author: irie
Date: 2015-06-25 16:22:46 +0900 (Thu, 25 Jun 2015)
New Revision: 2638
Modified:
trunk/OpenRTM-aist/src/lib/rtm/tests/rtm_coverage.sh
Log:
[compat,test] Able to aggregate coverage data of all test class. refs #3208
Modified: trunk/OpenRTM-aist/src/lib/rtm/tests/rtm_coverage.sh
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/tests/rtm_coverage.sh 2015-06-25 00:54:04 UTC (rev 2637)
+++ trunk/OpenRTM-aist/src/lib/rtm/tests/rtm_coverage.sh 2015-06-25 07:22:46 UTC (rev 2638)
@@ -1,17 +1,8 @@
#!/bin/sh
#
-# chmod 775
-#
-compileOKDir_list="CORBA_IORUtil ConnectorListener CorbaConsumer NVUtil NumberingPolicy ObjectManager OutPortProvider PeriodicECSharedComposite RTCUtil RingBuffer SdoOrganization SdoService StateMachine"
-
-#compileOKDir_list="CORBA_IORUtil"
-
Tests="Tests"
-#echo "--------cd src/lib/rtm/tests--------"
-#cd OpenRTM-aist/src/lib/rtm/tests
-
COVERAGE_DIR=../Coverage
if [ -e $COVERAGE_DIR ]; then
@@ -22,11 +13,13 @@
mkdir $COVERAGE_DIR
makeOKDirCoverage2rtm () {
- for dir in $*; do
+ for dir in `ls -l | awk '$1 ~ /d/{print $9}'`; do
cd $dir
pwd
runCmd=$dir$Tests
- cat ./Coverage/$runCmd.info >> ../../Coverage/allcoverage.info
+ if [ -e ./Coverage ]; then
+ cat ./Coverage/$runCmd.info >> ../../Coverage/allcoverage.info
+ fi
cd ../
pwd
done
@@ -36,6 +29,4 @@
genhtml -o . allcoverage.info
}
-makeOKDirCoverage2rtm $compileOKDir_list
-
-
+makeOKDirCoverage2rtm
More information about the openrtm-commit
mailing list