From f0d6862e9efdf2f3a997f22f6aa35587fed5fe06 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 4 Jun 2020 16:58:18 +0200 Subject: spec: Add object name to id actions --- spec/req/rtems/timer/val/ident.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 spec/req/rtems/timer/val/ident.yml (limited to 'spec/req/rtems/timer/val/ident.yml') 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 -- cgit v1.2.3