summaryrefslogtreecommitdiffstats
path: root/spec/spec
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-14 07:41:24 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-19 11:29:34 +0200
commitb7e749b65fc22afd8eca5498a3931b81429146b8 (patch)
tree3bc70af5eb7ff97e20ab1f77b5a55911e0fdc3e1 /spec/spec
parentvalidation: Fix typos (diff)
downloadrtems-central-b7e749b65fc22afd8eca5498a3931b81429146b8.tar.bz2
spec: Add test header to test case item type
Diffstat (limited to 'spec/spec')
-rw-r--r--spec/spec/requirement-action.yml2
-rw-r--r--spec/spec/test-case.yml3
-rw-r--r--spec/spec/test-header.yml (renamed from spec/spec/requirement-action-test-header.yml)24
-rw-r--r--spec/spec/test-run-param-list.yml (renamed from spec/spec/requirement-action-test-run-param-list.yml)6
-rw-r--r--spec/spec/test-run-param.yml (renamed from spec/spec/requirement-action-test-run-param.yml)9
5 files changed, 24 insertions, 20 deletions
diff --git a/spec/spec/requirement-action.yml b/spec/spec/requirement-action.yml
index 1940ad51..e588a73b 100644
--- a/spec/spec/requirement-action.yml
+++ b/spec/spec/requirement-action.yml
@@ -173,7 +173,7 @@ spec-info:
spec-type: optional-str
test-header:
description: null
- spec-type: requirement-action-test-header
+ spec-type: test-header
test-includes:
description: |
It shall be a list of header files included via ``#include <...>``.
diff --git a/spec/spec/test-case.yml b/spec/spec/test-case.yml
index 03260915..b8862ae8 100644
--- a/spec/spec/test-case.yml
+++ b/spec/spec/test-case.yml
@@ -37,6 +37,9 @@ spec-info:
fixture. The test case fixture pointer declaration may be provided
by the test case support code or via an included header file.
spec-type: optional-str
+ test-header:
+ description: null
+ spec-type: test-header
includes:
description: |
It shall be a list of header files included via ``#include <...>``.
diff --git a/spec/spec/requirement-action-test-header.yml b/spec/spec/test-header.yml
index 2836e8da..a15fc5dc 100644
--- a/spec/spec/requirement-action-test-header.yml
+++ b/spec/spec/test-header.yml
@@ -12,8 +12,8 @@ spec-info:
attributes:
code:
description: |
- If the value is present, then it shall be the test case header code.
- The header code is placed at file scope after the test enum
+ If the value is present, then it shall be the test header code. The
+ header code is placed at file scope after the general test
declarations and before the test run function declaration.
spec-type: optional-str
includes:
@@ -28,21 +28,21 @@ spec-info:
spec-type: list-str
run-params:
description: null
- spec-type: requirement-action-test-run-param-list
+ spec-type: test-run-param-list
target:
description: |
It shall be the path to the generated test header file.
spec-type: str
description: |
- This set of attributes specifies an action requirement test header. In
- case a test header is specified, then instead of a test case a test run
- function will be generated. The test run function will be declared in
- the test header target file and defined in the test source target file.
- The test run function can be used to compose test cases. The test header
- file is not automatically included in the test source file. It should be
- added to the includes or local includes of the test.
+ This set of attributes specifies a test header. In case a test header is
+ specified, then instead of a test case a test run function will be
+ generated. The test run function will be declared in the test header
+ target file and defined in the test source target file. The test run
+ function can be used to compose test cases. The test header file is not
+ automatically included in the test source file. It should be added to
+ the includes or local includes of the test.
mandatory-attributes: all
none: null
-spec-name: Action Requirement Test Header
-spec-type: requirement-action-test-header
+spec-name: Test Header
+spec-type: test-header
type: spec
diff --git a/spec/spec/requirement-action-test-run-param-list.yml b/spec/spec/test-run-param-list.yml
index 0cf965d7..af481ac9 100644
--- a/spec/spec/requirement-action-test-run-param-list.yml
+++ b/spec/spec/test-run-param-list.yml
@@ -10,7 +10,7 @@ spec-example: null
spec-info:
list:
description: null
- spec-type: requirement-action-test-run-param
-spec-name: Action Requirement Test Run Parameter List
-spec-type: requirement-action-test-run-param-list
+ spec-type: test-run-param
+spec-name: Test Run Parameter List
+spec-type: test-run-param-list
type: spec
diff --git a/spec/spec/requirement-action-test-run-param.yml b/spec/spec/test-run-param.yml
index 8d23c11d..77c0d3c6 100644
--- a/spec/spec/requirement-action-test-run-param.yml
+++ b/spec/spec/test-run-param.yml
@@ -29,9 +29,10 @@ spec-info:
spec-type: str
description: |
This set of attributes specifies a parameter for the test run function.
- The parameter is also added as a member to the test context, see
- ${requirement-action-test-context:/spec-name}.
+ In case this parameter is used in an ${requirement-action:/spec-name}
+ item, then the parameter is also added as a member to the test context,
+ see ${requirement-action-test-context:/spec-name}.
mandatory-attributes: all
-spec-name: Action Requirement Test Run Parameter
-spec-type: requirement-action-test-run-param
+spec-name: Test Run Parameter
+spec-type: test-run-param
type: spec