diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-04 16:58:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-03 10:22:46 +0200 |
commit | f0d6862e9efdf2f3a997f22f6aa35587fed5fe06 (patch) | |
tree | 72090b75e77a18abdee9f357e7d2b6ae700b25bb /spec/req/rtems/timer/val/ident.yml | |
parent | spec: Add validation test suite (diff) | |
download | rtems-central-f0d6862e9efdf2f3a997f22f6aa35587fed5fe06.tar.bz2 |
spec: Add object name to id actions
Diffstat (limited to 'spec/req/rtems/timer/val/ident.yml')
-rw-r--r-- | spec/req/rtems/timer/val/ident.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/spec/req/rtems/timer/val/ident.yml b/spec/req/rtems/timer/val/ident.yml new file mode 100644 index 00000000..3dee2ec5 --- /dev/null +++ b/spec/req/rtems/timer/val/ident.yml @@ -0,0 +1,45 @@ +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 +includes: [] +links: +- role: validation + uid: ../ident +local-includes: +- support-object-ident-local.h +target: testsuites/validation/tc-timer-ident.c +actions: +- action: | + ${../../ident-local:/test-run}( + id_local_object, + ClassicTimerIdentAction + ); + checks: [] + description: | + Run the generic object identification tests for Classic API timer class + objects defined by ${../../ident-local}. + links: [] +brief: Test the ${/if/rtems/timer/ident:/name} directive. +description: null +epilogue: null +fixture: null +name: Classic Timer Ident +prologue: | + rtems_status_code sc; + rtems_id id_local_object; + + sc = rtems_timer_create( + ClassicObjectLocalIdentName, + &id_local_object + ); + T_assert_rsc_success( sc ); +support: | + static rtems_status_code ClassicTimerIdentAction( + rtems_name name, + rtems_id *id + ) + { + return rtems_timer_ident( name, id ); + } +type: test-case |