[rtems-central commit] spec: Add unit test role
Sebastian Huber
sebh at rtems.org
Fri Apr 30 05:02:48 UTC 2021
Module: rtems-central
Branch: master
Commit: 2bc31a7cae41bf8e6fae1fb6a2b83943e765b30c
Changeset: http://git.rtems.org/rtems-central/commit/?id=2bc31a7cae41bf8e6fae1fb6a2b83943e765b30c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Apr 29 08:44:26 2021 +0200
spec: Add unit test role
---
spec/spec/test-case-action.yml | 5 ++++-
spec/spec/test-case-check.yml | 5 ++++-
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 669edbd..39ba892 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 d0b3238..7f8a2c3 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 0000000..6a6f75d
--- /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
More information about the vc
mailing list