From fc14d391bf61e16397231530b46ee1036a1c5f0d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 15 Sep 2021 15:43:33 +0200 Subject: spec: Add unit test example --- spec/testsuites/unit-0.yml | 24 ++++++++++++++++++++++++ spec/testsuites/unit-no-clock-0.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 spec/testsuites/unit-0.yml create mode 100644 spec/testsuites/unit-no-clock-0.yml (limited to 'spec/testsuites') diff --git a/spec/testsuites/unit-0.yml b/spec/testsuites/unit-0.yml new file mode 100644 index 00000000..352f4c67 --- /dev/null +++ b/spec/testsuites/unit-0.yml @@ -0,0 +1,24 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2020, 2021 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: requirement-refinement + uid: /req/test-suites +test-brief: | + This general purpose unit test suite provides enough resources to run + basic tests for all specified managers and functions. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #define CONFIGURE_MAXIMUM_PROCESSORS 5 + + #include "../validation/ts-default.h" +test-description: | + In SMP configurations, up to three scheduler instances using the SMP EDF + scheduler are provided using up to four processors. +test-includes: [] +test-local-includes: [] +test-suite-name: Unit0 +test-target: testsuites/unit/ts-unit-0.c +type: test-suite diff --git a/spec/testsuites/unit-no-clock-0.yml b/spec/testsuites/unit-no-clock-0.yml new file mode 100644 index 00000000..685daf90 --- /dev/null +++ b/spec/testsuites/unit-no-clock-0.yml @@ -0,0 +1,27 @@ +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: requirement-refinement + uid: /req/test-suites +test-brief: | + This general purpose unit test suite provides enough resources to run + basic tests without a ${/glossary/clock-driver:/term} for all specified + managers and functions. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #define CONFIGURE_MAXIMUM_PROCESSORS 4 + + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + + #include "../validation/ts-default.h" +test-description: | + In SMP configurations, up to three scheduler instances using the SMP EDF + scheduler are provided using up to four processors. +test-includes: [] +test-local-includes: [] +test-suite-name: UnitNoClock0 +test-target: testsuites/unit/ts-unit-no-clock-0.c +type: test-suite -- cgit v1.2.3