summaryrefslogblamecommitdiffstats
path: root/spec/rtems/userext/val/ident.yml
blob: d12d06d34b3e88a69a4144e0b6a31023e771e3ff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                     
           
                                                  


                  
                   
             

                                                                              
                                                            
                




                                                        
                        




                               
                                       
                      
                        

                               


                                                   
            
           
                                                    

                          
                      


                    
                         

                
               

                                                                  






                                                     
                                                     
                   
               
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
enabled-by: true
links:
- role: validation
  uid: ../req/ident
test-actions:
- action-brief: |
    Run the generic object identification tests for Classic API user extension
    class objects defined by ${../../req/ident-local:/spec}.
  action-code: |
    static const rtems_extensions_table table;
    rtems_status_code                   sc;
    rtems_id                            id_local_object;

    sc = rtems_extension_create(
      NAME_LOCAL_OBJECT,
      &table,
      &id_local_object
    );
    T_assert_rsc_success( sc );

    ${../../req/ident-local:/test-run}(
      id_local_object,
      NAME_LOCAL_OBJECT,
      ClassicUserExtIdentAction
    );

    sc = rtems_extension_delete( id_local_object );
    T_rsc_success( sc );
  checks: []
  links: []
test-brief: Test the ${../if/ident:/name} directive.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes: []
test-local-includes:
- tr-object-ident-local.h
test-setup: null
test-stop: null
test-support: |
  #define NAME_LOCAL_OBJECT rtems_build_name( 'U', 'E', 'X', 'T' )

  static rtems_status_code ClassicUserExtIdentAction(
    rtems_name name,
    rtems_id  *id
  )
  {
    return rtems_extension_ident( name, id );
  }
test-target: testsuites/validation/tc-userext-ident.c
test-teardown: null
type: test-case