Changeset 168277e7 in rtems


Ignore:
Timestamp:
Jan 19, 2018, 9:44:35 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
17fd0ff
Parents:
d898f6e
git-author:
Sebastian Huber <sebastian.huber@…> (01/19/18 09:44:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/18 06:08:57)
Message:

tests: Change TEST BUILD to use define names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/testsupport/testbeginend.c

    rd898f6e r168277e7  
    11/*
    2  * Copyright (c) 2014, 2017 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2014, 2018 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    2323#include <rtems/version.h>
    2424
    25 #if RTEMS_POSIX
    26   #define TEST_BUILD_DEFAULT ""
    27   #define TEST_BUILD_POSIX   "posix "
    28 #else
    29   #define TEST_BUILD_POSIX
    30 #endif
    31 #if RTEMS_SMP
    32   #define TEST_BUILD_DEFAULT ""
    33   #define TEST_BUILD_SMP     "smp "
    34 #else
    35   #define TEST_BUILD_SMP
    36 #endif
    37 #if RTEMS_MULTIPROCESSING
    38   #define TEST_BUILD_DEFAULT ""
    39   #define TEST_BUILD_MP      "mp "
    40 #else
    41   #define TEST_BUILD_MP
    42 #endif
    43 #if RTEMS_PARAVIRT
    44   #define TEST_BUILD_DEFAULT  ""
    45   #define TEST_BUILD_PARAVIRT "paravirt "
    46 #else
    47   #define TEST_BUILD_PARAVIRT
    48 #endif
    49 #if RTEMS_NETWORKING
    50   #define TEST_BUILD_DEFAULT    ""
    51   #define TEST_BUILD_NETWORKING "legacy-net "
    52 #else
    53   #define TEST_BUILD_NETWORKING
    54 #endif
    55 #if RTEMS_DEBUG
    56   #define TEST_BUILD_DEFAULT ""
    57   #define TEST_BUILD_DEBUG   "debug "
    58 #else
    59   #define TEST_BUILD_DEBUG
    60 #endif
    61 #if RTEMS_PROFILING
    62   #define TEST_BUILD_DEFAULT   ""
    63   #define TEST_BUILD_PROFILING "profiling "
    64 #else
    65   #define TEST_BUILD_PROFILING
    66 #endif
    67 #ifndef TEST_BUILD_DEFAULT
    68 #define TEST_BUILD_DEFAULT "default"
    69 #endif
    70 
    71 #define TEST_BUILD_STRING \
    72          TEST_BUILD_DEFAULT \
    73          TEST_BUILD_POSIX \
    74          TEST_BUILD_SMP \
    75          TEST_BUILD_MP \
    76          TEST_BUILD_PARAVIRT \
    77          TEST_BUILD_NETWORKING \
    78          TEST_BUILD_DEBUG \
    79          TEST_BUILD_PROFILING
    80 
    8125rtems_printer rtems_test_printer = {
    8226  .printer = rtems_printk_printer
     
    9438int rtems_test_begin(const char* name, const RTEMS_TEST_STATE state)
    9539{
    96   int l;
    97   l = rtems_printf(
     40  return rtems_printf(
    9841    &rtems_test_printer,
    99     "\n\n*** BEGIN OF TEST %s ***\n", name
     42    "\n\n*** BEGIN OF TEST %s ***\n"
     43    "*** TEST VERSION: %s\n"
     44    "*** TEST STATE: %s\n"
     45    "*** TEST BUILD:"
     46#if RTEMS_DEBUG
     47    " RTEMS_DEBUG"
     48#endif
     49#if RTEMS_MULTIPROCESSING
     50    " RTEMS_MULTIPROCESSING"
     51#endif
     52#if RTEMS_NETWORKING
     53    " RTEMS_NETWORKING"
     54#endif
     55#if RTEMS_PARAVIRT
     56    " RTEMS_PARAVIRT"
     57#endif
     58#if RTEMS_POSIX_API
     59    " RTEMS_POSIX_API"
     60#endif
     61#if RTEMS_PROFILING
     62    " RTEMS_PROFILING"
     63#endif
     64#if RTEMS_SMP
     65    " RTEMS_SMP"
     66#endif
     67    "\n"
     68    "*** TEST TOOLS: " __VERSION__ "\n",
     69    name,
     70    rtems_version(),
     71    test_state_strings[state]
    10072  );
    101   l += rtems_printf(
    102     &rtems_test_printer,
    103     "*** TEST VERSION: %s\n", rtems_version()
    104   );
    105   l += rtems_printf(
    106     &rtems_test_printer,
    107     "*** TEST STATE: %s\n", test_state_strings[state]
    108   );
    109   l += rtems_printf(
    110     &rtems_test_printer,
    111     "*** TEST BUILD: %s\n", TEST_BUILD_STRING
    112   );
    113   l += rtems_printf(
    114     &rtems_test_printer,
    115     "*** TEST TOOLS: " __VERSION__ "\n"
    116   );
    117   return l;
    11873}
    11974
Note: See TracChangeset for help on using the changeset viewer.