Changeset d509ff0 in rtems-testing


Ignore:
Timestamp:
May 12, 2010, 4:39:01 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
9155541
Parents:
01f2cfc
Message:

2010-05-12 Joel Sherrill <joel.sherrilL@…>

Location:
rtems-coverage
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r01f2cfc rd509ff0  
     12010-05-12      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, ReportsHtml.h: Add
     4        index file to reports written.
     5
    162010-05-12      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • rtems-coverage/ReportsBase.cc

    r01f2cfc rd509ff0  
    5555  }
    5656  return aFile;
     57}
     58
     59void ReportsBase::WriteIndex(
     60  const char* const fileName
     61)
     62{
    5763}
    5864
     
    417423    reports = *ritr;
    418424
     425    reportName = "index" + reports->ReportExtension();
     426    reports->WriteIndex( reportName.c_str() );
     427
    419428    reportName = "annotated" + reports->ReportExtension();
    420429    reports->WriteAnnotatedReport( reportName.c_str() );
  • rtems-coverage/ReportsBase.h

    r01f2cfc rd509ff0  
    2828
    2929    /*!
     30     *  This method produces an index of the reports generated.
     31     *
     32     *  @param[in] fileName identifies the report file name
     33     */
     34    virtual void WriteIndex(
     35      const char* const fileName
     36    );
     37
     38    /*!
    3039     *  This method produces an annotated assembly listing report containing
    3140     *  the disassembly of each symbol that was not completely covered.
  • rtems-coverage/ReportsHtml.cc

    r01f2cfc rd509ff0  
    2323  ReportsHtml::~ReportsHtml()
    2424  {
     25  }
     26
     27  void ReportsHtml::WriteIndex(
     28    const char* const fileName
     29  )
     30  {
     31    #define PRINT_ITEM( _t, _n ) \
     32       fprintf( \
     33         aFile, \
     34         "<li>%s (<a href=\"%s.html\">html</a> or "\
     35         "<a href=\"%s.txt\">text</a>)</li>", \
     36        _t, _n, _n );
     37    #define PRINT_TEXT_ITEM( _t, _n ) \
     38       fprintf( \
     39         aFile, \
     40         "<li>%s (<a href=\"%s\">text</a>)", \
     41        _t, _n );
     42
     43    FILE*  aFile;
     44   
     45    // Open the file
     46    aFile = OpenFile( fileName );
     47
     48    fprintf( aFile, "<strong>Reports Available</string>\n" );
     49    fprintf( aFile, "<ul>\n" );
     50
     51    PRINT_ITEM( "Coverage Report",      "uncovered" );
     52    PRINT_ITEM( "Branch Report",        "branch" );
     53    PRINT_ITEM( "Annotated Assembly",   "annotated" );
     54    PRINT_ITEM( "Symbol Summary",       "symbolSummary" );
     55    PRINT_ITEM( "Size Report",          "sizes" );
     56
     57    PRINT_TEXT_ITEM( "Explanations Not Found", "ExplanationsNotFound.txt" );
     58
     59    fprintf( aFile, "</li>\n" );
     60
     61    CloseFile( aFile );
     62
     63    #undef PRINT_ITEM
     64    #undef PRINT_TEXT_ITEM
    2565  }
    2666
     
    4484      "<pre class=\"code\">\n"
    4585    );
    46 
    4786
    4887    return aFile;
  • rtems-coverage/ReportsHtml.h

    r01f2cfc rd509ff0  
    2626   ~ReportsHtml();
    2727
    28   /*!
    29    *  This method produces a report that contains information about each
    30    *  uncovered branch statement.
    31    *
    32    *  @param[in] fileName identifies the branch report file name
    33    */
    34   void WriteBranchReport(
    35     const char* const fileName
    36   );
     28   /*!
     29    *  This method produces an index file.
     30    *
     31    *  @param[in] fileName identifies the file name.
     32    */
     33   void WriteIndex(
     34     const char* const fileName
     35   );
    3736
    38   /*!
    39    *  This method produces a report that contains information about each
    40    *  uncovered range of bytes.
    41    *
    42    *  @param[in] fileName identifies the coverage report file name
    43    */
    44   void WriteCoverageReport(
    45     const char* const fileName
    46   );
     37   /*!
     38    *  This method produces a report that contains information about each
     39    *  uncovered branch statement.
     40    *
     41    *  @param[in] fileName identifies the branch report file name
     42    */
     43   void WriteBranchReport(
     44     const char* const fileName
     45   );
    4746
    48   /*!
    49    *  This method produces a summary report that lists each uncovered
    50    *  range of bytes.
    51    *
    52    *  @param[in] fileName identifies the size report file name
    53    */
    54   void WriteSizeReport(
    55     const char* const fileName
    56   );
     47   /*!
     48    *  This method produces a report that contains information about each
     49    *  uncovered range of bytes.
     50    *
     51    *  @param[in] fileName identifies the coverage report file name
     52    */
     53   void WriteCoverageReport(
     54     const char* const fileName
     55   );
     56
     57   /*!
     58    *  This method produces a summary report that lists each uncovered
     59    *  range of bytes.
     60    *
     61    *  @param[in] fileName identifies the size report file name
     62    */
     63   void WriteSizeReport(
     64     const char* const fileName
     65   );
    5766
    5867  protected:
Note: See TracChangeset for help on using the changeset viewer.