Changeset cac975e in rtems


Ignore:
Timestamp:
Aug 6, 2009, 3:21:25 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
cba16514
Parents:
52976086
Message:

2009-08-06 Joel Sherrill <joel.sherrill@…>

  • bspcmdline01/bspcmdline01.scn, bspcmdline01/init.c: Add rtems_ as prefix to all routines.
Location:
testsuites/libtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r52976086 rcac975e  
     12009-08-06      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * bspcmdline01/bspcmdline01.scn, bspcmdline01/init.c: Add rtems_ as
     4        prefix to all routines.
     5
    162009-08-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/bspcmdline01/bspcmdline01.scn

    r52976086 rcac975e  
    33
    44Test Parameter Error Conditions
    5 bsp_cmdline_get_param - name=NULL - returns NULL
    6 bsp_cmdline_get_param - result=NULL - returns NULL
    7 bsp_cmdline_get_param - length=0 - returns NULL
    8 bsp_cmdline_get_param_raw - name=NULL - returns NULL
    9 bsp_cmdline_get_param - bsp_boot_cmdline=NULL - returns NULL
    10 bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL
     5rtems_bsp_cmdline_get_param - name=NULL - returns NULL
     6rtems_bsp_cmdline_get_param - result=NULL - returns NULL
     7rtems_bsp_cmdline_get_param - length=0 - returns NULL
     8rtems_bsp_cmdline_get_param_raw - name=NULL - returns NULL
     9rtems_bsp_cmdline_get_param - bsp_boot_cmdline=NULL - returns NULL
     10rtems_bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL
    1111
    1212Testing for param=(--arg)
    1313  Command Line : (--arg=)
    14 bsp_cmdline_get_param_raw(--arg)
    15 bsp_cmdline_get_param_raw(--arg) returned (--arg=)
    16 bsp_cmdline_get_param_rhs(--arg)
    17 bsp_cmdline_get_param_rhs(--arg) returned (ZERO_LENGTH_STRING) value=(ZERO_LENGTH_STRING)
     14rtems_bsp_cmdline_get_param_raw(--arg)
     15rtems_bsp_cmdline_get_param_raw(--arg) returned (--arg=)
     16rtems_bsp_cmdline_get_param_rhs(--arg)
     17rtems_bsp_cmdline_get_param_rhs(--arg) returned (ZERO_LENGTH_STRING) value=(ZERO_LENGTH_STRING)
    1818
    1919Testing for param=(-g) - Expect NULL
    2020  Command Line : (--arg=)
    21 bsp_cmdline_get_param_raw(-g)
    22 bsp_cmdline_get_param_raw(-g) returned NULL
    23 bsp_cmdline_get_param_rhs(-g)
    24 bsp_cmdline_get_param_rhs(-g) returned NULL
     21rtems_bsp_cmdline_get_param_raw(-g)
     22rtems_bsp_cmdline_get_param_raw(-g) returned NULL
     23rtems_bsp_cmdline_get_param_rhs(-g)
     24rtems_bsp_cmdline_get_param_rhs(-g) returned NULL
    2525
    2626Testing for param=(-name)
    2727  Command Line : (--ip=192.168.1.151 --name=fred)
    28 bsp_cmdline_get_param_raw(-name)
    29 bsp_cmdline_get_param_raw(-name) returned (-name=fred)
    30 bsp_cmdline_get_param_rhs(-name)
    31 bsp_cmdline_get_param_rhs(-name) returned (fred) value=(fred)
     28rtems_bsp_cmdline_get_param_raw(-name)
     29rtems_bsp_cmdline_get_param_raw(-name) returned (-name=fred)
     30rtems_bsp_cmdline_get_param_rhs(-name)
     31rtems_bsp_cmdline_get_param_rhs(-name) returned (fred) value=(fred)
    3232
    3333Testing for param=(-ip)
    3434  Command Line : (--ip=192.168.1.151 --name=fred)
    35 bsp_cmdline_get_param_raw(-ip)
    36 bsp_cmdline_get_param_raw(-ip) returned (-ip=192.168.1.151 --name=fred)
    37 bsp_cmdline_get_param_rhs(-ip)
    38 bsp_cmdline_get_param_rhs(-ip) returned (192.168.1.151) value=(192.168.1.151)
     35rtems_bsp_cmdline_get_param_raw(-ip)
     36rtems_bsp_cmdline_get_param_raw(-ip) returned (-ip=192.168.1.151 --name=fred)
     37rtems_bsp_cmdline_get_param_rhs(-ip)
     38rtems_bsp_cmdline_get_param_rhs(-ip) returned (192.168.1.151) value=(192.168.1.151)
    3939
    4040Testing for param=(-name)
    4141  Command Line : (--ip=192.168.1.151 --name="joel and michele" --cpu=fast)
    42 bsp_cmdline_get_param_raw(-name)
    43 bsp_cmdline_get_param_raw(-name) returned (-name="joel and michele" --cpu=fast)
    44 bsp_cmdline_get_param_rhs(-name)
    45 bsp_cmdline_get_param_rhs(-name) returned (joel and michele) value=(joel and michele)
     42rtems_bsp_cmdline_get_param_raw(-name)
     43rtems_bsp_cmdline_get_param_raw(-name) returned (-name="joel and michele" --cpu=fast)
     44rtems_bsp_cmdline_get_param_rhs(-name)
     45rtems_bsp_cmdline_get_param_rhs(-name) returned (joel and michele) value=(joel and michele)
    4646*** END OF OF PARSING BOOT COMMAND STRING ***
  • testsuites/libtests/bspcmdline01/init.c

    r52976086 rcac975e  
    2222  bsp_boot_cmdline = NULL;
    2323
    24   puts( "bsp_cmdline_get_param - name=NULL - returns NULL" );
    25   p = bsp_cmdline_get_param( NULL, result, 32 );
     24  puts( "rtems_bsp_cmdline_get_param - name=NULL - returns NULL" );
     25  p = rtems_bsp_cmdline_get_param( NULL, result, 32 );
    2626  assert( p == NULL );
    2727
    28   puts( "bsp_cmdline_get_param - result=NULL - returns NULL" );
    29   p = bsp_cmdline_get_param( "name", NULL, 32 );
     28  puts( "rtems_bsp_cmdline_get_param - result=NULL - returns NULL" );
     29  p = rtems_bsp_cmdline_get_param( "name", NULL, 32 );
    3030  assert( p == NULL );
    3131
    32   puts( "bsp_cmdline_get_param - length=0 - returns NULL" );
    33   p = bsp_cmdline_get_param( "name", result, 0 );
     32  puts( "rtems_bsp_cmdline_get_param - length=0 - returns NULL" );
     33  p = rtems_bsp_cmdline_get_param( "name", result, 0 );
    3434  assert( p == NULL );
    3535
    36   puts( "bsp_cmdline_get_param_raw - name=NULL - returns NULL" );
    37   p = bsp_cmdline_get_param_raw( NULL );
     36  puts( "rtems_bsp_cmdline_get_param_raw - name=NULL - returns NULL" );
     37  p = rtems_bsp_cmdline_get_param_raw( NULL );
    3838  assert( p == NULL );
    3939
    4040  bsp_boot_cmdline = NULL;
    4141 
    42   puts( "bsp_cmdline_get_param - bsp_boot_cmdline=NULL - returns NULL" );
    43   p = bsp_cmdline_get_param( "name", result, 5 );
     42  puts( "rtems_bsp_cmdline_get_param - bsp_boot_cmdline=NULL - returns NULL" );
     43  p = rtems_bsp_cmdline_get_param( "name", result, 5 );
    4444  assert( p == NULL );
    4545
    46   puts( "bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL" );
    47   p = bsp_cmdline_get_param_raw( "name" );
     46  puts(
     47    "rtems_bsp_cmdline_get_param_raw - bsp_boot_cmdline=NULL - returns NULL" );
     48  p = rtems_bsp_cmdline_get_param_raw( "name" );
    4849  assert( p == NULL );
    4950}
     
    7071  );
    7172
    72   printf( "bsp_cmdline_get_param_raw(%s)\n", param );
    73   p = bsp_cmdline_get_param_raw( param );
     73  printf( "rtems_bsp_cmdline_get_param_raw(%s)\n", param );
     74  p = rtems_bsp_cmdline_get_param_raw( param );
    7475  if ( null_expected ) {
    7576    if ( p )
    76       puts( "ERROR - bsp_cmdline_get_param_raw did not return NULL" );
     77      puts( "ERROR - rtems_bsp_cmdline_get_param_raw did not return NULL" );
    7778    else
    78       printf( "bsp_cmdline_get_param_raw(%s) returned NULL\n", param );
     79      printf( "rtems_bsp_cmdline_get_param_raw(%s) returned NULL\n", param );
    7980    assert( !p );
    8081  } else {
    8182    if ( p )
    82       printf( "bsp_cmdline_get_param_raw(%s) returned (%s)\n", param, p );
     83      printf( "rtems_bsp_cmdline_get_param_raw(%s) returned (%s)\n", param, p );
    8384    else
    84       printf( "bsp_cmdline_get_param_raw(%s) returned NULL\n", param );
     85      printf( "rtems_bsp_cmdline_get_param_raw(%s) returned NULL\n", param );
    8586   
    8687    assert( p );
    8788  }
    8889
    89   printf( "bsp_cmdline_get_param_rhs(%s)\n", param );
     90  printf( "rtems_bsp_cmdline_get_param_rhs(%s)\n", param );
    9091  length = sizeof(value);
    91   p = bsp_cmdline_get_param_rhs( param, value, length );
     92  p = rtems_bsp_cmdline_get_param_rhs( param, value, length );
    9293  if ( null_expected ) {
    9394    if ( p )
    94       puts( "ERROR - bsp_cmdline_get_param_rhs did not return NULL" );
     95      puts( "ERROR - rtems_bsp_cmdline_get_param_rhs did not return NULL" );
    9596    else
    96       printf( "bsp_cmdline_get_param_rhs(%s) returned NULL\n", param );
     97      printf( "rtems_bsp_cmdline_get_param_rhs(%s) returned NULL\n", param );
    9798    assert( !p );
    9899  } else {
    99100    if ( !p )
    100       puts( "ERROR - bsp_cmdline_get_param_rhs returned NULL" );
     101      puts( "ERROR - rtems_bsp_cmdline_get_param_rhs returned NULL" );
    101102    assert( p );
    102103    printf(
    103       "bsp_cmdline_get_param_rhs(%s) returned (%s) value=(%s)\n",
     104      "rtems_bsp_cmdline_get_param_rhs(%s) returned (%s) value=(%s)\n",
    104105      param,
    105106      ((*p == '\0') ? "ZERO_LENGTH_STRING" : p ),
     
    116117  puts( "\n\n*** TEST OF PARSING BOOT COMMAND STRING ***" );
    117118
    118   if ( bsp_cmdline_get() ) {
     119  if ( rtems_bsp_cmdline_get() ) {
    119120    printf(
    120121      "BSP has a boot command line:\n"
Note: See TracChangeset for help on using the changeset viewer.