Changeset 7e2f6d0 in rtems-testing


Ignore:
Timestamp:
May 19, 2010, 2:02:21 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
7a7ba6e
Parents:
4967baa
Message:

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

  • covoar.cc: Add executable and coverage file extension parameters to configuration file.
  • do_coverage: Use configuration file for RTEMS runs.
  • rtems_config.in: New file.
Location:
rtems-coverage
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r4967baa r7e2f6d0  
     12010-05-19      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * covoar.cc: Add executable and coverage file extension parameters
     4        to configuration file.
     5        * do_coverage: Use configuration file for RTEMS runs.
     6        * rtems_config.in: New file.
     7
    182010-05-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • rtems-coverage/covoar.cc

    r4967baa r7e2f6d0  
    3030 *  Variables to control general behavior
    3131 */
    32 char*                                coverageFileExtension = NULL;
     32const char*                          coverageFileExtension = NULL;
    3333std::list<std::string>               coverageFileNames;
    3434int                                  coverageExtensionLength = 0;
     
    3737const char*                          dynamicLibrary = NULL;
    3838char*                                executable = NULL;
    39 char*                                executableExtension = NULL;
     39const char*                          executableExtension = NULL;
    4040int                                  executableExtensionLength = 0;
    4141std::list<Coverage::ExecutableInfo*> executablesToAnalyze;
     
    8484
    8585Configuration::Options_t Options[] = {
    86   { "explanations", NULL },
    87   { "format",       NULL },
    88   { "symbolsFile ", NULL },
    89   { "target",       NULL },
    90   { "verbose",      NULL },
    91   { NULL,           NULL }
     86  { "explanations",         NULL },
     87  { "format",               NULL },
     88  { "symbolsFile",          NULL },
     89  { "outputDirectory",      NULL },
     90  { "executableExtension",  NULL },
     91  { "coverageExtension",    NULL },
     92  { "target",               NULL },
     93  { "verbose",              NULL },
     94  { NULL,                   NULL }
    9295};
    9396
     
    118121  GET_BOOL( "verbose", Verbose );
    119122
    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 );
     123  GET_STRING( "format",               format );
     124  GET_STRING( "target",               target );
     125  GET_STRING( "explanations",         explanations );
     126  GET_STRING( "symbolsFile",          symbolsFile );
     127  GET_STRING( "outputDirectory",      outputDirectory );
     128  GET_STRING( "executableExtension",  executableExtension );
     129  GET_STRING( "coverageExtension",    coverageFileExtension );
    125130
    126131  // Now calculate some values
  • rtems-coverage/do_coverage

    r4967baa r7e2f6d0  
    341341  check_status $? "cd ${BSP}-tests"
    342342
     343  sed -e "s/@FORMAT@/${COVERAGE_FORMAT}/" \
     344      -e "s/@TARGET@/${TARGET}/" \
     345      -e "s,@EXPLANATIONS@,${COVBASE}/Explanations.txt," \
     346      -e "s,@SYMBOLS_FILE@,${BASEDIR}/${BSP}-tests/rtems.syms," \
     347      -e "s,@OUTPUT_DIRECTORY@,${results_dir}," \
     348      -e "s/@EXECUTABLE_EXTENSION@/exe/" \
     349      -e "s/@COVERAGE_EXTENSION@/${RTEMSEXT}.${COVEXT}/" \
     350      <${COVBASE}/rtems_config.in \
     351      >${BASEDIR}/${BSP}-tests/config
     352  check_status $? "Unable to generate COVOAR config file"
     353
    343354  rm -rf ${results_dir}
    344355  mkdir  ${results_dir}
    345356  ${COVBASE}/covoar \
    346     -O ${results_dir} \
    347     -T ${TARGET} \
    348     -f ${COVERAGE_FORMAT} \
    349     -s rtems.syms \
    350     -E ${COVBASE}/Explanations.txt \
    351     -e exe -c ${RTEMSEXT}.${COVEXT} \
     357    -C ${BASEDIR}/${BSP}-tests/config \
    352358    *.exe > ${results_dir}/summary.txt
    353359  check_status $? "covoar failed"
Note: See TracChangeset for help on using the changeset viewer.