Last change
on this file since 244b277 was
244b277,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/27/20 at 07:23:13
|
validation: Support N/A in the action transitions
Sometimes the pre-conditions are not independent and it is necessary to
mark pre-conditions as not applicable in a particular transition.
|
-
Property mode set to
100644
|
File size:
2.6 KB
|
Line | |
---|
1 | SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause |
---|
2 | copyrights: |
---|
3 | - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) |
---|
4 | enabled-by: true |
---|
5 | functional-type: action |
---|
6 | links: [] |
---|
7 | post-conditions: |
---|
8 | - name: A |
---|
9 | states: |
---|
10 | - name: X |
---|
11 | test-code: | |
---|
12 | /* Post A X */ |
---|
13 | text: | |
---|
14 | Post A X. |
---|
15 | - name: Y |
---|
16 | test-code: | |
---|
17 | /* Post A Y */ |
---|
18 | text: | |
---|
19 | Post A Y. |
---|
20 | test-epilogue: | |
---|
21 | /* Post A epilogue. */ |
---|
22 | test-prologue: | |
---|
23 | /* Post A prologue. */ |
---|
24 | - name: B |
---|
25 | states: |
---|
26 | - name: X |
---|
27 | test-code: | |
---|
28 | /* Post B X */ |
---|
29 | text: | |
---|
30 | Post B X. |
---|
31 | - name: Y |
---|
32 | test-code: | |
---|
33 | /* Post B Y */ |
---|
34 | text: | |
---|
35 | Post B Y. |
---|
36 | test-epilogue: | |
---|
37 | /* Post B epilogue. */ |
---|
38 | test-prologue: | |
---|
39 | /* Post B prologue. */ |
---|
40 | pre-conditions: |
---|
41 | - name: A |
---|
42 | states: |
---|
43 | - name: X |
---|
44 | test-code: | |
---|
45 | /* Pre A X */ |
---|
46 | text: | |
---|
47 | Pre A X. |
---|
48 | - name: Y |
---|
49 | test-code: | |
---|
50 | /* Pre A Y */ |
---|
51 | text: | |
---|
52 | Pre A Y. |
---|
53 | test-epilogue: | |
---|
54 | /* Pre A epilogue. */ |
---|
55 | test-prologue: | |
---|
56 | /* Pre A prologue. */ |
---|
57 | - name: B |
---|
58 | states: |
---|
59 | - name: X |
---|
60 | test-code: | |
---|
61 | /* Pre B X */ |
---|
62 | text: | |
---|
63 | Pre B X. |
---|
64 | - name: Y |
---|
65 | test-code: | |
---|
66 | /* Pre B Y */ |
---|
67 | text: | |
---|
68 | Pre B Y. |
---|
69 | test-epilogue: | |
---|
70 | /* Pre B epilogue. */ |
---|
71 | test-prologue: | |
---|
72 | /* Pre B prologue. */ |
---|
73 | requirement-type: functional |
---|
74 | test-action: | |
---|
75 | /* Action */ |
---|
76 | test-brief: | |
---|
77 | Test brief. |
---|
78 | test-context: |
---|
79 | - brief: | |
---|
80 | Context member brief. |
---|
81 | description: | |
---|
82 | Context member description. |
---|
83 | member: | |
---|
84 | int member |
---|
85 | test-description: | |
---|
86 | Test description. |
---|
87 | test-header: |
---|
88 | code: | |
---|
89 | /* Header code for ${.:/test-name} with ${.:/test-run}() */ |
---|
90 | includes: |
---|
91 | - d.h |
---|
92 | local-includes: |
---|
93 | - e.h |
---|
94 | run-params: |
---|
95 | - description: | |
---|
96 | Parameter A description. |
---|
97 | dir: in |
---|
98 | name: a |
---|
99 | specifier: int *${.:name} |
---|
100 | - description: | |
---|
101 | Parameter B description. |
---|
102 | dir: null |
---|
103 | name: b |
---|
104 | specifier: int ${.:name} |
---|
105 | - description: | |
---|
106 | Parameter C description. |
---|
107 | dir: out |
---|
108 | name: c |
---|
109 | specifier: int *${.:name} |
---|
110 | target: action2.h |
---|
111 | test-includes: |
---|
112 | - a.h |
---|
113 | test-local-includes: |
---|
114 | - b.h |
---|
115 | test-name: Action 2 |
---|
116 | test-setup: |
---|
117 | brief: | |
---|
118 | Setup brief. |
---|
119 | code: | |
---|
120 | /* Setup code */ |
---|
121 | description: | |
---|
122 | Setup description. |
---|
123 | test-stop: null |
---|
124 | test-support: | |
---|
125 | /* Support code */ |
---|
126 | test-target: action2.c |
---|
127 | test-teardown: |
---|
128 | brief: | |
---|
129 | Teardown brief. |
---|
130 | code: | |
---|
131 | /* Teardown code */ |
---|
132 | description: | |
---|
133 | Teardown description. |
---|
134 | transition-map: |
---|
135 | - enabled-by: true |
---|
136 | post-conditions: |
---|
137 | A: X |
---|
138 | B: Y |
---|
139 | pre-conditions: |
---|
140 | A: all |
---|
141 | B: |
---|
142 | - X |
---|
143 | - enabled-by: true |
---|
144 | post-conditions: |
---|
145 | A: Y |
---|
146 | B: X |
---|
147 | pre-conditions: |
---|
148 | A: N/A |
---|
149 | B: |
---|
150 | - Y |
---|
151 | rationale: null |
---|
152 | references: [] |
---|
153 | text: | |
---|
154 | Text. |
---|
155 | type: requirement |
---|
Note: See
TracBrowser
for help on using the repository browser.