diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-07 13:56:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-28 07:38:58 +0200 |
commit | 42cde2319250c6367f6bb9d36de81de18145b8ed (patch) | |
tree | 0b5c2e2a301b79baf0223c5374cb15087edf6f18 | |
parent | d331e22f1f0e7ce2a12387638f3ea908fae33ee8 (diff) |
build reorganize test suites
-rw-r--r-- | spec/build/testsuites/validation/grp.yml | 8 | ||||
-rw-r--r-- | spec/build/testsuites/validation/validation-0.yml | 1 | ||||
-rw-r--r-- | spec/build/testsuites/validation/validation-1.yml | 6 | ||||
-rw-r--r-- | spec/build/testsuites/validation/validation-no-clock-0.yml (renamed from spec/build/testsuites/validation/validation-2.yml) | 4 | ||||
-rw-r--r-- | spec/build/testsuites/validation/validation-one-cpu-0.yml | 27 | ||||
-rw-r--r-- | spec/build/testsuites/validation/validation-one-cpu-1.yml | 21 | ||||
-rw-r--r-- | testsuites/validation/ts-validation-1.c | 10 | ||||
-rw-r--r-- | testsuites/validation/ts-validation-no-clock-0.c (renamed from testsuites/validation/ts-validation-2.c) | 7 | ||||
-rw-r--r-- | testsuites/validation/ts-validation-one-cpu-0.c | 76 | ||||
-rw-r--r-- | testsuites/validation/ts-validation-one-cpu-1.c | 76 |
10 files changed, 218 insertions, 18 deletions
diff --git a/spec/build/testsuites/validation/grp.yml b/spec/build/testsuites/validation/grp.yml index 49632875c4..cb5c691e60 100644 --- a/spec/build/testsuites/validation/grp.yml +++ b/spec/build/testsuites/validation/grp.yml @@ -49,16 +49,20 @@ links: - role: build-dependency uid: validation-1 - role: build-dependency - uid: validation-2 -- role: build-dependency uid: validation-acfg-0 - role: build-dependency uid: validation-dev-0 - role: build-dependency uid: validation-io-kernel - role: build-dependency + uid: validation-no-clock-0 +- role: build-dependency uid: validation-non-smp - role: build-dependency + uid: validation-one-cpu-0 +- role: build-dependency + uid: validation-one-cpu-1 +- role: build-dependency uid: validation-smp-only-0 - role: build-dependency uid: validation-smp-only-1 diff --git a/spec/build/testsuites/validation/validation-0.yml b/spec/build/testsuites/validation/validation-0.yml index f8eb5bf79d..81200e640b 100644 --- a/spec/build/testsuites/validation/validation-0.yml +++ b/spec/build/testsuites/validation/validation-0.yml @@ -84,7 +84,6 @@ source: - testsuites/validation/tc-support.c - testsuites/validation/tc-support-is-name-valid.c - testsuites/validation/tc-task.c -- testsuites/validation/tc-task-construct.c - testsuites/validation/tc-task-create-errors.c - testsuites/validation/tc-task-delete.c - testsuites/validation/tc-task-exit.c diff --git a/spec/build/testsuites/validation/validation-1.yml b/spec/build/testsuites/validation/validation-1.yml index cfd436c352..6b858baa36 100644 --- a/spec/build/testsuites/validation/validation-1.yml +++ b/spec/build/testsuites/validation/validation-1.yml @@ -11,13 +11,7 @@ includes: [] ldflags: [] links: [] source: -- testsuites/validation/tc-sem-delete.c -- testsuites/validation/tc-signal-catch.c -- testsuites/validation/tc-signal-send.c - testsuites/validation/tc-task-construct.c -- testsuites/validation/tc-task-create-errors.c -- testsuites/validation/tc-task-mode.c -- testsuites/validation/tc-task-set-affinity.c - testsuites/validation/ts-validation-1.c stlib: [] target: testsuites/validation/ts-validation-1.exe diff --git a/spec/build/testsuites/validation/validation-2.yml b/spec/build/testsuites/validation/validation-no-clock-0.yml index 8408adec33..8d6cfbe91d 100644 --- a/spec/build/testsuites/validation/validation-2.yml +++ b/spec/build/testsuites/validation/validation-no-clock-0.yml @@ -36,9 +36,9 @@ source: - testsuites/validation/tc-timer-server-fire-when.c - testsuites/validation/tr-tq-enqueue-fifo.c - testsuites/validation/tr-tq-enqueue-priority.c -- testsuites/validation/ts-validation-2.c +- testsuites/validation/ts-validation-no-clock-0.c stlib: [] -target: testsuites/validation/ts-validation-2.exe +target: testsuites/validation/ts-validation-no-clock-0.exe type: build use-after: - validation diff --git a/spec/build/testsuites/validation/validation-one-cpu-0.yml b/spec/build/testsuites/validation/validation-one-cpu-0.yml new file mode 100644 index 0000000000..931c18f534 --- /dev/null +++ b/spec/build/testsuites/validation/validation-one-cpu-0.yml @@ -0,0 +1,27 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: test-program +cflags: [] +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: true +features: c cprogram +includes: [] +ldflags: [] +links: [] +source: +- testsuites/validation/tc-sem-delete.c +- testsuites/validation/tc-signal-catch.c +- testsuites/validation/tc-signal-send.c +- testsuites/validation/tc-score-fatal.c +- testsuites/validation/tc-task-create-errors.c +- testsuites/validation/tc-task-mode.c +- testsuites/validation/tc-task-set-affinity.c +- testsuites/validation/ts-validation-one-cpu-0.c +stlib: [] +target: testsuites/validation/ts-validation-one-cpu-0.exe +type: build +use-after: +- validation +use-before: [] diff --git a/spec/build/testsuites/validation/validation-one-cpu-1.yml b/spec/build/testsuites/validation/validation-one-cpu-1.yml new file mode 100644 index 0000000000..78f8c1102a --- /dev/null +++ b/spec/build/testsuites/validation/validation-one-cpu-1.yml @@ -0,0 +1,21 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: test-program +cflags: [] +copyrights: +- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: true +features: c cprogram +includes: [] +ldflags: [] +links: [] +source: +- testsuites/validation/tc-task-construct.c +- testsuites/validation/ts-validation-one-cpu-1.c +stlib: [] +target: testsuites/validation/ts-validation-one-cpu-1.exe +type: build +use-after: +- validation +use-before: [] diff --git a/testsuites/validation/ts-validation-1.c b/testsuites/validation/ts-validation-1.c index 11bef51fb7..6f396dc873 100644 --- a/testsuites/validation/ts-validation-1.c +++ b/testsuites/validation/ts-validation-1.c @@ -7,7 +7,7 @@ */ /* - * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -60,15 +60,17 @@ * @ingroup RTEMSTestSuites * * @brief This general purpose validation test suite provides enough resources - * to run basic tests for all specified managers and functions in a - * configuration with exactly one processor. + * to run basic tests for all specified managers and functions. + * + * In SMP configurations, up to three scheduler instances using the SMP EDF + * scheduler are provided using up to four processors. * * @{ */ const char rtems_test_name[] = "Validation1"; -#define CONFIGURE_MAXIMUM_PROCESSORS 1 +#define CONFIGURE_MAXIMUM_PROCESSORS 5 #include "ts-default.h" diff --git a/testsuites/validation/ts-validation-2.c b/testsuites/validation/ts-validation-no-clock-0.c index 6f22c4db31..b9f5c5fc6c 100644 --- a/testsuites/validation/ts-validation-2.c +++ b/testsuites/validation/ts-validation-no-clock-0.c @@ -3,7 +3,7 @@ /** * @file * - * @ingroup RTEMSTestSuiteTestsuitesValidation2 + * @ingroup RTEMSTestSuiteTestsuitesValidationNoClock0 */ /* @@ -55,7 +55,8 @@ #include <rtems/test.h> /** - * @defgroup RTEMSTestSuiteTestsuitesValidation2 spec:/testsuites/validation-2 + * @defgroup RTEMSTestSuiteTestsuitesValidationNoClock0 \ + * spec:/testsuites/validation-no-clock-0 * * @ingroup RTEMSTestSuites * @@ -69,7 +70,7 @@ * @{ */ -const char rtems_test_name[] = "Validation2"; +const char rtems_test_name[] = "ValidationNoClock0"; #define CONFIGURE_MAXIMUM_PROCESSORS 4 diff --git a/testsuites/validation/ts-validation-one-cpu-0.c b/testsuites/validation/ts-validation-one-cpu-0.c new file mode 100644 index 0000000000..5fe8b5c276 --- /dev/null +++ b/testsuites/validation/ts-validation-one-cpu-0.c @@ -0,0 +1,76 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSTestSuiteTestsuitesValidationOneCpu0 + */ + +/* + * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * This file is part of the RTEMS quality process and was automatically + * generated. If you find something that needs to be fixed or + * worded better please post a report or patch to an RTEMS mailing list + * or raise a bug report: + * + * https://www.rtems.org/bugs.html + * + * For information on updating and regenerating please refer to the How-To + * section in the Software Requirements Engineering chapter of the + * RTEMS Software Engineering manual. The manual is provided as a part of + * a release. For development sources please refer to the online + * documentation at: + * + * https://docs.rtems.org + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <rtems/test.h> + +/** + * @defgroup RTEMSTestSuiteTestsuitesValidationOneCpu0 \ + * spec:/testsuites/validation-one-cpu-0 + * + * @ingroup RTEMSTestSuites + * + * @brief This general purpose validation test suite provides enough resources + * to run basic tests for all specified managers and functions in a + * configuration with exactly one processor. + * + * @{ + */ + +const char rtems_test_name[] = "ValidationOneCpu0"; + +#define CONFIGURE_MAXIMUM_PROCESSORS 1 + +#include "ts-default.h" + +/** @} */ diff --git a/testsuites/validation/ts-validation-one-cpu-1.c b/testsuites/validation/ts-validation-one-cpu-1.c new file mode 100644 index 0000000000..40181aabea --- /dev/null +++ b/testsuites/validation/ts-validation-one-cpu-1.c @@ -0,0 +1,76 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSTestSuiteTestsuitesValidationOneCpu1 + */ + +/* + * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * This file is part of the RTEMS quality process and was automatically + * generated. If you find something that needs to be fixed or + * worded better please post a report or patch to an RTEMS mailing list + * or raise a bug report: + * + * https://www.rtems.org/bugs.html + * + * For information on updating and regenerating please refer to the How-To + * section in the Software Requirements Engineering chapter of the + * RTEMS Software Engineering manual. The manual is provided as a part of + * a release. For development sources please refer to the online + * documentation at: + * + * https://docs.rtems.org + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <rtems/test.h> + +/** + * @defgroup RTEMSTestSuiteTestsuitesValidationOneCpu1 \ + * spec:/testsuites/validation-one-cpu-1 + * + * @ingroup RTEMSTestSuites + * + * @brief This general purpose validation test suite provides enough resources + * to run basic tests for all specified managers and functions in a + * configuration with exactly one processor. + * + * @{ + */ + +const char rtems_test_name[] = "ValidationOneCpu1"; + +#define CONFIGURE_MAXIMUM_PROCESSORS 1 + +#include "ts-default.h" + +/** @} */ |