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

(Chunk 1 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 Kumar Gala
parent 85d895c60e
commit a334ac2045
16 changed files with 24 additions and 1 deletions

View file

@ -11,4 +11,4 @@ CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_THREAD_CUSTOM_DATA=y
CONFIG_SMP=n

View file

@ -10,3 +10,4 @@ CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_SMP=n

View file

@ -9,3 +9,5 @@ CONFIG_APPLICATION_DEFINED_SYSCALL=y
#Disable Userspace
CONFIG_TEST_USERSPACE=n
CONFIG_TEST_HW_STACK_PROTECTION=n
CONFIG_SMP=n

View file

@ -4,3 +4,5 @@ CONFIG_POLL=y
CONFIG_CMSIS_RTOS_V1=y
CONFIG_MAX_THREAD_BYTES=4
CONFIG_IRQ_OFFLOAD=y
CONFIG_SMP=n

View file

@ -5,3 +5,5 @@ CONFIG_POLL=y
CONFIG_QEMU_TICKLESS_WORKAROUND=y
CONFIG_BOOT_DELAY=500
CONFIG_IRQ_OFFLOAD=y
CONFIG_SMP=n

View file

@ -3,3 +3,5 @@ CONFIG_ZTEST=y
#CONFIG_MAIN_STACK_SIZE=1024
#CONFIG_ZTEST_STACKSIZE=2048
#CONFIG_IDLE_STACK_SIZE=512
CONFIG_SMP=n

View file

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

View file

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

View file

@ -1,3 +1,5 @@
CONFIG_HW_STACK_PROTECTION=y
CONFIG_ZTEST=y
CONFIG_COVERAGE=n
CONFIG_SMP=n

View file

@ -3,3 +3,4 @@ CONFIG_TEST_HW_STACK_PROTECTION=n
CONFIG_TEST_USERSPACE=n
CONFIG_ZTEST=y
CONFIG_COVERAGE=n
CONFIG_SMP=n

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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