Issues/issue 461 update to zephyr v3 4 0 in ci (#463)
* [WIP] Remove unit testcases duplicated under non-unit tree * [WIP] Update west.yml to Zephyr v3.3.0 (twister verified) * Update CI to Zephyr v3.4.0 w/ reduced module set - Update zephyr/module.yml to use Zephyr v3.4.0 + cmsis; - Update tests to use ZTEST_NEW_API for zephyr builds Verified by: 1. make clean test 2. ./zephyr/scripts/twister -p unit_testing -T bacnet/zephyr/tests/bacnet --------- Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
@@ -58,7 +58,11 @@ static void testDevObjPropRef(
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(bacdevobjpropref_tests, testDevIdPropRef)
|
||||
#else
|
||||
static void testDevIdPropRef(void)
|
||||
#endif
|
||||
{
|
||||
BACNET_DEVICE_OBJECT_PROPERTY_REFERENCE inData;
|
||||
|
||||
@@ -96,7 +100,11 @@ static void testDevIdPropRef(void)
|
||||
testDevObjPropRef(&inData);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(bacdevobjpropref_tests, testDevIdRef)
|
||||
#else
|
||||
static void testDevIdRef(void)
|
||||
#endif
|
||||
{
|
||||
BACNET_DEVICE_OBJECT_REFERENCE inData;
|
||||
BACNET_DEVICE_OBJECT_REFERENCE outData;
|
||||
@@ -115,7 +123,11 @@ static void testDevIdRef(void)
|
||||
inData.deviceIdentifier.type, outData.deviceIdentifier.type, NULL);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(bacdevobjpropref_tests, testObjPropRef)
|
||||
#else
|
||||
static void testObjPropRef(void)
|
||||
#endif
|
||||
{
|
||||
BACNET_OBJECT_PROPERTY_REFERENCE inData;
|
||||
BACNET_OBJECT_PROPERTY_REFERENCE outData;
|
||||
@@ -167,6 +179,9 @@ static void testObjPropRef(void)
|
||||
*/
|
||||
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST_SUITE(bacdevobjpropref_tests, NULL, NULL, NULL, NULL, NULL);
|
||||
#else
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(bacdevobjpropref_tests,
|
||||
@@ -177,3 +192,4 @@ void test_main(void)
|
||||
|
||||
ztest_run_test_suite(bacdevobjpropref_tests);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user