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:
@@ -20,7 +20,11 @@
|
||||
/**
|
||||
* @brief Test CRC8 from Annex G 1.0 of BACnet Standard
|
||||
*/
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(crc_tests, testCRC8)
|
||||
#else
|
||||
static void testCRC8(void)
|
||||
#endif
|
||||
{
|
||||
uint8_t crc = 0xff; /* accumulates the crc value */
|
||||
uint8_t frame_crc; /* appended to the end of the frame */
|
||||
@@ -47,7 +51,11 @@ static void testCRC8(void)
|
||||
/**
|
||||
* @brief Test CRC8 from Annex G 2.0 of BACnet Standard
|
||||
*/
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(crc_tests, testCRC16)
|
||||
#else
|
||||
static void testCRC16(void)
|
||||
#endif
|
||||
{
|
||||
uint16_t crc = 0xffff;
|
||||
uint16_t data_crc;
|
||||
@@ -71,7 +79,11 @@ static void testCRC16(void)
|
||||
/**
|
||||
* @brief "Test" to create/log generated CRC8 table
|
||||
*/
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(crc_tests, testCRC8CreateTable)
|
||||
#else
|
||||
static void testCRC8CreateTable(void)
|
||||
#endif
|
||||
{
|
||||
uint8_t crc = 0xff; /* accumulates the crc value */
|
||||
int i;
|
||||
@@ -95,7 +107,11 @@ static void testCRC8CreateTable(void)
|
||||
/**
|
||||
* @brief "Test" to create/log generated CRC16 table
|
||||
*/
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST(crc_tests, testCRC16CreateTable)
|
||||
#else
|
||||
static void testCRC16CreateTable(void)
|
||||
#endif
|
||||
{
|
||||
uint16_t crc;
|
||||
int i;
|
||||
@@ -120,6 +136,9 @@ static void testCRC16CreateTable(void)
|
||||
*/
|
||||
|
||||
|
||||
#if defined(CONFIG_ZTEST_NEW_API)
|
||||
ZTEST_SUITE(crc_tests, NULL, NULL, NULL, NULL, NULL);
|
||||
#else
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(crc_tests,
|
||||
@@ -131,3 +150,4 @@ void test_main(void)
|
||||
|
||||
ztest_run_test_suite(crc_tests);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user