Changeset 2ead50a in rtems for testsuites/tmtests


Ignore:
Timestamp:
Mar 21, 2014, 3:48:01 PM (6 years ago)
Author:
bjorn larsson <bjornlarsson@…>
Branches:
4.11, master
Children:
fd46711
Parents:
6c0301d
git-author:
bjorn larsson <bjornlarsson@…> (03/21/14 15:48:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/25/14 07:06:37)
Message:

tmtests: convert to test.h

Location:
testsuites/tmtests
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/tm01/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST";
     18
    1719rtems_task Test_task(
    1820  rtems_task_argument argument
     
    2729  Print_Warning();
    2830
    29   puts( "\n\n*** TIME TEST 1 ***" );
     31  TEST_BEGIN();
    3032
    3133  Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
     
    186188  );
    187189
    188   puts( "*** END OF TEST 1 ***" );
     190  TEST_END();
    189191  rtems_test_exit( 0 );
    190192}
  • testsuites/tmtests/tm02/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 2";
    1618
    1719rtems_id High_id;
     
    4345  Print_Warning();
    4446
    45   puts( "\n\n*** TIME TEST 2 ***" );
     47  TEST_BEGIN();
    4648
    4749  test_init();
     
    155157  );
    156158
    157   puts( "*** END OF TEST 2 ***" );
     159  TEST_END();
    158160  rtems_test_exit( 0 );
    159161}
  • testsuites/tmtests/tm03/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 3";
    1618
    1719rtems_id Semaphore_id;
     
    3941  Print_Warning();
    4042
    41   puts( "\n\n*** TIME TEST 3 ***" );
     43  TEST_BEGIN();
    4244  status = rtems_task_create(
    4345    rtems_build_name( 'T', 'A', '1', ' ' ),
     
    146148  );
    147149
    148   puts( "*** END OF TEST 3 ***" );
     150  TEST_END();
    149151  rtems_test_exit( 0 );
    150152}
  • testsuites/tmtests/tm04/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 4";
     18
    1719rtems_id         Semaphore_id;
    1820rtems_id         Task_id[OPERATION_COUNT+1];
     
    4648  Print_Warning();
    4749
    48   puts( "\n\n*** TIME TEST 4 ***" );
     50  TEST_BEGIN();
    4951
    5052  test_init();
     
    332334  );
    333335
    334   puts( "*** END OF TEST 4 ***" );
     336  TEST_END();
    335337  rtems_test_exit( 0 );
    336338}
  • testsuites/tmtests/tm05/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 5";
    1618
    1719rtems_id   Task_id[OPERATION_COUNT+1];
     
    4244  Print_Warning();
    4345
    44   puts( "\n\n*** TIME TEST 5 ***" );
     46  TEST_BEGIN();
    4547
    4648  test_init();
     
    103105  );
    104106
    105   puts( "*** END OF TEST 5 ***" );
     107  TEST_END();
    106108  rtems_test_exit( 0 );
    107109}
  • testsuites/tmtests/tm06/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 6";
    1618
    1719rtems_id Task_id[ OPERATION_COUNT + 1 ];
     
    3739  Print_Warning();
    3840
    39   puts( "\n\n*** TIME TEST 6 ***" );
     41  TEST_BEGIN();
    4042
    4143  test_init();
     
    150152  );
    151153
    152   puts( "*** END OF TEST 6 ***" );
     154  TEST_END();
    153155  rtems_test_exit( 0 );
    154156}
  • testsuites/tmtests/tm07/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 7";
    1618
    1719rtems_id Task_id[ OPERATION_COUNT+1 ], task_index;
     
    4143  Print_Warning();
    4244
    43   puts( "\n\n*** TIME TEST 7 ***" );
     45  TEST_BEGIN();
    4446
    4547  test_init();
     
    99101    (void) rtems_task_suspend( RTEMS_SELF );
    100102
    101   puts( "*** END OF TEST 7 ***" );
     103  TEST_END();
    102104  rtems_test_exit( 0 );
    103105}
  • testsuites/tmtests/tm08/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 8";
     18
    1719rtems_id Test_task_id;
    1820
     
    3335  Print_Warning();
    3436
    35   puts( "\n\n*** TIME TEST 8 ***" );
     37  TEST_BEGIN();
    3638
    3739  test_init();
     
    239241  );
    240242
    241   puts( "*** END OF TEST 8 ***" );
     243  TEST_END();
    242244  rtems_test_exit( 0 );
    243245}
  • testsuites/tmtests/tm09/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 9";
     18
    1719rtems_id Queue_id;
    1820
     
    3032  Print_Warning();
    3133
    32   puts( "\n\n*** TIME TEST 9 ***" );
     34  TEST_BEGIN();
    3335
    3436  status = rtems_task_create(
     
    8587  );
    8688
    87   puts( "*** END OF TEST 9 ***" );
     89  TEST_END();
    8890  rtems_test_exit( 0 );
    8991}
  • testsuites/tmtests/tm10/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 10";
    1618
    1719rtems_id Queue_id;
     
    4244  Print_Warning();
    4345
    44   puts( "\n\n*** TIME TEST 10 ***" );
     46  TEST_BEGIN();
    4547
    4648  test_init();
     
    166168  );
    167169
    168   puts( "*** END OF TEST 10 ***" );
     170  TEST_END();
    169171  rtems_test_exit( 0 );
    170172}
  • testsuites/tmtests/tm11/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 11";
    1618
    1719rtems_id Queue_id;
     
    4244  Print_Warning();
    4345
    44   puts( "\n\n*** TIME TEST 11 ***" );
     46  TEST_BEGIN();
    4547
    4648  status = rtems_task_create(
     
    156158  );
    157159
    158   puts( "*** END OF TEST 11 ***" );
     160  TEST_END();
    159161  rtems_test_exit( 0 );
    160162}
  • testsuites/tmtests/tm12/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 12";
    1618
    1719rtems_id Queue_id;
     
    4446  Print_Warning();
    4547
    46   puts( "\n\n*** TIME TEST 12 ***" );
     48  TEST_BEGIN();
    4749
    4850  status = rtems_task_create(
     
    133135  );
    134136
    135   puts( "*** END OF TEST 12 ***" );
     137  TEST_END();
    136138  rtems_test_exit( 0 );
    137139}
  • testsuites/tmtests/tm13/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 13";
    1618
    1719rtems_id Queue_id;
     
    4446  Print_Warning();
    4547
    46   puts( "\n\n*** TIME TEST 13 ***" );
     48  TEST_BEGIN();
    4749
    4850  status = rtems_task_create(
     
    157159  );
    158160
    159   puts( "*** END OF TEST 13 ***" );
     161  TEST_END();
    160162  rtems_test_exit( 0 );
    161163}
  • testsuites/tmtests/tm14/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 14";
    1618
    1719rtems_id Queue_id;
     
    4446  Print_Warning();
    4547
    46   puts( "\n\n*** TIME TEST 14 ***" );
     48  TEST_BEGIN();
    4749
    4850  status = rtems_task_create(
     
    131133  );
    132134
    133   puts( "*** END OF TEST 14 ***" );
     135  TEST_END();
    134136  rtems_test_exit( 0 );
    135137}
  • testsuites/tmtests/tm15/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 15";
     18
    1719bool     time_set;
    1820uint32_t eventout;
     
    3638  Print_Warning();
    3739
    38   puts( "\n\n*** TIME TEST 15 ***" );
     40  TEST_BEGIN();
    3941
    4042  test_init();
     
    194196  );
    195197
    196   puts( "*** END OF TEST 15 ***" );
     198  TEST_END();
    197199  rtems_test_exit( 0 );
    198200}
  • testsuites/tmtests/tm16/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 16";
    1618
    1719uint32_t   Task_count;
     
    4042  Print_Warning();
    4143
    42   puts( "\n\n*** TIME TEST 16 ***" );
     44  TEST_BEGIN();
    4345
    4446  status = rtems_task_create(
     
    148150  );
    149151
    150   puts( "*** END OF TEST 16 ***" );
     152  TEST_END();
    151153  rtems_test_exit( 0 );
    152154}
  • testsuites/tmtests/tm17/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 17";
    1618
    1719uint32_t   Task_count;
     
    4244  Print_Warning();
    4345
    44   puts( "\n\n*** TIME TEST 17 ***" );
     46  TEST_BEGIN();
    4547
    4648  Task_priority = RTEMS_MAXIMUM_PRIORITY - 1u;
     
    127129  );
    128130
    129   puts( "*** END OF TEST 17 ***" );
     131  TEST_END();
    130132  rtems_test_exit( 0 );
    131133}
  • testsuites/tmtests/tm18/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 18";
    1618
    1719uint32_t   taskcount;
     
    4143  Print_Warning();
    4244
    43   puts( "\n\n*** TIME TEST 18 ***" );
     45  TEST_BEGIN();
    4446
    4547  test_init();
     
    108110  );
    109111
    110   puts( "*** END OF TEST 18 ***" );
     112  TEST_END();
    111113  rtems_test_exit( 0 );
    112114}
  • testsuites/tmtests/tm19/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 19";
     18
    1719rtems_asr Process_asr_for_pass_1(
    1820  rtems_signal_set signals
     
    4345  Print_Warning();
    4446
    45   puts( "\n\n*** TIME TEST 19 ***" );
     47  TEST_BEGIN();
    4648
    4749  status = rtems_task_create(
     
    209211  );
    210212
    211   puts( "*** END OF TEST 19 ***" );
     213  TEST_END();
    212214  rtems_test_exit( 0 );
    213215}
  • testsuites/tmtests/tm20/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 20";
     18
    1719rtems_device_major_number _STUB_major = 1;
    1820
     
    5557  Print_Warning();
    5658
    57   puts( "\n\n*** TIME TEST 20 ***" );
     59  TEST_BEGIN();
    5860
    5961  status = rtems_task_create(
     
    433435  );
    434436
    435   puts( "*** END OF TEST 20 ***" );
     437  TEST_END();
    436438  rtems_test_exit( 0 );
    437439}
  • testsuites/tmtests/tm21/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 21";
     18
    1719uint8_t   Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
    1820uint8_t   Partition_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT;
     
    3133  Print_Warning();
    3234
    33   puts( "\n\n*** TIME TEST 21 ***" );
     35  TEST_BEGIN();
    3436
    3537  status = rtems_task_create(
     
    234236  );
    235237
    236   puts( "*** END OF TEST 21 ***" );
     238  TEST_END();
    237239  rtems_test_exit( 0 );
    238240}
  • testsuites/tmtests/tm22/task1.c

    r6c0301d r2ead50a  
    1616#include "system.h"
    1717
     18const char rtems_test_name[] = "TIME TEST 22";
     19
    1820rtems_id Queue_id;
    1921
     
    4143  Print_Warning();
    4244
    43   puts( "\n\n*** TIME TEST 22 ***" );
     45  TEST_BEGIN();
    4446
    4547  status = rtems_message_queue_create(
     
    180182  );
    181183
    182   puts( "*** END OF TEST 22 ***" );
     184  TEST_END();
    183185  rtems_test_exit( 0 );
    184186}
  • testsuites/tmtests/tm23/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 23";
     18
    1719rtems_id          Timer_id[ OPERATION_COUNT+1 ];
    1820
     
    5153  Print_Warning();
    5254
    53   puts( "\n\n*** TIME TEST 23 ***" );
     55  TEST_BEGIN();
    5456
    5557  benchmark_timer_initialize();
     
    301303  );
    302304
    303   puts( "*** END OF TEST 23 ***" );
     305  TEST_END();
    304306  rtems_test_exit( 0 );
    305307}
  • testsuites/tmtests/tm24/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 24";
    1618
    1719uint32_t   Task_count;
     
    3537  Print_Warning();
    3638
    37   puts( "\n\n*** TIME TEST 24 ***" );
     39  TEST_BEGIN();
    3840
    3941  status = rtems_task_create(
     
    118120    );
    119121
    120   puts( "*** END OF TEST 24 ***" );
     122  TEST_END();
    121123    rtems_test_exit( 0 );
    122124  }
  • testsuites/tmtests/tm25/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 25";
    1618
    1719rtems_id Semaphore_id;
     
    3537  Print_Warning();
    3638
    37   puts( "\n\n*** TIME TEST 25 ***" );
     39  TEST_BEGIN();
    3840
    3941  status = rtems_semaphore_create(
     
    105107  );
    106108
    107   puts( "*** END OF TEST 25 ***" );
     109  TEST_END();
    108110  rtems_test_exit( 0 );
    109111}
  • testsuites/tmtests/tm26/task1.c

    r6c0301d r2ead50a  
    2525  #define PREVENT_SMP_ASSERT_FAILURES
    2626#endif
     27
     28const char rtems_test_name[] = "TIME TEST 26";
    2729
    2830/* TEST DATA */
     
    219221  Print_Warning();
    220222
    221   puts( "\n\n*** TIME TEST 26 ***" );
     223  TEST_BEGIN();
    222224
    223225  if (_Scheduler.Operations.initialize != _Scheduler_priority_Initialize) {
    224226    puts("  Error ==> " );
    225227    puts("Test only supported for deterministic priority scheduler\n" );
    226     puts( "*** END OF TEST 26 ***" );
     228    TEST_END();
    227229    rtems_test_exit( 0 );
    228230  }
     
    763765  );
    764766
    765   puts( "*** END OF TEST 26 ***" );
     767  TEST_END();
    766768  rtems_test_exit( 0 );
    767769}
  • testsuites/tmtests/tm27/task1.c

    r6c0301d r2ead50a  
    2626#include <tm27.h>
    2727
     28const char rtems_test_name[] = "TIME TEST 27";
     29
    2830rtems_task Task_1(
    2931  rtems_task_argument argument
     
    5254  Print_Warning();
    5355
    54   puts( "\n\n*** TIME TEST 27 ***" );
     56  TEST_BEGIN();
    5557  if (_Scheduler.Operations.initialize != _Scheduler_priority_Initialize) {
    5658    puts("  Error ==> " );
    5759    puts("Test only supported for deterministic priority scheduler\n" );
    58     puts( "*** END OF TEST 26 ***" );
     60    TEST_END();
    5961    rtems_test_exit( 0 );
    6062  }
     
    202204   */
    203205
    204   puts( "*** END OF TEST 27 ***" );
     206  TEST_END();
    205207  rtems_test_exit( 0 );
    206208}
  • testsuites/tmtests/tm28/task1.c

    r6c0301d r2ead50a  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "TIME TEST 28";
    1618
    1719rtems_id Port_id;
     
    3234  Print_Warning();
    3335
    34   puts( "\n\n*** TIME TEST 28 ***" );
     36  TEST_BEGIN();
    3537
    3638  status = rtems_task_create(
     
    130132  );
    131133
    132   puts( "*** END OF TEST 28 ***" );
     134  TEST_END();
    133135  rtems_test_exit( 0 );
    134136}
  • testsuites/tmtests/tm29/task1.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "TIME TEST 29";
     18
    1719rtems_name Period_name;
    1820
     
    3739  Print_Warning();
    3840
    39   puts( "\n\n*** TIME TEST 29 ***" );
     41  TEST_BEGIN();
    4042
    4143  Period_name = rtems_build_name( 'P', 'R', 'D', ' ' );
     
    205207  );
    206208
    207   puts( "*** END OF TEST 29 ***" );
     209  TEST_END();
    208210  rtems_test_exit( 0 );
    209211}
  • testsuites/tmtests/tm30/init.c

    r6c0301d r2ead50a  
    1717#include <timesys.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "TIME TEST 30";
    1921
    2022rtems_id barrier[ OPERATION_COUNT ];
     
    6769)
    6870{
    69   puts( "\n\n*** TIME TEST 30 ***" );
     71  TEST_BEGIN();
    7072
    7173  rtems_time_test_measure_operation(
     
    9395  );
    9496 
    95   puts( "*** END OF TIME TEST 30 ***" );
     97  TEST_END();
    9698
    9799  rtems_test_exit(0);
  • testsuites/tmtests/tmck/task1.c

    r6c0301d r2ead50a  
    2020#undef OPERATION_COUNT
    2121#define OPERATION_COUNT    100000
     22
     23const char rtems_test_name[] = "TIME CHECKER";
    2224
    2325uint32_t Distribution[ MAXIMUM_DISTRIBUTION + 1 ];
     
    4446  Print_Warning();
    4547
    46   puts( "\n\n*** TIME CHECKER ***" );
     48  TEST_BEGIN();
    4749
    4850  Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ),
     
    137139  );
    138140
    139   puts( "*** END OF TIME CHECKER ***" );
     141  TEST_END();
    140142  rtems_test_exit( 0 );
    141143}
  • testsuites/tmtests/tmcontext01/init.c

    r6c0301d r2ead50a  
    3333#define CPU_COUNT 32
    3434
     35const char rtems_test_name[] = "TMCONTEXT 1";
     36
    3537static rtems_counter_ticks t[SAMPLES];
    3638
  • testsuites/tmtests/tmoverhd/testtask.c

    r6c0301d r2ead50a  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = "OVERHEAD";
     18
    1719uint8_t   Memory_area[ 2048 ];
    1820uint8_t   Internal_port_area[ 256 ];
     
    3335  Print_Warning();
    3436
    35   puts( "\n\n*** TIME TEST OVERHEAD ***" );
     37  TEST_BEGIN();
    3638
    3739  status = rtems_task_create(
     
    12591261      );
    12601262
    1261   puts( "*** END OF TIME OVERHEAD ***" );
     1263  TEST_END();
    12621264
    12631265  rtems_test_exit( 0 );
Note: See TracChangeset for help on using the changeset viewer.