summaryrefslogtreecommitdiffstats
path: root/spec/testsuites/validation-smp-only-2.yml
blob: 88a042bf742c36163014512799108f8509a7eee5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: RTEMS_SMP
links:
- role: requirement-refinement
  uid: validation
test-brief: |
  This SMP-only test suite validates the clustered scheduler configuration
  through an application configuration with a processor maximum of two.  The
  second processor has a optional scheduler assigned and fails to start.
test-code: |
  const char rtems_test_name[] = "${.:/test-suite-name}";

  bool __wrap__CPU_SMP_Start_processor( uint32_t cpu_index );

  bool __wrap__CPU_SMP_Start_processor( uint32_t cpu_index )
  {
    (void) cpu_index;
    return false;
  }

  #define CONFIGURE_MAXIMUM_PROCESSORS 2

  #include <rtems/score/scheduleredfsmp.h>

  #define CONFIGURE_SCHEDULER_EDF_SMP

  #include <rtems/scheduler.h>

  RTEMS_SCHEDULER_EDF_SMP( a );

  #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \
    RTEMS_SCHEDULER_TABLE_EDF_SMP( a, TEST_SCHEDULER_A_NAME )

  #define CONFIGURE_SCHEDULER_ASSIGNMENTS \
    RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ), \
    RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_OPTIONAL )

  #include "ts-default.h"
test-description: null
test-includes: []
test-local-includes:
- ts-config.h
test-target: testsuites/validation/ts-validation-smp-only-2.c
type: test-suite