1common:
2  ignore_faults: true
3  tags:
4    - kernel
5    - mmu
6tests:
7  kernel.memory_protection.mem_map:
8    arch_allow:
9      - arm
10      - x86
11    filter: CONFIG_MMU and not CONFIG_X86_64 and not CONFIG_SOC_FAMILY_INTEL_ADSP
12    extra_sections: _TRANSPLANTED_FUNC
13    extra_configs:
14      - CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
15      - CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
16    platform_exclude:
17      - qemu_x86_64
18      - intel_adsp/ace30/ptl
19    integration_platforms:
20      - qemu_x86
21  kernel.memory_protection.mem_map.x86_64:
22    filter: CONFIG_MMU and CONFIG_X86_64 and not CONFIG_COVERAGE
23    extra_sections: _TRANSPLANTED_FUNC
24    platform_allow:
25      - qemu_x86_64
26  kernel.memory_protection.mem_map.x86_64.coverage:
27    filter: CONFIG_MMU and CONFIG_X86_64 and CONFIG_COVERAGE
28    extra_sections: _TRANSPLANTED_FUNC
29    extra_args:
30      - EXTRA_CFLAGS=-DSKIP_EXECUTE_TESTS
31    extra_configs:
32      - CONFIG_COVERAGE=y
33    platform_allow: qemu_x86_64
34  kernel.memory_protection.mem_map.x86_64.coverage.exec:
35    filter: CONFIG_MMU and CONFIG_X86_64 and CONFIG_COVERAGE
36    extra_sections: _TRANSPLANTED_FUNC
37    extra_args: CONF_FILE=prj_x86_64_coverage_exec.conf
38    platform_allow: qemu_x86_64
39  kernel.memory_protection.mem_map.soc_intel_adsp:
40    # This needs special treatment because the TEST_MEM_MAP section
41    # is placed at the end. Since there is code in TEST_MEM_MAP,
42    # rimage thinks the whole text section spans from .text to
43    # end of TEST_MEM_MAP, which overlaps .data and others, so
44    # it complains. Skip the execution test to avoid this issue.
45    extra_sections: _TRANSPLANTED_FUNC
46    extra_args: EXTRA_CFLAGS=-DSKIP_EXECUTE_TESTS
47    platform_allow:
48      - intel_adsp/ace30/ptl
49      - intel_adsp/ace30/ptl/sim
50