From f38c0de407379c1073fc972e9a6d01f63c4b0f77 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 15 Feb 2021 09:14:41 +0100 Subject: validation: Add Validation1 test suite Update #4244. --- testsuites/validation/ts-default.h | 4 +- testsuites/validation/ts-validation-0.c | 4 +- testsuites/validation/ts-validation-1.c | 75 +++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 testsuites/validation/ts-validation-1.c (limited to 'testsuites/validation') diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h index 0385587beb..e8e2334825 100644 --- a/testsuites/validation/ts-default.h +++ b/testsuites/validation/ts-default.h @@ -133,8 +133,6 @@ static void task_stack_deallocate( void *stack ) #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER -#define CONFIGURE_MAXIMUM_PROCESSORS 4 - #define CONFIGURE_MAXIMUM_BARRIERS 3 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 3 @@ -178,7 +176,7 @@ static void task_stack_deallocate( void *stack ) #define CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE TASK_STORAGE_SIZE -#if defined(RTEMS_SMP) +#if defined(RTEMS_SMP) && CONFIGURE_MAXIMUM_PROCESSORS == 4 #define CONFIGURE_SCHEDULER_EDF_SMP diff --git a/testsuites/validation/ts-validation-0.c b/testsuites/validation/ts-validation-0.c index c56bd5ea81..4e0459edf8 100644 --- a/testsuites/validation/ts-validation-0.c +++ b/testsuites/validation/ts-validation-0.c @@ -52,8 +52,6 @@ #include "config.h" #endif -#include - #include /** @@ -72,6 +70,8 @@ const char rtems_test_name[] = "Validation0"; +#define CONFIGURE_MAXIMUM_PROCESSORS 4 + #include "ts-default.h" /** @} */ diff --git a/testsuites/validation/ts-validation-1.c b/testsuites/validation/ts-validation-1.c new file mode 100644 index 0000000000..11bef51fb7 --- /dev/null +++ b/testsuites/validation/ts-validation-1.c @@ -0,0 +1,75 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSTestSuiteTestsuitesValidation1 + */ + +/* + * 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 + +/** + * @defgroup RTEMSTestSuiteTestsuitesValidation1 spec:/testsuites/validation-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[] = "Validation1"; + +#define CONFIGURE_MAXIMUM_PROCESSORS 1 + +#include "ts-default.h" + +/** @} */ -- cgit v1.2.3