Issues/issue 593 update to zephyr v3 6 0 (#601)
* [WIP] update manifest to zephyr v3.6.0
* [WIP] Deprecated ZTEST_NEW_API adjustments
Zephyr v3.6.0 removed Kconfig ZTEST_NEW_API.
The old ZTEST API is still used by non-Zephyr builds,
so the config setting is moved from `prj.conf` to
the test's CMakeLists.txt as `add_compile_definitions()`.
Verified by:
1. make clean all test
2. ./zephyr/scripts/twister -p unit_testing \
-T bacnet-stack/zephyr/tests/
---------
Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
@@ -53,3 +53,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
CONFIG_BACNET_ADDRESS_CACHE_FILE=y
|
||||
|
||||
@@ -67,3 +67,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -71,3 +71,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -67,3 +67,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -69,3 +69,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -70,3 +70,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -79,3 +79,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -72,3 +72,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -71,3 +71,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -71,3 +71,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -77,3 +77,5 @@ else()
|
||||
${TEST_OBJECT_SRC}/property_test.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -79,3 +79,5 @@ else()
|
||||
${TEST_OBJECT_SRC}/property_test.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -117,3 +117,5 @@ else()
|
||||
#${BACNET_TEST_PATH}/stubs.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -74,3 +74,5 @@ else()
|
||||
# ${BACNET_BASE}/test/ztest/src/ztest.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -71,3 +71,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -69,3 +69,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -69,3 +69,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -69,3 +69,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -79,3 +79,5 @@ else()
|
||||
${TEST_OBJECT_SRC}/property_test.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
# BIP Options
|
||||
|
||||
@@ -69,3 +69,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -68,3 +68,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -78,3 +78,5 @@ else()
|
||||
${TEST_OBJECT_SRC}/property_test.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -72,3 +72,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -38,3 +38,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -38,3 +38,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -37,3 +37,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -38,3 +38,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -38,3 +38,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
@@ -38,3 +38,5 @@ else()
|
||||
${BACNET_TEST_PATH}/src/main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(CONFIG_ZTEST_NEW_API) # For exposing deprecated Kconfig
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_ZTEST_NEW_API=y
|
||||
CONFIG_BACNETSTACK=y
|
||||
|
||||
Reference in New Issue
Block a user