diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-14 08:57:04 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-19 11:29:34 +0200 |
commit | 48d7a6858582560f763a51ed2ddb48fbeb079573 (patch) | |
tree | 8540ba8ec2220a2afafaa2f74bd605a41b4659b9 /spec | |
parent | spec: Add test header to test case item type (diff) | |
download | rtems-central-48d7a6858582560f763a51ed2ddb48fbeb079573.tar.bz2 |
spec: Unify test attribute keys
Diffstat (limited to 'spec')
-rw-r--r-- | spec/req/rtems/barrier/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/message/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/part/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/ratemon/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/sem/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/timer/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/req/rtems/userext/val/ident.yml | 34 | ||||
-rw-r--r-- | spec/spec/test-case.yml | 20 | ||||
-rw-r--r-- | spec/spec/test-suite.yml | 12 | ||||
-rw-r--r-- | spec/testsuites/validation-0.yml | 20 | ||||
-rw-r--r-- | spec/testsuites/validation/c-library.yml | 30 | ||||
-rw-r--r-- | spec/testsuites/validation/classic-barrier.yml | 30 | ||||
-rw-r--r-- | spec/testsuites/validation/profile.yml | 20 |
13 files changed, 185 insertions, 185 deletions
diff --git a/spec/req/rtems/barrier/val/ident.yml b/spec/req/rtems/barrier/val/ident.yml index 7fc206c3..9f19645d 100644 --- a/spec/req/rtems/barrier/val/ident.yml +++ b/spec/req/rtems/barrier/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident-local:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API partition class objects defined by ${../../ident-local}. links: [] -brief: Test the ${/if/rtems/barrier/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/barrier/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident-local.h -prologue: | +test-prologue: | rtems_status_code sc; rtems_id id_local_object; @@ -34,7 +35,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicBarrierIdentAction( rtems_name name, rtems_id *id @@ -42,6 +43,5 @@ support: | { return rtems_barrier_ident( name, id ); } -target: testsuites/validation/tc-barrier-ident.c -test-header: null +test-target: testsuites/validation/tc-barrier-ident.c type: test-case diff --git a/spec/req/rtems/message/val/ident.yml b/spec/req/rtems/message/val/ident.yml index 18565e64..e49f0ac3 100644 --- a/spec/req/rtems/message/val/ident.yml +++ b/spec/req/rtems/message/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API message queue class objects defined by ${../../ident}. links: [] -brief: Test the ${/if/rtems/message/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/message/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident.h -prologue: | +test-prologue: | rtems_status_code sc; rtems_id id_local_object; @@ -35,7 +36,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicMessageIdentAction( rtems_name name, uint32_t node, @@ -44,6 +45,5 @@ support: | { return rtems_message_queue_ident( name, node, id ); } -target: testsuites/validation/tc-message-ident.c -test-header: null +test-target: testsuites/validation/tc-message-ident.c type: test-case diff --git a/spec/req/rtems/part/val/ident.yml b/spec/req/rtems/part/val/ident.yml index 8120b9f1..b66ee21d 100644 --- a/spec/req/rtems/part/val/ident.yml +++ b/spec/req/rtems/part/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API partition class objects defined by ${../../ident}. links: [] -brief: Test the ${/if/rtems/part/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/part/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident.h -prologue: | +test-prologue: | static long area[32]; rtems_status_code sc; rtems_id id_local_object; @@ -37,7 +38,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicPartIdentAction( rtems_name name, uint32_t node, @@ -46,6 +47,5 @@ support: | { return rtems_partition_ident( name, node, id ); } -target: testsuites/validation/tc-part-ident.c -test-header: null +test-target: testsuites/validation/tc-part-ident.c type: test-case diff --git a/spec/req/rtems/ratemon/val/ident.yml b/spec/req/rtems/ratemon/val/ident.yml index 9279ceaf..5f33e73f 100644 --- a/spec/req/rtems/ratemon/val/ident.yml +++ b/spec/req/rtems/ratemon/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident-local:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API rate monotonic class objects defined by ${../../ident-local}. links: [] -brief: Test the ${/if/rtems/part/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/part/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident-local.h -prologue: | +test-prologue: | rtems_status_code sc; rtems_id id_local_object; @@ -32,7 +33,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicRatemonIdentAction( rtems_name name, rtems_id *id @@ -40,6 +41,5 @@ support: | { return rtems_rate_monotonic_ident( name, id ); } -target: testsuites/validation/tc-ratemon-ident.c -test-header: null +test-target: testsuites/validation/tc-ratemon-ident.c type: test-case diff --git a/spec/req/rtems/sem/val/ident.yml b/spec/req/rtems/sem/val/ident.yml index 3d231358..1f63f092 100644 --- a/spec/req/rtems/sem/val/ident.yml +++ b/spec/req/rtems/sem/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API semaphore class objects defined by ${../../ident}. links: [] -brief: Test the ${/if/rtems/sem/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/sem/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident.h -prologue: | +test-prologue: | rtems_status_code sc; rtems_id id_local_object; @@ -35,7 +36,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicSemIdentAction( rtems_name name, uint32_t node, @@ -44,6 +45,5 @@ support: | { return rtems_semaphore_ident( name, node, id ); } -target: testsuites/validation/tc-sem-ident.c -test-header: null +test-target: testsuites/validation/tc-sem-ident.c type: test-case diff --git a/spec/req/rtems/timer/val/ident.yml b/spec/req/rtems/timer/val/ident.yml index 3d0f479b..755f2e1a 100644 --- a/spec/req/rtems/timer/val/ident.yml +++ b/spec/req/rtems/timer/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident-local:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API timer class objects defined by ${../../ident-local}. links: [] -brief: Test the ${/if/rtems/timer/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/timer/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident-local.h -prologue: | +test-prologue: | rtems_status_code sc; rtems_id id_local_object; @@ -32,7 +33,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicTimerIdentAction( rtems_name name, rtems_id *id @@ -40,6 +41,5 @@ support: | { return rtems_timer_ident( name, id ); } -target: testsuites/validation/tc-timer-ident.c -test-header: null +test-target: testsuites/validation/tc-timer-ident.c type: test-case diff --git a/spec/req/rtems/userext/val/ident.yml b/spec/req/rtems/userext/val/ident.yml index 6308714b..5bbf7142 100644 --- a/spec/req/rtems/userext/val/ident.yml +++ b/spec/req/rtems/userext/val/ident.yml @@ -1,5 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: validation + uid: ../ident +test-actions: - action: | ${../../ident-local:/test-run}( id_local_object, @@ -10,20 +16,15 @@ actions: Run the generic object identification tests for Classic API user extension class objects defined by ${../../ident-local}. links: [] -brief: Test the ${/if/rtems/userext/ident:/name} directive. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: [] -links: -- role: validation - uid: ../ident -local-includes: +test-brief: Test the ${/if/rtems/userext/ident:/name} directive. +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: [] +test-local-includes: - support-object-ident-local.h -prologue: | +test-prologue: | static const rtems_extensions_table table; rtems_status_code sc; rtems_id id_local_object; @@ -34,7 +35,7 @@ prologue: | &id_local_object ); T_assert_rsc_success( sc ); -support: | +test-support: | static rtems_status_code ClassicUserExtIdentAction( rtems_name name, rtems_id *id @@ -42,6 +43,5 @@ support: | { return rtems_extension_ident( name, id ); } -target: testsuites/validation/tc-userext-ident.c -test-header: null +test-target: testsuites/validation/tc-userext-ident.c type: test-case diff --git a/spec/spec/test-case.yml b/spec/spec/test-case.yml index b8862ae8..614bb98e 100644 --- a/spec/spec/test-case.yml +++ b/spec/spec/test-case.yml @@ -14,24 +14,24 @@ spec-example: null spec-info: dict: attributes: - actions: + test-actions: description: null spec-type: test-case-action-list - brief: + test-brief: description: | It shall be the test case brief description. spec-type: str - description: + test-description: description: | It shall be the test case description. spec-type: optional-str - epilogue: + test-epilogue: description: | If the value is present, then it shall be the test case epilogue code. The epilogue code is placed in the test case body after the test case actions. spec-type: optional-str - fixture: + test-fixture: description: | If the value is present, then it shall be a pointer to the test case fixture. The test case fixture pointer declaration may be provided @@ -40,27 +40,27 @@ spec-info: test-header: description: null spec-type: test-header - includes: + test-includes: description: | It shall be a list of header files included via ``#include <...>``. spec-type: list-str - local-includes: + test-local-includes: description: | It shall be a list of header files included via ``#include "..."``. spec-type: list-str - prologue: + test-prologue: description: | If the value is present, then it shall be the test case prologue code. The prologue code is placed in the test case body before the test case actions. A use case is the declaration of local variables used by the test case actions. spec-type: optional-str - support: + test-support: description: | If the value is present, then it shall be the test case support code. The support code is placed at file scope before the test case code. spec-type: optional-str - target: + test-target: description: | It shall be the path to the generated target test case source file. spec-type: str diff --git a/spec/spec/test-suite.yml b/spec/spec/test-suite.yml index 35c99ff0..e8d7aaae 100644 --- a/spec/spec/test-suite.yml +++ b/spec/spec/test-suite.yml @@ -14,28 +14,28 @@ spec-example: null spec-info: dict: attributes: - brief: + test-brief: description: | It shall be the test suite brief description. spec-type: str - code: + test-code: description: | It shall be the test suite code. The test suite code is placed at file scope in the target source file. spec-type: str - description: + test-description: description: | It shall be the test suite description. spec-type: optional-str - includes: + test-includes: description: | It shall be a list of header files included via ``#include <...>``. spec-type: list-str - local-includes: + test-local-includes: description: | It shall be a list of header files included via ``#include "..."``. spec-type: list-str - target: + test-target: description: | It shall be the path to the generated target test suite source file. spec-type: str diff --git a/spec/testsuites/validation-0.yml b/spec/testsuites/validation-0.yml index e6a5d01f..6b1e6cb6 100644 --- a/spec/testsuites/validation-0.yml +++ b/spec/testsuites/validation-0.yml @@ -1,7 +1,11 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -brief: | +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: [] +test-brief: | This test suite contains a collection of unrelated test cases. -code: | +test-code: | static char runner_task_stack[ RTEMS_MINIMUM_STACK_SIZE ]; static char buffer[ 512 ]; @@ -106,15 +110,11 @@ code: | #define CONFIGURE_INIT #include <rtems/confdefs.h> -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -includes: +test-description: null +test-includes: - rtems.h - rtems/bspIo.h - rtems/sysinit.h -links: [] -local-includes: [] -target: testsuites/validation/ts-validation-0.c +test-local-includes: [] +test-target: testsuites/validation/ts-validation-0.c type: test-suite diff --git a/spec/testsuites/validation/c-library.yml b/spec/testsuites/validation/c-library.yml index dda4d364..e2abea9a 100644 --- a/spec/testsuites/validation/c-library.yml +++ b/spec/testsuites/validation/c-library.yml @@ -1,5 +1,9 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: [] +test-actions: - action: | p = aligned_alloc(128, 4); checks: @@ -53,26 +57,22 @@ actions: Set a source integer variable to one, set a destination integer variable to two, and copy the source to the destination variable through memcpy(). links: [] -brief: | +test-brief: | This test case calls functions of the C Library which are included in the space profile. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: null -fixture: null -includes: +test-description: null +test-epilogue: null +test-fixture: null +test-header: null +test-includes: - rtems.h - stdlib.h - rtems/malloc.h -links: [] -local-includes: [] -prologue: | +test-local-includes: [] +test-prologue: | void *p; int s; int d; -support: null -target: testsuites/validation/tc-space-profile.c -test-header: null +test-support: null +test-target: testsuites/validation/tc-space-profile.c type: test-case diff --git a/spec/testsuites/validation/classic-barrier.yml b/spec/testsuites/validation/classic-barrier.yml index d72b49ae..08325898 100644 --- a/spec/testsuites/validation/classic-barrier.yml +++ b/spec/testsuites/validation/classic-barrier.yml @@ -1,5 +1,9 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -actions: +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: [] +test-actions: - action: | id = 0xffffffff; sc = rtems_barrier_create(name, RTEMS_BARRIER_AUTOMATIC_RELEASE, 1, &id); @@ -60,27 +64,23 @@ actions: description: | Wait with an infinite timeout for the barrier. links: [] -brief: | +test-brief: | This test case calls functions of the Barrier Manager which are included in the space profile. -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -epilogue: | +test-description: null +test-epilogue: | T_check_rtems_barriers(T_EVENT_RUN_INITIALIZE_EARLY, T_case_name()); -fixture: null -includes: +test-fixture: null +test-header: null +test-includes: - rtems.h -links: [] -local-includes: [] -prologue: | +test-local-includes: [] +test-prologue: | static const rtems_name name = rtems_build_name('B', 'A', 'R', 'R'); rtems_status_code sc; rtems_id id; rtems_id id2; uint32_t released; -support: null -target: testsuites/validation/tc-space-profile.c -test-header: null +test-support: null +test-target: testsuites/validation/tc-space-profile.c type: test-case diff --git a/spec/testsuites/validation/profile.yml b/spec/testsuites/validation/profile.yml index b81556d0..75f3fef5 100644 --- a/spec/testsuites/validation/profile.yml +++ b/spec/testsuites/validation/profile.yml @@ -1,8 +1,12 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -brief: | +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: [] +test-brief: | This test suite contains test cases which call in combination all functions included in the space profile. -code: | +test-code: | #define NAME rtems_build_name('N', 'A', 'M', 'E') static void fatal_extension( @@ -142,16 +146,12 @@ code: | #define CONFIGURE_INIT #include <rtems/confdefs.h> -copyrights: -- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) -description: null -enabled-by: true -includes: +test-description: null +test-includes: - rtems.h - rtems/bspIo.h - rtems/sysinit.h - rtems/score/sysstate.h -links: [] -local-includes: [] -target: testsuites/validation/ts-space-profile.c +test-local-includes: [] +test-target: testsuites/validation/ts-space-profile.c type: test-suite |