samples: add no-timers configuration which is runtime tested

Add no-timers configuration to sample.minimal to check that
it's actually working in runtime.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2023-06-23 07:53:26 +01:00 committed by Anas Nashif
commit 168de28b40
4 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,8 @@
# Copyright (c) 2023 Synopsys.
#
# SPDX-License-Identifier: Apache-2.0
config SAMPLE_DO_OUTPUT
bool "Do print from the main thread which can be checked"
source "Kconfig.zephyr"

View file

@ -0,0 +1,10 @@
# Drivers and peripherals
CONFIG_I2C=n
CONFIG_WATCHDOG=n
CONFIG_GPIO=n
CONFIG_PINCTRL=n
CONFIG_SPI=n
CONFIG_FLASH=n
# Boot
CONFIG_BOOT_DELAY=0

View file

@ -3,10 +3,10 @@ sample:
name: minimal
common:
tags: footprint
build_only: true
tests:
sample.minimal.mt.arm:
extra_args: CONF_FILE='common.conf;mt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
@ -18,6 +18,7 @@ tests:
- frdm_k64f
sample.minimal.mt-no-preempt.arm:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
@ -27,6 +28,7 @@ tests:
- disco_l475_iot1
sample.minimal.mt-no-preempt-no-timers.arm:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;no-timers.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
@ -36,6 +38,7 @@ tests:
- disco_l475_iot1
sample.minimal.no-mt.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
@ -45,6 +48,7 @@ tests:
- disco_l475_iot1
sample.minimal.no-mt-no-timers.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;no-timers.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
@ -54,16 +58,35 @@ tests:
- disco_l475_iot1
sample.minimal.mt.x86:
extra_args: CONF_FILE='common.conf;mt.conf;x86.conf'
build_only: true
platform_allow: qemu_x86
sample.minimal.mt-no-preempt.x86:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;x86.conf'
build_only: true
platform_allow: qemu_x86
sample.minimal.mt-no-preempt-no-timers.x86:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;no-timers.conf;x86.conf'
build_only: true
platform_allow: qemu_x86
sample.minimal.no-mt.x86:
extra_args: CONF_FILE='common.conf;no-mt.conf;x86.conf'
build_only: true
platform_allow: qemu_x86
sample.minimal.no-mt-no-timers.x86:
extra_args: CONF_FILE='common.conf;no-mt.conf;no-timers.conf;x86.conf'
build_only: true
platform_allow: qemu_x86
sample.minimal.no-timers.runtime:
extra_args:
- CONF_FILE='common-runtime.conf;no-timers.conf'
- CONFIG_SAMPLE_DO_OUTPUT=y
arch_allow: arc
tags:
- kernel
integration_platforms:
- qemu_arc_em
harness: console
harness_config:
type: one_line
regex:
- "Hello World from minimal!"

View file

@ -8,5 +8,9 @@
int main(void)
{
#ifdef CONFIG_SAMPLE_DO_OUTPUT
printk("Hello World from minimal!\n");
#endif
return 0;
}