The demo can be configured to use different object types for its synchronization, so test all of them. The demo can also be configured to work with static objects or dynamic objects, byt default the demo uses dynamic objects, add a test for static objects. Also, the demo can be configured to work with threads of the same priority or not, so enable both options for testing Signed-off-by: Anas Nashif <anas.nashif@intel.com>
39 lines
858 B
YAML
39 lines
858 B
YAML
sample:
|
|
name: Dining Philosophers
|
|
common:
|
|
extra_args: "-DDEBUG_PRINTF=1"
|
|
tags: samples
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: false
|
|
regex:
|
|
- ".*STARVING.*"
|
|
- ".*DROPPED ONE FORK.*"
|
|
- ".*THINKING.*"
|
|
- ".*EATING.*"
|
|
tests:
|
|
test:
|
|
tags: samples
|
|
test_same_prio:
|
|
extra_args: "-DSAME_PRIO=1"
|
|
test_static:
|
|
extra_args: "-DSTATIC_OBJS=1"
|
|
test_semaphores:
|
|
extra_args: "-DFORKS=SEMAPHORES"
|
|
test_stacks:
|
|
extra_args: "-DFORKS=STACKS"
|
|
test_fifos:
|
|
extra_args: "-DFORKS=FIFOS"
|
|
test_lifos:
|
|
extra_args: "-DFORKS=LIFOS"
|
|
test_preempt_only:
|
|
extra_configs:
|
|
- CONFIG_NUM_PREEMPT_PRIORITIES=6
|
|
- CONFIG_NUM_COOP_PRIORITIES=0
|
|
- CONFIG_BT=n
|
|
test_coop_only:
|
|
extra_configs:
|
|
- CONFIG_NUM_PREEMPT_PRIORITIES=0
|
|
- CONFIG_NUM_COOP_PRIORITIES=6
|