[PATCH 01/13] validation: Add Validation1 test suite

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Feb 17 19:30:16 UTC 2021


Update #4244.
---
 spec/build/bsps/tstsmallmem.yml               |  1 +
 spec/build/testsuites/validation/grp.yml      |  2 +
 .../testsuites/validation/validation-1.yml    | 19 +++++
 testsuites/validation/ts-default.h            |  4 +-
 testsuites/validation/ts-validation-0.c       |  4 +-
 testsuites/validation/ts-validation-1.c       | 75 +++++++++++++++++++
 6 files changed, 100 insertions(+), 5 deletions(-)
 create mode 100644 spec/build/testsuites/validation/validation-1.yml
 create mode 100644 testsuites/validation/ts-validation-1.c

diff --git a/spec/build/bsps/tstsmallmem.yml b/spec/build/bsps/tstsmallmem.yml
index 559d44362b..3d1ffa6b57 100644
--- a/spec/build/bsps/tstsmallmem.yml
+++ b/spec/build/bsps/tstsmallmem.yml
@@ -11,6 +11,7 @@ actions:
     sp47: exclude
     spstkalloc02: exclude
     validation-0: exclude
+    validation-1: exclude
 - set-value: -DPER_ALLOCATION=10
 - append-test-cppflags: sp71
 - set-value: -DMAXIMUM_DISTRIBUTION=10
diff --git a/spec/build/testsuites/validation/grp.yml b/spec/build/testsuites/validation/grp.yml
index 1a903a4198..564b1c62ac 100644
--- a/spec/build/testsuites/validation/grp.yml
+++ b/spec/build/testsuites/validation/grp.yml
@@ -14,6 +14,8 @@ links:
   uid: performance-0
 - role: build-dependency
   uid: validation-0
+- role: build-dependency
+  uid: validation-1
 type: build
 use-after:
 - rtemstest
diff --git a/spec/build/testsuites/validation/validation-1.yml b/spec/build/testsuites/validation/validation-1.yml
new file mode 100644
index 0000000000..4972e45034
--- /dev/null
+++ b/spec/build/testsuites/validation/validation-1.yml
@@ -0,0 +1,19 @@
+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/ts-validation-1.c
+stlib: []
+target: testsuites/validation/ts-validation-1.exe
+type: build
+use-after: []
+use-before: []
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 <rtems/test-info.h>
-
 #include <rtems/test.h>
 
 /**
@@ -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 <rtems/test.h>
+
+/**
+ * @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"
+
+/** @} */
-- 
2.26.2



More information about the devel mailing list