diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-29 08:44:26 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-29 16:45:46 +0200 |
commit | 2bc31a7cae41bf8e6fae1fb6a2b83943e765b30c (patch) | |
tree | 4b09dcb5e18dafb4e21ef84de501bb682720fb98 | |
parent | spec: Add requirement for interface domains (diff) | |
download | rtems-central-2bc31a7cae41bf8e6fae1fb6a2b83943e765b30c.tar.bz2 |
spec: Add unit test role
-rw-r--r-- | spec/spec/test-case-action.yml | 5 | ||||
-rw-r--r-- | spec/spec/test-case-check.yml | 5 | ||||
-rw-r--r-- | spec/spec/test-unit-role.yml | 28 |
3 files changed, 36 insertions, 2 deletions
diff --git a/spec/spec/test-case-action.yml b/spec/spec/test-case-action.yml index 669edbd0..39ba8929 100644 --- a/spec/spec/test-case-action.yml +++ b/spec/spec/test-case-action.yml @@ -22,7 +22,10 @@ spec-info: description: null spec-type: test-case-check-list links: - description: null + description: | + The links should use the ${requirement-validation-role:/spec-name} + for validation tests and the ${test-unit-role:/spec-name} for unit + tests. spec-type: links description: | This set of attributes specifies a test case action. diff --git a/spec/spec/test-case-check.yml b/spec/spec/test-case-check.yml index d0b32385..7f8a2c33 100644 --- a/spec/spec/test-case-check.yml +++ b/spec/spec/test-case-check.yml @@ -19,7 +19,10 @@ spec-info: It shall be the test case check code. spec-type: str links: - description: null + description: | + The links should use the ${requirement-validation-role:/spec-name} + for validation tests and the ${test-unit-role:/spec-name} for unit + tests. spec-type: links description: | This set of attributes specifies a test case check. diff --git a/spec/spec/test-unit-role.yml b/spec/spec/test-unit-role.yml new file mode 100644 index 00000000..6a6f75d9 --- /dev/null +++ b/spec/spec/test-unit-role.yml @@ -0,0 +1,28 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: spec-member + uid: root +- role: spec-refinement + spec-key: role + spec-value: unit-test + uid: link +spec-description: null +spec-example: null +spec-info: + dict: + attributes: + name: + description: | + It shall be the name of the tested software unit. + spec-type: str + description: | + It defines the unit test role of links. For unit tests the link target + should be the ${interface-domain:/spec-name} containing the software + unit. + mandatory-attributes: all +spec-name: Unit Test Link Role +spec-type: test-unit-role +type: spec |