source: rtems/testsuites/validation/ts-validation-smp-only-1.c @ 212b0ca

Last change on this file since 212b0ca was 212b0ca, checked in by Sebastian Huber <sebastian.huber@…>, on 12/09/21 at 14:58:14

validation: Add test suites

The test source code is generated from specification items
by the "./spec2modules.py" script contained in the
git://git.rtems.org/rtems-central.git Git repository.

Please read the "How-To" section in the "Software Requirements Engineering"
chapter of the RTEMS Software Engineering manual to get more information about
the process.

Update #3716.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1/* SPDX-License-Identifier: BSD-2-Clause */
2
3/**
4 * @file
5 *
6 * @ingroup RTEMSTestSuiteTestsuitesValidationSmpOnly1
7 */
8
9/*
10 * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 *    notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 *    notice, this list of conditions and the following disclaimer in the
19 *    documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/*
35 * This file is part of the RTEMS quality process and was automatically
36 * generated.  If you find something that needs to be fixed or
37 * worded better please post a report or patch to an RTEMS mailing list
38 * or raise a bug report:
39 *
40 * https://www.rtems.org/bugs.html
41 *
42 * For information on updating and regenerating please refer to the How-To
43 * section in the Software Requirements Engineering chapter of the
44 * RTEMS Software Engineering manual.  The manual is provided as a part of
45 * a release.  For development sources please refer to the online
46 * documentation at:
47 *
48 * https://docs.rtems.org
49 */
50
51#ifdef HAVE_CONFIG_H
52#include "config.h"
53#endif
54
55#include "ts-config.h"
56
57#include <rtems/test.h>
58
59/**
60 * @defgroup RTEMSTestSuiteTestsuitesValidationSmpOnly1 \
61 *   spec:/testsuites/validation-smp-only-1
62 *
63 * @ingroup RTEMSTestSuites
64 *
65 * @brief This SMP-only test suite validates the clustered scheduler
66 *   configuration through an application configuration with a processor
67 *   maximum of two, however, only the first processor has a scheduler
68 *   assigned.
69 *
70 * @{
71 */
72
73const char rtems_test_name[] = "ValidationSMPOnly1";
74
75#define CONFIGURE_MAXIMUM_PROCESSORS 2
76
77#include <rtems/score/scheduleredfsmp.h>
78
79#define CONFIGURE_SCHEDULER_EDF_SMP
80
81#include <rtems/scheduler.h>
82
83RTEMS_SCHEDULER_EDF_SMP( a );
84
85#define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
86  RTEMS_SCHEDULER_TABLE_EDF_SMP( a, TEST_SCHEDULER_A_NAME )
87
88#define CONFIGURE_SCHEDULER_ASSIGNMENTS \
89  RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ), \
90  RTEMS_SCHEDULER_ASSIGN_NO_SCHEDULER
91
92#include "ts-default.h"
93
94/** @} */
Note: See TracBrowser for help on using the repository browser.