summaryrefslogtreecommitdiffstats
path: root/spec/testsuites/userext.yml
blob: b449486d1123186bceefced7d34459166b9a35d5 (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: true
links:
- role: requirement-refinement
  uid: validation
test-brief: |
  This validation test suite contains a test cases related to the invocation of
  user extensions.
test-code: |
  const char rtems_test_name[] = "${.:/test-suite-name}";

  #define CONFIGURE_MAXIMUM_PROCESSORS 2

  #define CONFIGURE_INITIAL_EXTENSIONS \
    { \
      .thread_begin = ThreadBeginExtension0, \
      .thread_create = ThreadCreateExtension0, \
      .thread_delete = ThreadDeleteExtension0, \
      .thread_exitted = ThreadExittedExtension0, \
      .thread_restart = ThreadRestartExtension0, \
      .thread_start = ThreadStartExtension0, \
      .thread_switch = ThreadSwitchExtension0, \
      .thread_terminate = ThreadTerminateExtension0 \
    }, { \
      .thread_begin = ThreadBeginExtension1, \
      .thread_create = ThreadCreateExtension1, \
      .thread_delete = ThreadDeleteExtension1, \
      .thread_exitted = ThreadExittedExtension1, \
      .thread_restart = ThreadRestartExtension1, \
      .thread_start = ThreadStartExtension1, \
      .thread_switch = ThreadSwitchExtension1, \
      .thread_terminate = ThreadTerminateExtension1 \
    }

  #include "ts-default.h"
test-description: null
test-includes: []
test-local-includes:
- tc-userext.h
test-target: testsuites/validation/ts-userext.c
type: test-suite