TEST BUILD strings

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 19 09:25:57 UTC 2018


Hello,

the new test header is really great, e.g.

*** BEGIN OF TEST BLOCK 8 ***
*** TEST VERSION: 5.0.0.32d50688c655fbdc4cedcf9c06972b48e1ee498f
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: legacy-net
*** TEST TOOLS: 7.2.0 20170814 (RTEMS 5, RSB 
a293ddc992ab2cf757b6dfea58ef3697494b5e95, Newlib 2.5.0.20170922)

The TEST BUILD string is determined by:

#if RTEMS_POSIX
   #define TEST_BUILD_DEFAULT ""
   #define TEST_BUILD_POSIX   "posix "
#else
   #define TEST_BUILD_POSIX
#endif
#if RTEMS_SMP
   #define TEST_BUILD_DEFAULT ""
   #define TEST_BUILD_SMP     "smp "
#else
   #define TEST_BUILD_SMP
#endif
#if RTEMS_MULTIPROCESSING
   #define TEST_BUILD_DEFAULT ""
   #define TEST_BUILD_MP      "mp "
#else
   #define TEST_BUILD_MP
#endif
#if RTEMS_PARAVIRT
   #define TEST_BUILD_DEFAULT  ""
   #define TEST_BUILD_PARAVIRT "paravirt "
#else
   #define TEST_BUILD_PARAVIRT
#endif
#if RTEMS_NETWORKING
   #define TEST_BUILD_DEFAULT    ""
   #define TEST_BUILD_NETWORKING "legacy-net "
#else
   #define TEST_BUILD_NETWORKING
#endif
#if RTEMS_DEBUG
   #define TEST_BUILD_DEFAULT ""
   #define TEST_BUILD_DEBUG   "debug "
#else
   #define TEST_BUILD_DEBUG
#endif
#if RTEMS_PROFILING
   #define TEST_BUILD_DEFAULT   ""
   #define TEST_BUILD_PROFILING "profiling "
#else
   #define TEST_BUILD_PROFILING
#endif
#ifndef TEST_BUILD_DEFAULT
#define TEST_BUILD_DEFAULT "default"
#endif

I would like to change the names to use the name of the define, e.g.

debug -> RTEMS_DEBUG
legacy-net -> RTEMS_NETWORKING
etc.

This makes it easier to get the connection from the test output to the 
RTEMS build options.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list