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:
@@ -19,7 +19,11 @@
|
||||
/**
|
||||
* @brief Test the FIFO
|
||||
*/
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeyListFIFO)
|
||||
#else
|
||||
static void testKeyListFIFO(void)
|
||||
#endif
|
||||
{
|
||||
OS_Keylist list;
|
||||
KEY key;
|
||||
@@ -62,7 +66,11 @@ static void testKeyListFIFO(void)
|
||||
}
|
||||
|
||||
/* test the FILO */
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeyListFILO)
|
||||
#else
|
||||
static void testKeyListFILO(void)
|
||||
#endif
|
||||
{
|
||||
OS_Keylist list;
|
||||
KEY key;
|
||||
@@ -108,7 +116,11 @@ static void testKeyListFILO(void)
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeyListDataKey)
|
||||
#else
|
||||
static void testKeyListDataKey(void)
|
||||
#endif
|
||||
{
|
||||
OS_Keylist list;
|
||||
KEY key;
|
||||
@@ -187,7 +199,11 @@ static void testKeyListDataKey(void)
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeyListDataIndex)
|
||||
#else
|
||||
static void testKeyListDataIndex(void)
|
||||
#endif
|
||||
{
|
||||
OS_Keylist list;
|
||||
KEY key;
|
||||
@@ -256,7 +272,11 @@ static void testKeyListDataIndex(void)
|
||||
}
|
||||
|
||||
/* test access of a lot of entries */
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeyListLarge)
|
||||
#else
|
||||
static void testKeyListLarge(void)
|
||||
#endif
|
||||
{
|
||||
int data1 = 42;
|
||||
int *data;
|
||||
@@ -286,7 +306,11 @@ static void testKeyListLarge(void)
|
||||
}
|
||||
|
||||
/* test the encode and decode macros */
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(keylist_tests, testKeySample)
|
||||
#else
|
||||
static void testKeySample(void)
|
||||
#endif
|
||||
{
|
||||
int type, id;
|
||||
int type_list[] = { 0, 1, KEY_TYPE_MAX / 2, KEY_TYPE_MAX - 1, -1 };
|
||||
@@ -318,6 +342,9 @@ static void testKeySample(void)
|
||||
*/
|
||||
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST_SUITE(keylist_tests, NULL, NULL, NULL, NULL, NULL);
|
||||
#else
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(keylist_tests,
|
||||
@@ -331,3 +358,4 @@ void test_main(void)
|
||||
|
||||
ztest_run_test_suite(keylist_tests);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user