Changeset de569fe in rtems


Ignore:
Timestamp:
Jan 16, 2002, 10:13:29 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
be1c6bcd
Parents:
c55df85
Message:

2001-01-16 Joel Sherrill <joel@…>

  • Added tests for task-based timers. This included the new tests sp30 and sp31.
  • Makefile.am, configure.ac: Modified to reflect new tests and files.
  • sp09/screen14.c, sp09/sp09.scn: Modified to add error checks for task-based timer services.
  • sp30/.cvsignore, sp30/Makefile.am, sp30/init.c, sp30/resume.c, sp30/sp30.doc, sp30/sp30.scn, sp30/system.h, sp30/task1.c, sp31/.cvsignore, sp31/Makefile.am, sp31/delay.c, sp31/init.c, sp31/prtime.c, sp31/sp31.doc, sp31/sp31.scn, sp31/system.h, sp31/task1.c: New files.
Files:
34 added
10 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/ChangeLog

    rc55df85 rde569fe  
     12001-01-16      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Added tests for task-based timers.  This included the new tests
     4        sp30 and sp31.
     5        * Makefile.am, configure.ac: Modified to reflect new tests and files.
     6        * sp09/screen14.c, sp09/sp09.scn: Modified to add error checks
     7        for task-based timer services.
     8        * sp30/.cvsignore, sp30/Makefile.am, sp30/init.c, sp30/resume.c,
     9        sp30/sp30.doc, sp30/sp30.scn, sp30/system.h, sp30/task1.c,
     10        sp31/.cvsignore, sp31/Makefile.am, sp31/delay.c, sp31/init.c,
     11        sp31/prtime.c, sp31/sp31.doc, sp31/sp31.scn, sp31/system.h,
     12        sp31/task1.c: New files.
     13
    1142001-11-01      Joel Sherrill <joel@OARcorp.com>
    215
  • c/src/tests/sptests/Makefile.am

    rc55df85 rde569fe  
    99SUBDIRS = sp01 sp02 sp03 sp04 sp05 sp06 sp07 sp08 sp09 sp11 sp12 sp13 sp14 \
    1010    sp15 sp16 sp17 sp19 sp20 sp21 sp22 sp23 sp24 sp25 sp26 sp27 sp28 sp29 \
    11     spsize
     11    sp30 sp31 spsize
    1212
    1313EXTRA_DIST = sptests.am spfatal
  • c/src/tests/sptests/configure.ac

    rc55df85 rde569fe  
    6767sp28/Makefile
    6868sp29/Makefile
     69sp30/Makefile
     70sp31/Makefile
    6971spsize/Makefile
    7072])
  • c/src/tests/sptests/sp09/screen14.c

    rc55df85 rde569fe  
    151151    " - before RTEMS_INVALID_CLOCK\n"
    152152  );
     153
     154/* timer server interface routines */
     155
     156  status = rtems_timer_server_fire_after( 0, 5, NULL, NULL );
     157  fatal_directive_status(
     158    status,
     159    RTEMS_INCORRECT_STATE,
     160    "rtems_timer_server_fire_after incorrect state"
     161  );
     162  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE" );
     163
     164  status = rtems_timer_server_fire_when( 0, &time, NULL, NULL );
     165  fatal_directive_status(
     166    status,
     167    RTEMS_INCORRECT_STATE,
     168    "rtems_timer_server_fire_when incorrect state"
     169  );
     170  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE" );
     171
     172  status = rtems_timer_initiate_server( 0, 0 );
     173  directive_failed( status, "rtems_timer_initiate_server" );
     174  puts( "TA1 - rtems_timer_initiate_server" );
     175 
     176  status = rtems_timer_server_fire_after(
     177    0x010100,
     178    5 * TICKS_PER_SECOND,
     179    Delayed_routine,
     180    NULL
     181  );
     182  fatal_directive_status(
     183    status,
     184    RTEMS_INVALID_ID,
     185    "rtems_timer_server_fire_after illegal id"
     186  );
     187  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID" );
     188
     189  build_time( &time, 12, 31, 1994, 9, 0, 0, 0 );
     190  status = rtems_timer_server_fire_when( 0x010100, &time, Delayed_routine, NULL );
     191  fatal_directive_status(
     192    status,
     193    RTEMS_INVALID_ID,
     194    "rtems_timer_server_fire_when with illegal id"
     195  );
     196  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID" );
     197
     198  status = rtems_timer_server_fire_after( Timer_id[ 1 ], 0, Delayed_routine, NULL );
     199  fatal_directive_status(
     200    status,
     201    RTEMS_INVALID_NUMBER,
     202    "rtems_timer_server_fire_after with 0 ticks"
     203  );
     204  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER" );
     205
     206  build_time( &time, 2, 5, 1987, 8, 30, 45, 0 );
     207  status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     208  fatal_directive_status(
     209    status,
     210    RTEMS_INVALID_CLOCK,
     211    "rtems_timer_server_fire_when with illegal time"
     212  );
     213  print_time(
     214    "TA1 - rtems_timer_server_fire_when - ",
     215    &time,
     216    " - RTEMS_INVALID_CLOCK\n"
     217  );
     218
     219  status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
     220  directive_failed( status, "rtems_clock_set" );
     221  print_time( "TA1 - rtems_clock_get       - ", &time, "\n" );
     222
     223  build_time( &time, 2, 5, 1990, 8, 30, 45, 0 );
     224  status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     225  fatal_directive_status(
     226    status,
     227    RTEMS_INVALID_CLOCK,
     228    "rtems_timer_server_fire_when before current time"
     229  );
     230  print_time(
     231    "TA1 - rtems_timer_server_fire_when - ",
     232    &time,
     233    " - before RTEMS_INVALID_CLOCK\n"
     234  );
    153235}
  • c/src/tests/sptests/sp09/sp09.scn

    rc55df85 rde569fe  
    247247TA1 - rtems_timer_fire_after - RTEMS_INVALID_NUMBER
    248248TA1 - rtems_timer_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
    249 TA1 - rtems_clock_get       - 00:00:00   01/01/1992
     249TA1 - rtems_clock_get       - 00:00:01   01/01/1992
    250250TA1 - rtems_timer_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
     251TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE
     252TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE
     253TA1 - rtems_timer_initiate_server
     254TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID
     255TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID
     256TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER
     257TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
     258TA1 - rtems_clock_get       - 00:00:01   01/01/1992
     259TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
    251260*** END OF TEST 9 ***
  • testsuites/sptests/ChangeLog

    rc55df85 rde569fe  
     12001-01-16      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Added tests for task-based timers.  This included the new tests
     4        sp30 and sp31.
     5        * Makefile.am, configure.ac: Modified to reflect new tests and files.
     6        * sp09/screen14.c, sp09/sp09.scn: Modified to add error checks
     7        for task-based timer services.
     8        * sp30/.cvsignore, sp30/Makefile.am, sp30/init.c, sp30/resume.c,
     9        sp30/sp30.doc, sp30/sp30.scn, sp30/system.h, sp30/task1.c,
     10        sp31/.cvsignore, sp31/Makefile.am, sp31/delay.c, sp31/init.c,
     11        sp31/prtime.c, sp31/sp31.doc, sp31/sp31.scn, sp31/system.h,
     12        sp31/task1.c: New files.
     13
    1142001-11-01      Joel Sherrill <joel@OARcorp.com>
    215
  • testsuites/sptests/Makefile.am

    rc55df85 rde569fe  
    99SUBDIRS = sp01 sp02 sp03 sp04 sp05 sp06 sp07 sp08 sp09 sp11 sp12 sp13 sp14 \
    1010    sp15 sp16 sp17 sp19 sp20 sp21 sp22 sp23 sp24 sp25 sp26 sp27 sp28 sp29 \
    11     spsize
     11    sp30 sp31 spsize
    1212
    1313EXTRA_DIST = sptests.am spfatal
  • testsuites/sptests/configure.ac

    rc55df85 rde569fe  
    6767sp28/Makefile
    6868sp29/Makefile
     69sp30/Makefile
     70sp31/Makefile
    6971spsize/Makefile
    7072])
  • testsuites/sptests/sp09/screen14.c

    rc55df85 rde569fe  
    151151    " - before RTEMS_INVALID_CLOCK\n"
    152152  );
     153
     154/* timer server interface routines */
     155
     156  status = rtems_timer_server_fire_after( 0, 5, NULL, NULL );
     157  fatal_directive_status(
     158    status,
     159    RTEMS_INCORRECT_STATE,
     160    "rtems_timer_server_fire_after incorrect state"
     161  );
     162  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE" );
     163
     164  status = rtems_timer_server_fire_when( 0, &time, NULL, NULL );
     165  fatal_directive_status(
     166    status,
     167    RTEMS_INCORRECT_STATE,
     168    "rtems_timer_server_fire_when incorrect state"
     169  );
     170  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE" );
     171
     172  status = rtems_timer_initiate_server( 0, 0 );
     173  directive_failed( status, "rtems_timer_initiate_server" );
     174  puts( "TA1 - rtems_timer_initiate_server" );
     175 
     176  status = rtems_timer_server_fire_after(
     177    0x010100,
     178    5 * TICKS_PER_SECOND,
     179    Delayed_routine,
     180    NULL
     181  );
     182  fatal_directive_status(
     183    status,
     184    RTEMS_INVALID_ID,
     185    "rtems_timer_server_fire_after illegal id"
     186  );
     187  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID" );
     188
     189  build_time( &time, 12, 31, 1994, 9, 0, 0, 0 );
     190  status = rtems_timer_server_fire_when( 0x010100, &time, Delayed_routine, NULL );
     191  fatal_directive_status(
     192    status,
     193    RTEMS_INVALID_ID,
     194    "rtems_timer_server_fire_when with illegal id"
     195  );
     196  puts( "TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID" );
     197
     198  status = rtems_timer_server_fire_after( Timer_id[ 1 ], 0, Delayed_routine, NULL );
     199  fatal_directive_status(
     200    status,
     201    RTEMS_INVALID_NUMBER,
     202    "rtems_timer_server_fire_after with 0 ticks"
     203  );
     204  puts( "TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER" );
     205
     206  build_time( &time, 2, 5, 1987, 8, 30, 45, 0 );
     207  status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     208  fatal_directive_status(
     209    status,
     210    RTEMS_INVALID_CLOCK,
     211    "rtems_timer_server_fire_when with illegal time"
     212  );
     213  print_time(
     214    "TA1 - rtems_timer_server_fire_when - ",
     215    &time,
     216    " - RTEMS_INVALID_CLOCK\n"
     217  );
     218
     219  status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
     220  directive_failed( status, "rtems_clock_set" );
     221  print_time( "TA1 - rtems_clock_get       - ", &time, "\n" );
     222
     223  build_time( &time, 2, 5, 1990, 8, 30, 45, 0 );
     224  status = rtems_timer_server_fire_when( Timer_id[ 1 ], &time, Delayed_routine, NULL );
     225  fatal_directive_status(
     226    status,
     227    RTEMS_INVALID_CLOCK,
     228    "rtems_timer_server_fire_when before current time"
     229  );
     230  print_time(
     231    "TA1 - rtems_timer_server_fire_when - ",
     232    &time,
     233    " - before RTEMS_INVALID_CLOCK\n"
     234  );
    153235}
  • testsuites/sptests/sp09/sp09.scn

    rc55df85 rde569fe  
    247247TA1 - rtems_timer_fire_after - RTEMS_INVALID_NUMBER
    248248TA1 - rtems_timer_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
    249 TA1 - rtems_clock_get       - 00:00:00   01/01/1992
     249TA1 - rtems_clock_get       - 00:00:01   01/01/1992
    250250TA1 - rtems_timer_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
     251TA1 - rtems_timer_server_fire_after - RTEMS_INCORRECT_STATE
     252TA1 - rtems_timer_server_fire_when - RTEMS_INCORRECT_STATE
     253TA1 - rtems_timer_initiate_server
     254TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_ID
     255TA1 - rtems_timer_server_fire_when - RTEMS_INVALID_ID
     256TA1 - rtems_timer_server_fire_after - RTEMS_INVALID_NUMBER
     257TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1987 - RTEMS_INVALID_CLOCK
     258TA1 - rtems_clock_get       - 00:00:01   01/01/1992
     259TA1 - rtems_timer_server_fire_when - 08:30:45   02/05/1990 - before RTEMS_INVALID_CLOCK
    251260*** END OF TEST 9 ***
Note: See TracChangeset for help on using the changeset viewer.