change log for gcc-testing (2010-05-25)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue May 25 18:10:03 UTC 2010
*jennifer*:
2010-05-25 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the
summary report to the covoar common reports in the report class and
out of the rtems specific items in the report index.
M 1.3 covoar/ChangeLog
M 1.2 covoar/ReportsBase.h
M 1.3 covoar/ReportsBase.cc
M 1.2 covoar/ReportsHtml.cc
M 1.2 covoar/covoar.cc
diff -u gcc-testing/covoar/ChangeLog:1.2 gcc-testing/covoar/ChangeLog:1.3
--- gcc-testing/covoar/ChangeLog:1.2 Mon May 24 15:21:25 2010
+++ gcc-testing/covoar/ChangeLog Tue May 25 12:50:57 2010
@@ -1,3 +1,9 @@
+2010-05-25 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
+ * ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the
+ summary report to the covoar common reports in the report class and
+ out of the rtems specific items in the report index.
+
2010-05-24 Joel Sherrill <joel.sherrilL at OARcorp.com>
* ConfigFile.cc, ReportsBase.cc: Fix warnings.
diff -u gcc-testing/covoar/ReportsBase.h:1.1 gcc-testing/covoar/ReportsBase.h:1.2
--- gcc-testing/covoar/ReportsBase.h:1.1 Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/ReportsBase.h Tue May 25 12:50:58 2010
@@ -91,6 +91,13 @@
);
/*!
+ * This method produces a sumary report for the overall test run.
+ */
+ static void WriteSummaryReport(
+ const char* const fileName
+ );
+
+ /*!
* This method returns the unique extension for the Report
* type. If the extension is ".txt" files will be
* named "annotated.txt", "branch.txt" ......
@@ -126,7 +133,7 @@
*
* @param[in] fileName identifies the report file name
*/
- virtual FILE* OpenFile(
+ static FILE* OpenFile(
const char* const fileName
);
@@ -197,7 +204,7 @@
*
* @param[in] aFile identifies the report file name
*/
- void CloseFile(
+ static void CloseFile(
FILE* aFile
);
diff -u gcc-testing/covoar/ReportsBase.cc:1.2 gcc-testing/covoar/ReportsBase.cc:1.3
--- gcc-testing/covoar/ReportsBase.cc:1.2 Mon May 24 15:21:25 2010
+++ gcc-testing/covoar/ReportsBase.cc Tue May 25 12:50:58 2010
@@ -423,6 +423,86 @@
CloseSymbolSummaryFile( report );
}
+void ReportsBase::WriteSummaryReport(
+ const char* const fileName
+)
+{
+ // Calculate coverage statistics and output results.
+ uint32_t a;
+ uint32_t endAddress;
+ Coverage::DesiredSymbols::symbolSet_t::iterator itr;
+ uint32_t notExecuted = 0;
+ double percentage;
+ Coverage::CoverageMapBase* theCoverageMap;
+ uint32_t totalBytes = 0;
+ FILE* report;
+
+ // Open the report file.
+ report = OpenFile( fileName );
+ if ( !report ) {
+ return;
+ }
+
+ // Look at each symbol.
+ for (itr = SymbolsToAnalyze->set.begin();
+ itr != SymbolsToAnalyze->set.end();
+ itr++) {
+
+ // If the symbol's unified coverage map exists, scan through it
+ // and count bytes.
+ theCoverageMap = itr->second.unifiedCoverageMap;
+ if (theCoverageMap) {
+
+ endAddress = itr->second.stats.sizeInBytes - 1;
+
+ for (a = 0; a <= endAddress; a++) {
+ totalBytes++;
+ if (!theCoverageMap->wasExecuted( a ))
+ notExecuted++;
+ }
+ }
+ }
+
+ percentage = (double) notExecuted;
+ percentage /= (double) totalBytes;
+ percentage *= 100.0;
+
+ fprintf( report, "Bytes Analyzed : %d\n", totalBytes );
+ fprintf( report, "Bytes Not Executed : %d\n", notExecuted );
+ fprintf( report, "Percentage Executed : %5.4g\n", 100.0 - percentage );
+ fprintf( report, "Percentage Not Executed : %5.4g\n", percentage );
+ fprintf(
+ report,
+ "Uncovered ranges found : %d\n",
+ SymbolsToAnalyze->getNumberUncoveredRanges()
+ );
+ if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||
+ (BranchInfoAvailable == false) ) {
+ fprintf( report, "No branch information available\n" );
+ } else {
+ fprintf(
+ report,
+ "Total branches found : %d\n",
+ SymbolsToAnalyze->getNumberBranchesFound()
+ );
+ fprintf(
+ report,
+ "Uncovered branches found : %d\n",
+ SymbolsToAnalyze->getNumberBranchesAlwaysTaken() +
+ SymbolsToAnalyze->getNumberBranchesNeverTaken()
+ );
+ fprintf(
+ report,
+ " %d branches always taken\n",
+ SymbolsToAnalyze->getNumberBranchesAlwaysTaken()
+ );
+ fprintf(
+ report,
+ " %d branches never taken\n",
+ SymbolsToAnalyze->getNumberBranchesNeverTaken()
+ );
+ }
+}
void GenerateReports()
{
@@ -492,7 +572,8 @@
reports = *ritr;
delete reports;
}
-
+
+ ReportsBase::WriteSummaryReport( "summary.txt" );
}
}
diff -u gcc-testing/covoar/ReportsHtml.cc:1.1 gcc-testing/covoar/ReportsHtml.cc:1.2
--- gcc-testing/covoar/ReportsHtml.cc:1.1 Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/ReportsHtml.cc Tue May 25 12:50:58 2010
@@ -86,6 +86,7 @@
fprintf( aFile, "<ul>\n" );
+ PRINT_TEXT_ITEM( "Summary", "summary.txt" );
PRINT_ITEM( "Coverage Report", "uncovered" );
PRINT_ITEM( "Branch Report", "branch" );
PRINT_ITEM( "Annotated Assembly", "annotated" );
diff -u gcc-testing/covoar/covoar.cc:1.1 gcc-testing/covoar/covoar.cc:1.2
--- gcc-testing/covoar/covoar.cc:1.1 Mon May 24 15:07:09 2010
+++ gcc-testing/covoar/covoar.cc Tue May 25 12:50:59 2010
@@ -461,71 +461,5 @@
AllExplanations->writeNotFound( notFound.c_str() );
}
- // Calculate coverage statistics and output results.
- {
- uint32_t a;
- uint32_t endAddress;
- Coverage::DesiredSymbols::symbolSet_t::iterator itr;
- uint32_t notExecuted = 0;
- double percentage;
- Coverage::CoverageMapBase* theCoverageMap;
- uint32_t totalBytes = 0;
-
- // Look at each symbol.
- for (itr = SymbolsToAnalyze->set.begin();
- itr != SymbolsToAnalyze->set.end();
- itr++) {
-
- // If the symbol's unified coverage map exists, scan through it
- // and count bytes.
- theCoverageMap = itr->second.unifiedCoverageMap;
- if (theCoverageMap) {
-
- endAddress = itr->second.stats.sizeInBytes - 1;
-
- for (a = 0; a <= endAddress; a++) {
- totalBytes++;
- if (!theCoverageMap->wasExecuted( a ))
- notExecuted++;
- }
- }
- }
-
- percentage = (double) notExecuted;
- percentage /= (double) totalBytes;
- percentage *= 100.0;
-
- printf( "Bytes Analyzed : %d\n", totalBytes );
- printf( "Bytes Not Executed : %d\n", notExecuted );
- printf( "Percentage Executed : %5.4g\n", 100.0 - percentage );
- printf( "Percentage Not Executed : %5.4g\n", percentage );
- printf(
- "Uncovered ranges found : %d\n",
- SymbolsToAnalyze->getNumberUncoveredRanges()
- );
- if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||
- (BranchInfoAvailable == false) ) {
- printf( "No branch information available\n" );
- } else {
- printf(
- "Total branches found : %d\n",
- SymbolsToAnalyze->getNumberBranchesFound()
- );
- printf(
- "Uncovered branches found : %d\n",
- SymbolsToAnalyze->getNumberBranchesAlwaysTaken() +
- SymbolsToAnalyze->getNumberBranchesNeverTaken()
- );
- printf(
- " %d branches always taken\n",
- SymbolsToAnalyze->getNumberBranchesAlwaysTaken()
- );
- printf(
- " %d branches never taken\n",
- SymbolsToAnalyze->getNumberBranchesNeverTaken()
- );
- }
- }
-
return 0;
}
*jennifer*:
2010-05-25 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* do_coverage, rtems_items.sed: Moved the summary report to the covoar
common reports in the report class and out of the rtems specific
items in the report index.
M 1.275 rtems-coverage/ChangeLog
M 1.65 rtems-coverage/do_coverage
M 1.3 rtems-coverage/rtems_items.sed
diff -u gcc-testing/rtems-coverage/ChangeLog:1.274 gcc-testing/rtems-coverage/ChangeLog:1.275
--- gcc-testing/rtems-coverage/ChangeLog:1.274 Mon May 24 15:16:34 2010
+++ gcc-testing/rtems-coverage/ChangeLog Tue May 25 12:51:12 2010
@@ -1,3 +1,9 @@
+2010-05-25 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
+ * do_coverage, rtems_items.sed: Moved the summary report to the covoar
+ common reports in the report class and out of the rtems specific
+ items in the report index.
+
2010-05-24 TEAM
* covoar source split out to own directory.
diff -u gcc-testing/rtems-coverage/do_coverage:1.64 gcc-testing/rtems-coverage/do_coverage:1.65
--- gcc-testing/rtems-coverage/do_coverage:1.64 Mon May 24 15:07:02 2010
+++ gcc-testing/rtems-coverage/do_coverage Tue May 25 12:51:12 2010
@@ -356,7 +356,7 @@
rm -rf ${results_dir}
mkdir ${results_dir}
covoar -C ${BASEDIR}/${BSP}-tests/config \
- *.exe > ${results_dir}/summary.txt
+ *.exe
check_status $? "covoar failed"
# This should be made obsolete by sortable tables.
diff -u gcc-testing/rtems-coverage/rtems_items.sed:1.2 gcc-testing/rtems-coverage/rtems_items.sed:1.3
--- gcc-testing/rtems-coverage/rtems_items.sed:1.2 Fri May 21 09:54:29 2010
+++ gcc-testing/rtems-coverage/rtems_items.sed Tue May 25 12:51:12 2010
@@ -2,7 +2,6 @@
<\/ul>\
<strong>RTEMS Specific Reports<\/strong>\
<ul>\
- <li>Summary (<a href="summary.txt">text<\/a>)<\/li>\
<li>Configuration (<a href="configuration.txt">text<\/a>)<\/li>\
<li>Tests With Possible Issues \
(<a href="testsWithNoEndOfTest.txt">text<\/a>)<\/li>\
*jennifer*:
2010-05-25 Jennifer.Averett <Jennifer.Averett at OARcorp.com>
* TargetBase.cc: Added -C to objdump and nm calls.
M 1.4 covoar/ChangeLog
M 1.2 covoar/TargetBase.cc
diff -u gcc-testing/covoar/ChangeLog:1.3 gcc-testing/covoar/ChangeLog:1.4
--- gcc-testing/covoar/ChangeLog:1.3 Tue May 25 12:50:57 2010
+++ gcc-testing/covoar/ChangeLog Tue May 25 13:01:47 2010
@@ -1,3 +1,7 @@
+2010-05-25 Jennifer.Averett <Jennifer.Averett at OARcorp.com>
+
+ * TargetBase.cc: Added -C to objdump and nm calls.
+
2010-05-25 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the
diff -u gcc-testing/covoar/TargetBase.cc:1.1 gcc-testing/covoar/TargetBase.cc:1.2
--- gcc-testing/covoar/TargetBase.cc:1.1 Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/TargetBase.cc Tue May 25 13:01:47 2010
@@ -34,8 +34,8 @@
addr2line_m = front + "addr2line";
- nm_m = front + "nm";
- objdump_m = front + "objdump";
+ nm_m = front + "nm -C";
+ objdump_m = front + "objdump -C";
}
TargetBase::~TargetBase()
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100525/1baa5601/attachment-0001.html>
More information about the vc
mailing list