TEST BUILD strings

Chris Johns chrisj at rtems.org
Sun Jan 21 21:39:16 UTC 2018


On 19/1/18 8:25 pm, Sebastian Huber wrote:
> 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.

I am ok with this.

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

Does rtems-test need to be updated?

Chris


More information about the devel mailing list