Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions testing/ostest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ if(CONFIG_TESTING_OSTEST)
list(APPEND SRCS aio.c)
endif()

if(CONFIG_TESTING_OSTEST_MULTIUSER)
list(APPEND SRCS multiuser.c)
endif()

if(CONFIG_SCHED_WAITPID)
list(APPEND SRCS waitpid.c)
endif()
Expand Down Expand Up @@ -133,9 +137,7 @@ if(CONFIG_TESTING_OSTEST)
endif() # CONFIG_DISABLE_MQUEUE

if(NOT CONFIG_DISABLE_POSIX_TIMERS)
if(NOT CONFIG_DISABLE_ALL_SIGNALS)
list(APPEND SRCS posixtimer.c)
endif()
list(APPEND SRCS posixtimer.c)
if(CONFIG_SIG_EVTHREAD)
list(APPEND SRCS sigev_thread.c)
endif()
Expand Down
10 changes: 10 additions & 0 deletions testing/ostest/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ config TESTING_OSTEST_SPINLOCK_THREADS
default 2
range 1 32

config TESTING_OSTEST_MULTIUSER
bool "Multi-user identity and permission tests"
default n
depends on SCHED_USER_IDENTITY
---help---
Enable regression tests for UID/GID identity switching and file
permission enforcement. Individual sub-tests run only when the
corresponding kernel options are enabled (for example pseudoFS
permission checks require FS_PERMISSION and PSEUDOFS_FILE).

config TEST_LOOP_SCALE
int "Loop scale of spinlock test (N x 10,000)"
default 100
Expand Down
6 changes: 4 additions & 2 deletions testing/ostest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ ifeq ($(CONFIG_TESTING_OSTEST_AIO),y)
CSRCS += aio.c
endif

ifeq ($(CONFIG_TESTING_OSTEST_MULTIUSER),y)
CSRCS += multiuser.c
endif

ifeq ($(CONFIG_SCHED_WAITPID),y)
CSRCS += waitpid.c
endif
Expand Down Expand Up @@ -134,9 +138,7 @@ endif # CONFIG_DISABLE_PTHREAD
endif # CONFIG_DISABLE_MQUEUE

ifneq ($(CONFIG_DISABLE_POSIX_TIMERS),y)
ifneq ($(CONFIG_DISABLE_ALL_SIGNALS),y)
CSRCS += posixtimer.c
endif
ifeq ($(CONFIG_SIG_EVTHREAD),y)
CSRCS += sigev_thread.c
endif
Expand Down
Loading
Loading