-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: posix: common: separate posix timer tests into a smaller tests…
…uite posix.common contains testsuites that can be separated into smaller groups of tests. This change moves clock, sleep, nanosleep and timer into a singular testsuite at tests/posix/timer app directory. Signed-off-by: Marvin Ouma <[email protected]>
- Loading branch information
Showing
9 changed files
with
340 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(posix_timers) | ||
|
||
FILE(GLOB app_sources src/*.c) | ||
|
||
target_sources(app PRIVATE ${app_sources}) | ||
|
||
target_compile_options(app PRIVATE -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright (c) 2023, Meta | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Options specific to clock.c / test_realtime | ||
|
||
config TEST_CLOCK_RT_ITERATIONS | ||
int "Number of iterations to check clock_gettime() reliability" | ||
range 10 100 | ||
default 20 | ||
help | ||
This option is specific to posix_apis.test_realtime in clock.c | ||
|
||
config TEST_CLOCK_RT_SLEEP_MS | ||
int "Time to sleep between iterations in milliseconds" | ||
range 50 1000 | ||
default 100 | ||
help | ||
This option is specific to posix_apis.test_realtime in clock.c | ||
|
||
config TEST_CLOCK_RT_ERROR_MS | ||
int "Maximum overshoot (error) in milliseconds" | ||
range 10 500 | ||
default 10 | ||
help | ||
This option is specific to posix_apis.test_realtime in clock.c | ||
|
||
source "Kconfig.zephyr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_POSIX_API=y | ||
CONFIG_ZTEST=y | ||
|
||
CONFIG_POSIX_AEP_CHOICE_BASE=y | ||
CONFIG_POSIX_TIMERS=y |
Oops, something went wrong.