tests: Mass SMP disablement on non-SMP-safe tests

(Chunk 2 of 3 - this patch was split across pull requests to address
CI build time limitations)

Zephyr has always been a uniprocessor system, and its kernel tests are
rife with assumptions and outright dependence on single-CPU operation
(for example: "low priority threads will never run until this high
priority thread blocks" -- not true if there's another processor to
run it!)

About 1/3 of our tests fail right now on x86_64 when dual processor
operation is made default.  Most of those can probably be recovered on
a case-by-case basis with simple changes (and a few of them might
represent real bugs in SMP!), but for now let's make sure the full
test suite passes by turning the second CPU off.  There's still plenty
of SMP coverage in the remaining cases.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2019-02-22 11:45:23 -08:00 committed by Andrew Boie
commit fc3ca95ba7
16 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,4 @@
CONFIG_ZTEST=y
CONFIG_NUM_MBOX_ASYNC_MSGS=5
CONFIG_OBJECT_TRACING=y
CONFIG_SMP=n

View file

@ -1 +1,3 @@
CONFIG_ZTEST=y
CONFIG_SMP=n

View file

@ -1 +1,3 @@
CONFIG_ZTEST=y
CONFIG_SMP=n

View file

@ -2,3 +2,5 @@ CONFIG_ZTEST=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
# 1 millisecond
CONFIG_TIMESLICE_SIZE=1
CONFIG_SMP=n

View file

@ -2,3 +2,5 @@ CONFIG_ZTEST=y
CONFIG_STACK_POINTER_RANDOM=64
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_SMP=n

View file

@ -1,3 +1,5 @@
CONFIG_BT=n
CONFIG_MAIN_THREAD_PRIORITY=5
CONFIG_ZTEST=y
CONFIG_SMP=n

View file

@ -1,2 +1,4 @@
CONFIG_ZTEST=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_SMP=n

View file

@ -1 +1,3 @@
CONFIG_ZTEST=y
CONFIG_SMP=n

View file

@ -2,3 +2,5 @@ CONFIG_ZTEST=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
# 1 millisecond
CONFIG_TIMESLICE_SIZE=1
CONFIG_SMP=n

View file

@ -2,3 +2,5 @@ CONFIG_ZTEST=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_USERSPACE=y
CONFIG_DYNAMIC_OBJECTS=y
CONFIG_SMP=n

View file

@ -1,3 +1,5 @@
CONFIG_MAIN_THREAD_PRIORITY=10
CONFIG_ZTEST=y
CONFIG_ZTEST_STACKSIZE=512
CONFIG_SMP=n

View file

@ -1,2 +1,4 @@
CONFIG_ZTEST=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_SMP=n

View file

@ -2,3 +2,4 @@ CONFIG_OBJECT_TRACING=y
CONFIG_THREAD_MONITOR=y
CONFIG_ZTEST=y
CONFIG_BT=n
CONFIG_SMP=n

View file

@ -1 +1,3 @@
CONFIG_ZTEST=y
CONFIG_SMP=n

View file

@ -1,2 +1,4 @@
CONFIG_ZTEST=y
CONFIG_TEST_USERSPACE=y
CONFIG_SMP=n

View file

@ -2,3 +2,5 @@ CONFIG_ZTEST=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_TEST_USERSPACE=y
CONFIG_DYNAMIC_OBJECTS=y
CONFIG_SMP=n