Changeset a6879a4 in rtems


Ignore:
Timestamp:
Dec 2, 2019, 7:14:34 AM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
d0b704b0
Parents:
9c29cb5
git-author:
Sebastian Huber <sebastian.huber@…> (12/02/19 07:14:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/04/19 06:40:32)
Message:

testsuites: Remove rtems_test_pause*()

The rtems_test_pause() and rtems_test_pause_and_screen_number() macros
had different implementations depending on the RTEMS_TEST_NO_PAUSE
define. This define was defined to 1 by default. The user was able to
change this via the undocumented --disable-test-no-pause configure
command line option.

Pausing tests and waiting for user input contradicts the goal of having
automated test runs. Remove this feature.

Update #3818.

Location:
testsuites
Files:
1 deleted
30 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/configure.ac

    r9c29cb5 ra6879a4  
    1717
    1818RTEMS_ENV_RTEMSBSP
    19 RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
    2019
    2120RTEMS_PROJECT_ROOT
  • testsuites/rhealstone/configure.ac

    r9c29cb5 ra6879a4  
    1515
    1616RTEMS_ENV_RTEMSBSP
    17 
    18 RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
    1917
    2018RTEMS_PROJECT_ROOT
  • testsuites/sptests/configure.ac

    r9c29cb5 ra6879a4  
    1616RTEMS_ENABLE_CXX
    1717RTEMS_ENV_RTEMSBSP
    18 RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
    1918
    2019RTEMS_PROJECT_ROOT
  • testsuites/sptests/sp07/sp07.scn

    r9c29cb5 ra6879a4  
    1111rtems_extension_ident - bad name -- RTEMS_INVALID_ADDRESS
    1212rtems_extension_create - harmless -- OK
    13 <pause>
    1413TA1 - rtems_task_set_priority - get initial priority of self: 04
    1514TA1 - rtems_task_set_priority - set TA2's priority: 03
  • testsuites/sptests/sp07/task1.c

    r9c29cb5 ra6879a4  
    2121  rtems_task_priority the_priority;
    2222  rtems_task_priority previous_priority;
    23 
    24   rtems_test_pause();
    2523
    2624  status = rtems_task_set_priority(
  • testsuites/sptests/sp11/sp11.scn

    r9c29cb5 ra6879a4  
    1717TA1 - rtems_event_send - send RTEMS_EVENT_19 to TA2
    1818TA1 - rtems_clock_get_tod - 08:15:00   02/12/1988
    19 <pause>
    2019TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds
    2120TA1 - rtems_event_receive - waiting forever on RTEMS_EVENT_18
     
    3534TA1 - rtems_event_receive - RTEMS_EVENT_4 or RTEMS_EVENT_5 - forever and ANY
    3635TA1 - RTEMS_EVENT_4 received - eventout => 00000010
    37 <pause>
    3836TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds
    3937TA1 - rtems_timer_cancel - cancelling timer for event RTEMS_EVENT_18
     
    4846TA1 - RTEMS_EVENT_1 received - eventout => 00000002 - at 08:15:03   02/12/1988
    4947TA1 - rtems_timer_cancel - cancelling timer for event RTEMS_EVENT_1
    50 <pause>
    5148TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 1 day
    5249TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 1 day
     
    5855TA1 - rtems_event_receive - waiting forever on RTEMS_EVENT_11
    5956TA1 - RTEMS_EVENT_11 received - eventout => 00000800
    60 <pause>
    6157TA1 - rtems_event_send/rtems_event_receive combination
    6258TA1 - rtems_clock_set - 08:15:00   02/12/1988
  • testsuites/sptests/sp11/task1.c

    r9c29cb5 ra6879a4  
    7373  print_time( "TA1 - rtems_clock_get_tod - ", &time, "\n" );
    7474
    75 rtems_test_pause();
    76 
    7775  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
    7876  status = rtems_timer_fire_after(
     
    140138    eventout
    141139  );
    142 
    143 rtems_test_pause();
    144140
    145141  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
     
    235231  directive_failed( status, "rtems_timer_cancel" );
    236232
    237 rtems_test_pause();
    238 
    239233  time.day = 13;
    240234  puts( "TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 1 day" );
     
    306300     eventout
    307301  );
    308 
    309 rtems_test_pause();
    310302
    311303  puts( "TA1 - rtems_event_send/rtems_event_receive combination" );
  • testsuites/sptests/sp12/init.c

    r9c29cb5 ra6879a4  
    8686  Priority_test_driver( (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u );
    8787
    88 rtems_test_pause();
    89 
    9088  puts( "INIT - Binary Semaphore and Priority Inheritance Test" );
    9189
     
    121119
    122120  Priority_test_driver( PRIORITY_INHERIT_BASE_PRIORITY );
    123 
    124 rtems_test_pause();
    125121
    126122  status = rtems_semaphore_delete( Semaphore_id[ 2 ] );
  • testsuites/sptests/sp12/sp12.scn

    r9c29cb5 ra6879a4  
    1212PRI2 - rtems_semaphore_obtain - wait forever on SM2
    1313PRI1 - rtems_semaphore_obtain - wait forever on SM2
    14 <pause>
    1514INIT - Binary Semaphore and Priority Inheritance Test
    1615INIT - rtems_semaphore_create - allocated binary semaphore
     
    3635PRI5 - rtems_semaphore_release - restore priority
    3736PRI5 - priority of PRI5 is 9
    38 <pause>
    3937TA1 - rtems_semaphore_ident - smid => 1a010009
    4038TA1 - rtems_semaphore_obtain - wait forever on SM2
     
    4745TA2 - rtems_semaphore_obtain - wait forever on SM1
    4846TA3 - rtems_semaphore_obtain - wait forever on SM2
    49 <pause>
    5047TA1 - rtems_semaphore_release - release SM1
    5148TA1 - rtems_semaphore_obtain - waiting for SM1 with 10 second timeout
     
    6360TA3 - rtems_semaphore_release - release SM2
    6461TA3 - rtems_semaphore_obtain - wait forever on SM3
    65 <pause>
    6662TA1 - rtems_task_delete - delete TA3
    6763TA1 - rtems_task_wake_after - sleep 5 seconds
  • testsuites/sptests/sp12/task1.c

    r9c29cb5 ra6879a4  
    6868  directive_failed( status, "rtems_task_wake_after" );
    6969
    70 rtems_test_pause();
    71 
    7270  puts( "TA1 - rtems_semaphore_release - release SM1" );
    7371  status = rtems_semaphore_release( Semaphore_id[ 1 ] );
     
    9290  status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
    9391  directive_failed( status, "rtems_task_wake_after" );
    94 
    95 rtems_test_pause();
    9692
    9793  puts( "TA1 - rtems_task_delete - delete TA3" );
  • testsuites/sptests/sp13/sp13.scn

    r9c29cb5 ra6879a4  
    1515TA2 - rtems_task_set_priority - make self highest priority task
    1616TA2 - rtems_message_queue_receive - receive from queue 2 - RTEMS_WAIT FOREVER
    17 <pause>
    1817TA1 - rtems_message_queue_send - BUFFER 1 TO Q 2
    1918TA2 - buffer received: BUFFER 1 TO Q 2
     
    3332TA3 - buffer received: BUFFER 1 TO Q 3
    3433TA3 - rtems_task_exit
    35 <pause>
    3634TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3
    3735TA1 - rtems_message_queue_send - BUFFER 3 TO Q 3
     
    4947TA1 - rtems_message_queue_receive - receive from queue 2 - RTEMS_WAIT FOREVER
    5048TA1 - buffer received: BUFFER 3 TO Q 2
    51 <pause>
    5249TA1 - rtems_message_queue_delete - delete queue 1
    5350TA1 - rtems_message_queue_urgent - BUFFER 3 TO Q 2
     
    7067TA1 - rtems_message_queue_flush - Q 3
    7168TA1 - 100 messages were flushed from Q 3
    72 <pause>
    7369TA1 - create message queue of 20 bytes on queue 1
    7470TA1 - rtems_message_queue_delete - delete queue 1
    75 <pause>
    7671TA1 - rtems_message_queue_create - variable sizes
    7772TA1 - rtems_message_queue_create and send - variable sizes
  • testsuites/sptests/sp13/task1.c

    r9c29cb5 ra6879a4  
    9090  directive_failed( status, "rtems_task_wake_after" );
    9191
    92 rtems_test_pause();
    93 
    9492  Fill_buffer( "BUFFER 1 TO Q 2", buffer );
    9593  puts( "TA1 - rtems_message_queue_send - BUFFER 1 TO Q 2" );
     
    124122  directive_failed( status, "rtems_task_wake_after" );
    125123
    126 rtems_test_pause();
    127 
    128124  Fill_buffer( "BUFFER 2 TO Q 3", buffer );
    129125  puts( "TA1 - rtems_message_queue_send - BUFFER 2 TO Q 3" );
     
    184180  Put_buffer( buffer );
    185181  new_line;
    186 
    187 rtems_test_pause();
    188182
    189183  puts( "TA1 - rtems_message_queue_delete - delete queue 1" );
     
    257251  printf( "TA1 - %" PRIu32 " messages were flushed from Q 3\n", count );
    258252
    259 rtems_test_pause();
    260 
    261253  puts( "TA1 - create message queue of 20 bytes on queue 1" );
    262254  status = rtems_message_queue_create(
     
    278270  status = rtems_message_queue_delete( Queue_id[ 1 ] );
    279271  directive_failed( status, "rtems_message_queue_delete" );
    280 
    281 rtems_test_pause();
    282272
    283273  puts( "TA1 - rtems_message_queue_create - variable sizes " );
  • testsuites/sptests/sp14/sp14.scn

    r9c29cb5 ra6879a4  
    99ASR - EXIT  - signal => 00000001
    1010TA1 - rtems_signal_catch - RTEMS_NO_ASR
    11 <pause>
    1211TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self
    1312ASR - ENTRY - signal => 00000002
  • testsuites/sptests/sp14/task1.c

    r9c29cb5 ra6879a4  
    5252  status = rtems_signal_catch( Process_asr, RTEMS_NO_ASR );
    5353  directive_failed( status, "rtems_signal_catch" );
    54 
    55   rtems_test_pause();
    5654
    5755  puts( "TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self" );
  • testsuites/sptests/sp16/sp16.scn

    r9c29cb5 ra6879a4  
    1010TA2 - rtems_region_get_segment - wait on 2K segment from region 1
    1111TA3 - rtems_region_get_segment - wait on 3750 byte segment from region 2
    12 <pause>
    1312TA1 - rtems_region_return_segment - return segment to region 1 - 0x00000070
    1413TA1 - rtems_region_get_segment - wait 10 seconds for 3K segment from region 1
     
    2625TA3 - rtems_region_get_segment - wait on 2K segment from region 3
    2726TA1 - rtems_task_delete - delete TA3
    28 <pause>
    2927TA1 - rtems_task_wake_after - yield processor
    3028TA4 - rtems_region_get_segment - wait on 1.5K segment from region 1
  • testsuites/sptests/sp16/task1.c

    r9c29cb5 ra6879a4  
    8383  directive_failed( status, "rtems_task_wake_after" );
    8484
    85 rtems_test_pause();
    86 
    8785  puts_nocr(
    8886    "TA1 - rtems_region_return_segment - return segment to region 1 - "
     
    124122  status = rtems_task_delete( Task_id[ 3 ] );
    125123  directive_failed( status, "rtems_task_delete of TA3" );
    126 
    127 rtems_test_pause();
    128124
    129125  status = rtems_task_create(
  • testsuites/sptests/sp22/sp22.scn

    r9c29cb5 ra6879a4  
    1414TA1 - rtems_task_suspend( RTEMS_SELF )
    1515TA1 - rtems_clock_get_tod - 09:00:07   12/31/1988
    16 <pause>
    1716TA1 - rtems_timer_fire_after - timer 1 in 3 seconds
    1817TA1 - rtems_timer_cancel - timer 1
  • testsuites/sptests/sp22/task1.c

    r9c29cb5 ra6879a4  
    8484  Print_time();
    8585
    86   rtems_test_pause();
    87 
    8886  /*
    8987   *  Reset the time since we do not know how long the user waited
  • testsuites/sptests/sp25/sp25.scn

    r9c29cb5 ra6879a4  
    2828TA1 - rtems_region_get_free_information - 0x32010001
    2929TA1 - got free information - free = 1, used = 0
    30 <pause>
    3130TA1 - rtems_region_return_segment - return segment to region 1 - 0xXXXXXXXX
    3231TA1 - rtems_region_return_segment - return segment to region 1 - 0xXXXXXXXX
  • testsuites/sptests/sp25/task1.c

    r9c29cb5 ra6879a4  
    205205  );
    206206
    207 rtems_test_pause();
    208 
    209207  puts_nocr(
    210208    "TA1 - rtems_region_return_segment - return segment to region 1 - "
  • testsuites/sptests/sp31/sp31.scn

    r9c29cb5 ra6879a4  
    3737TA1 - rtems_task_suspend( RTEMS_SELF )
    3838TA1 - rtems_clock_get_tod - 09:00:09   12/31/1988
    39 <pause>
    4039TA1 - rtems_timer_server_fire_after - timer 1 in 3 seconds
    4140TA1 - rtems_timer_cancel - timer 1
  • testsuites/sptests/sp31/task1.c

    r9c29cb5 ra6879a4  
    199199  Print_time();
    200200
    201   rtems_test_pause();
    202 
    203201  /*
    204202   *  Reset the time since we do not know how long the user waited
  • testsuites/sptests/sp42/init.c

    r9c29cb5 ra6879a4  
    207207  do_test( RTEMS_FIFO, FALSE );
    208208
    209   rtems_test_pause_and_screen_number( 2 );
    210 
    211209  puts( "Exercising blocking discipline w/extract in priority order " );
    212210  do_test( RTEMS_PRIORITY, TRUE );
  • testsuites/sptests/sp42/sp42.scn

    r9c29cb5 ra6879a4  
    2222TA18 - unblocked - OK
    2323TA19 - unblocked - OK
    24 <pause - screen 2>
    2524Exercising blocking discipline w/extract in priority order
    2625Exercising blocking discipline w/unblock in priority order
  • testsuites/sptests/sp43/init.c

    r9c29cb5 ra6879a4  
    297297
    298298  /*
    299    * Start another screen and do the API/Class min/max routines
    300    */
    301   rtems_test_pause();
     299   * API/Class min/max routines
     300   */
    302301
    303302  printf( "rtems_object_id_api_minimum returned %d\n",
     
    331330
    332331  /*
    333    *  Another screen break for the API and class name tests
    334    */
    335   rtems_test_pause();
     332   *  API and class name tests
     333   */
    336334
    337335  printf( "rtems_object_get_api_name(0) = %s\n", rtems_object_get_api_name(0) );
     
    356354
    357355  /*
    358    *  Another screen break for the information
    359    */
    360 
    361   rtems_test_pause();
     356   *  Class information
     357   */
    362358
    363359  puts( "rtems_object_get_class_information - INVALID_ADDRESS" );
  • testsuites/sptests/sp43/sp43.scn

    r9c29cb5 ra6879a4  
    4444rtems_object_id_get_node - OK
    4545rtems_object_id_get_index - OK
    46 <pause>
    4746rtems_object_id_api_minimum returned 1
    4847rtems_object_id_api_maximum returned 3
     
    5756rtems_object_api_minimum_class(OBJECTS_CLASSIC_API) returned 1
    5857rtems_object_api_maximum_class(OBJECTS_CLASSIC_API) returned 10
    59 <pause>
    6058rtems_object_get_api_name(0) = BAD CLASS
    6159rtems_object_get_api_name(255) = BAD CLASS
     
    6664rtems_object_get_api_class_name(INTERNAL_API, THREADS) = Thread
    6765rtems_object_get_api_class_name(CLASSIC_API, RTEMS_BARRIERS) = Barrier
    68 <pause>
    6966rtems_object_get_class_information - INVALID_ADDRESS
    7067rtems_object_get_class_information - INVALID_NUMBER (bad API)
  • testsuites/support/include/tmacros.h

    r9c29cb5 ra6879a4  
    219219
    220220#define puts_nocr printf
    221 
    222 #ifdef RTEMS_TEST_NO_PAUSE
    223 #define rtems_test_pause() \
    224     do { \
    225       printf( "<pause>\n" ); \
    226   } while ( 0 )
    227 
    228 #define rtems_test_pause_and_screen_number( _screen ) \
    229   do { \
    230     printf( "<pause - screen %d>\n", (_screen) ); \
    231   } while ( 0 )
    232 #else
    233 #define rtems_test_pause() \
    234   do { \
    235     char buffer[ 80 ]; \
    236     printf( "<pause>" ); \
    237     gets( buffer ); \
    238     puts( "" ); \
    239   } while ( 0 )
    240 
    241 #define rtems_test_pause_and_screen_number( _screen ) \
    242   do { \
    243     char buffer[ 80 ]; \
    244     printf( "<pause - screen %d>", (_screen) ); \
    245     gets( buffer ); \
    246     puts( "" ); \
    247   } while ( 0 )
    248 #endif
    249221
    250222#define put_name( name, crlf ) \
  • testsuites/tmtests/configure.ac

    r9c29cb5 ra6879a4  
    1515
    1616RTEMS_ENV_RTEMSBSP
    17 RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
    1817
    1918RTEMS_PROJECT_ROOT
  • testsuites/tmtests/tmck/task1.c

    r9c29cb5 ra6879a4  
    7575
    7676  check_read_timer();
    77 rtems_test_pause();
    7877
    7978  benchmark_timer_initialize();
  • testsuites/tmtests/tmoverhd/testtask.c

    r9c29cb5 ra6879a4  
    342342      );
    343343
    344 rtems_test_pause();
    345 
    346344/* rtems_timer_create */
    347345
     
    677675         0
    678676      );
    679 
    680 rtems_test_pause();
    681677
    682678/* rtems_event_send */
     
    10041000      );
    10051001
    1006 rtems_test_pause();
    1007 
    10081002/* rtems_io_initialize */
    10091003
Note: See TracChangeset for help on using the changeset viewer.