summaryrefslogtreecommitdiffstats
path: root/spec/req/rtems/userext/val/ident.yml
blob: 6da57c5df3632b6a96c6969f340bfcbf878f8960 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: ../ident
test-actions:
- action: |
    ${../../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 ${../../ident-local}.
  links: []
test-brief: Test the ${/if/rtems/userext/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