summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-04 09:04:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-19 11:29:34 +0200
commite3e1de716d95b2e14a077d57f38ef77b3eb73ac8 (patch)
tree6ba0ab90921b6fe444439417257b03a60af576b4 /spec
parentvalidation: Add test early preparation (diff)
downloadrtems-central-e3e1de716d95b2e14a077d57f38ef77b3eb73ac8.tar.bz2
validation: Add test cleanup
Diffstat (limited to 'spec')
-rw-r--r--spec/req/rtems/ident-local.yml1
-rw-r--r--spec/req/rtems/ident.yml1
-rw-r--r--spec/req/rtems/tasks/ident.yml1
-rw-r--r--spec/spec/requirement-action.yml7
4 files changed, 10 insertions, 0 deletions
diff --git a/spec/req/rtems/ident-local.yml b/spec/req/rtems/ident-local.yml
index 5df88193..a6ef3a80 100644
--- a/spec/req/rtems/ident-local.yml
+++ b/spec/req/rtems/ident-local.yml
@@ -89,6 +89,7 @@ skip-reasons: {}
test-action: |
ctx->status = ( *ctx->action )( ctx->name, ctx->id );
test-brief: null
+test-cleanup: null
test-context:
- brief: null
description: null
diff --git a/spec/req/rtems/ident.yml b/spec/req/rtems/ident.yml
index b95fcef3..978bd5f3 100644
--- a/spec/req/rtems/ident.yml
+++ b/spec/req/rtems/ident.yml
@@ -142,6 +142,7 @@ skip-reasons: {}
test-action: |
ctx->status = ( *ctx->action )( ctx->name, ctx->node, ctx->id );
test-brief: null
+test-cleanup: null
test-context:
- brief: null
description: null
diff --git a/spec/req/rtems/tasks/ident.yml b/spec/req/rtems/tasks/ident.yml
index 61e26aa3..c9b4c1f8 100644
--- a/spec/req/rtems/tasks/ident.yml
+++ b/spec/req/rtems/tasks/ident.yml
@@ -56,6 +56,7 @@ test-action: |
);
}
test-brief: null
+test-cleanup: null
test-context:
- brief: null
description: null
diff --git a/spec/spec/requirement-action.yml b/spec/spec/requirement-action.yml
index aacef508..093ef671 100644
--- a/spec/spec/requirement-action.yml
+++ b/spec/spec/requirement-action.yml
@@ -85,6 +85,7 @@ spec-example: |
test-action: |
/* Call the function of the action */
test-brief: null
+ test-cleanup: null
test-context:
- brief: null
description: null
@@ -151,6 +152,12 @@ spec-info:
If the value is present, then it shall be the test case brief
description.
spec-type: optional-str
+ test-cleanup:
+ description: |
+ If the value is present, then it shall be the test cleanup code. The
+ code is placed in the test action loop body after the test
+ post-condition checks.
+ spec-type: optional-str
test-context:
description: null
spec-type: requirement-action-test-context-list