blob: 82b1c41cb40e608b2fe2c686a544cd84a1b899f0 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: true
links: []
test-actions:
- action-brief: |
Validate ${../if/get-processor:/name}.
action-code: |
uint32_t cpu_index;
uint32_t cpu_index_macro;
cpu_index = GetProcessor();
cpu_index_macro = GetProcessorMacro();
checks:
- brief: |
Check that the values returned by ${../if/get-processor:/name}
and ${../if/get-processor-macro:/name} are equal.
code: |
T_step_eq_u32( ${.:/step}, cpu_index, cpu_index_macro );
links:
- role: validation
uid: ../req/get-processor
links: []
- action-brief: |
Validate ${../if/get-processor-maximum:/name}.
action-code: |
uint32_t cpu_max;
uint32_t cpu_max_macro;
cpu_max = GetProcessorMaximum();
cpu_max_macro = GetProcessorMaximumMacro();
checks:
- brief: |
Check that the values returned by ${../if/get-processor-maximum:/name}
and ${../if/get-processor-maximum-macro:/name} are equal.
code: |
T_step_eq_u32( ${.:/step}, cpu_max, cpu_max_macro );
links:
- role: validation
uid: ../req/get-processor-maximum
links: []
test-brief: |
This test case collection provides validation test cases for
general requirements of the ${../if/group:/name}.
test-context: []
test-context-support: null
test-description: null
test-header: null
test-includes:
- rtems.h
test-local-includes:
- tx-support.h
test-setup: null
test-stop: null
test-support: |
static uint32_t GetProcessorMaximumMacro( void )
{
return rtems_scheduler_get_processor_maximum();
}
#undef rtems_scheduler_get_processor_maximum
static uint32_t GetProcessorMaximum( void )
{
return rtems_scheduler_get_processor_maximum();
}
static uint32_t GetProcessorMacro( void )
{
return rtems_scheduler_get_processor();
}
#undef rtems_scheduler_get_processor
static uint32_t GetProcessor( void )
{
return rtems_scheduler_get_processor();
}
test-target: testsuites/validation/tc-scheduler.c
test-teardown: null
type: test-case
|