diff options
Diffstat (limited to 'spec/rtems/userext/val/ident.yml')
-rw-r--r-- | spec/rtems/userext/val/ident.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/spec/rtems/userext/val/ident.yml b/spec/rtems/userext/val/ident.yml new file mode 100644 index 00000000..e25374ed --- /dev/null +++ b/spec/rtems/userext/val/ident.yml @@ -0,0 +1,47 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../req/ident +test-actions: +- action: | + ${../../req/ident-local:/test-run}( + id_local_object, + ClassicUserExtIdentAction + ); + checks: [] + description: | + Run the generic object identification tests for Classic API user extension + class objects defined by ${../../req/ident-local}. + links: [] +test-brief: Test the ${../if/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: +- tr-object-ident-local.h +test-prologue: | + static const rtems_extensions_table table; + rtems_status_code sc; + rtems_id id_local_object; + + sc = rtems_extension_create( + ClassicObjectLocalIdentName, + &table, + &id_local_object + ); + T_assert_rsc_success( sc ); +test-support: | + 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 +type: test-case |