From 40fbff6c8f2cba01fae4b4008258719477cdc57d Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Mon, 28 Oct 2019 06:54:54 +0100 Subject: [PATCH] tests: kernel: mem_protect: run tests with ARMV8-M MPU gap filling We add a new test-case for the mem_protect and userspace tests, to test the ARMv8-M MPU driver without the skipping of full SRAM partitioning (i.e. gap filling). Signed-off-by: Ioannis Glaropoulos --- tests/kernel/mem_protect/mem_protect/testcase.yaml | 6 ++++++ tests/kernel/mem_protect/userspace/testcase.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/kernel/mem_protect/mem_protect/testcase.yaml b/tests/kernel/mem_protect/mem_protect/testcase.yaml index 36e8e2e5f68..d6b4375897e 100644 --- a/tests/kernel/mem_protect/mem_protect/testcase.yaml +++ b/tests/kernel/mem_protect/mem_protect/testcase.yaml @@ -4,3 +4,9 @@ tests: filter: CONFIG_ARCH_HAS_USERSPACE platform_exclude: twr_ke18f tags: kernel security userspace ignore_faults + kernel.memory_protection.armv8m_gap_filling: + arch_whitelist: arm + filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS + extra_args: CONFIG_MPU_GAP_FILLING=y + min_ram: 32 + tags: kernel security userspace ignore_faults diff --git a/tests/kernel/mem_protect/userspace/testcase.yaml b/tests/kernel/mem_protect/userspace/testcase.yaml index f907b014253..9d01b40cd4d 100644 --- a/tests/kernel/mem_protect/userspace/testcase.yaml +++ b/tests/kernel/mem_protect/userspace/testcase.yaml @@ -3,3 +3,9 @@ tests: filter: CONFIG_ARCH_HAS_USERSPACE tags: kernel security userspace ignore_faults min_ram: 36 + kernel.memory_protection.userspace.armv8m_gap_filling: + arch_whitelist: arm + filter: CONFIG_ARCH_HAS_USERSPACE and CONFIG_MPU_REQUIRES_NON_OVERLAPPING_REGIONS + extra_args: CONFIG_MPU_GAP_FILLING=y + tags: kernel security userspace ignore_faults + min_ram: 36