-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: settings: functional: fix missing test_main
The functional tests for settings subsystem regressed with the introduction of the weak test_main function. This was caused by Issue #19582 since the common code was being linked as a library. Update the logic of the common code to directly add the sources to the `app` target. This resolved both Issue #19582 and #42396 Signed-off-by: Yuval Peress <peress@google.com>
- Loading branch information
Showing
16 changed files
with
6 additions
and
78 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2019 Nordic Semiconductor ASA | ||
|
||
zephyr_library_named(settings_test_fs) | ||
|
||
# zephyr_library() is here in "app-mode", see | ||
# https://github.com/zephyrproject-rtos/zephyr/issues/19582 | ||
# Random build failures without this, depends on the number of threads. | ||
add_dependencies(settings_test_fs | ||
zephyr_generated_headers | ||
) | ||
|
||
FILE(GLOB fssources *.c ) | ||
zephyr_library_sources(${fssources}) | ||
zephyr_library_link_libraries(kernel) | ||
target_sources(app PRIVATE ${fssources}) |
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
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 |
---|---|---|
@@ -1,18 +1,8 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_library_named( settings_func_test) | ||
|
||
zephyr_include_directories( | ||
${ZEPHYR_BASE}/subsys/settings/include | ||
${ZEPHYR_BASE}/subsys/settings/src | ||
) | ||
|
||
zephyr_library_sources(settings_basic_test.c) | ||
|
||
# zephyr_library() is here in "app-mode", see | ||
# https://github.com/zephyrproject-rtos/zephyr/issues/19582 | ||
# Random build failures without this, depends on the number of threads. | ||
add_dependencies( | ||
settings_func_test | ||
zephyr_generated_headers | ||
) | ||
target_sources(app PRIVATE settings_basic_test.c) |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2019 Intel Corporation | ||
|
||
zephyr_library_named(settings_nvs_test) | ||
|
||
zephyr_include_directories( | ||
${ZEPHYR_BASE}/subsys/settings/include | ||
${ZEPHYR_BASE}/subsys/settings/src | ||
${ZEPHYR_BASE}/tests/subsys/settings/nvs/src | ||
) | ||
|
||
zephyr_library_sources(settings_test_nvs.c) | ||
target_sources(app PRIVATE settings_test_nvs.c) | ||
|
||
add_subdirectory(../../src settings_test_bindir) | ||
target_link_libraries(settings_nvs_test PRIVATE settings_test) |
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 |
---|---|---|
@@ -1,15 +1,5 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright (c) 2019 Intel Corporation | ||
|
||
zephyr_library_named(settings_test) | ||
|
||
# zephyr_library() is here in "app-mode", see | ||
# https://github.com/zephyrproject-rtos/zephyr/issues/19582 | ||
# Random build failures without this, depends on the number of threads. | ||
add_dependencies( | ||
settings_test | ||
zephyr_generated_headers | ||
) | ||
|
||
FILE(GLOB mysources *.c ) | ||
zephyr_library_sources(${mysources}) | ||
target_sources(app PRIVATE ${mysources}) |