Changeset 0c5677d in rtems-testing


Ignore:
Timestamp:
May 10, 2010, 7:31:11 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
b2cc190
Parents:
9373b94
Message:

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

  • app_common.h, covoar.cc: Add output directory option.
Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r9373b94 r0c5677d  
     12010-05-10      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * app_common.h, covoar.cc: Add output directory option.
     4
    152010-05-10      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    26
  • rtems-coverage/app_common.h

    r9373b94 r0c5677d  
    1717extern Coverage::Toolnames*         Tools;
    1818extern bool                         Verbose;
     19extern const char*                  outputDirectory;
    1920
    2021bool FileIsNewer( const char *f1, const char *f2 );
  • rtems-coverage/covoar.cc

    r9373b94 r0c5677d  
    4444const char*                          target = NULL;
    4545const char*                          format = NULL;
    46 
     46const char*                          outputDirectory = ".";
    4747
    4848/*
     
    6767    "  -c COVERAGEFILE_EXTENSION - extension of the coverage files to analyze\n"
    6868    "  -C ConfigurationFileName  - name of configuration file\n"
     69    "  -O Output_Directory       - name of output directory (default=."
    6970    "\n",
    7071    progname,
     
    117118  GET_BOOL( "verbose", Verbose );
    118119
    119   GET_STRING( "format",       format );
    120   GET_STRING( "target",       target );
    121   GET_STRING( "explanations", explanations );
    122   GET_STRING( "symbolsFile",  symbolsFile );
     120  GET_STRING( "format",           format );
     121  GET_STRING( "target",           target );
     122  GET_STRING( "explanations",     explanations );
     123  GET_STRING( "symbolsFile",      symbolsFile );
     124  GET_STRING( "outputDirectory",  outputDirectory );
    123125
    124126  // Now calculate some values
     
    152154  progname = argv[0];
    153155
    154   while ((opt = getopt(argc, argv, "1:e:c:E:f:s:T:vC:")) != -1) {
     156  while ((opt = getopt(argc, argv, "1:e:c:E:f:s:T:vC:O:")) != -1) {
    155157    switch (opt) {
    156158      case '1':
     
    173175      case 'v': Verbose               = true;    break;
    174176      case 'f': format                = optarg;  break;
     177      case 'O': outputDirectory       = optarg;  break;
    175178      default: /* '?' */
    176179        usage();
Note: See TracChangeset for help on using the changeset viewer.