WIP/PoC: esp_netif UT as a test app

This commit is contained in:
Ivan Grokhotkov
2020-04-18 11:47:00 +02:00
committed by Fu Hanxi
parent 9d3add538b
commit f789380e19
7 changed files with 313 additions and 1 deletions

View File

@@ -47,6 +47,10 @@ uint32_t unity_exec_time_get_ms(void);
#endif //CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER
#ifdef CONFIG_UNITY_ENABLE_FIXTURE
#include "unity_fixture_extras.h"
#endif // CONFIG_UNITY_ENABLE_FIXTURE
// shorthand to check esp_err_t return code
#define TEST_ESP_OK(rc) TEST_ASSERT_EQUAL_HEX32(ESP_OK, rc)
#define TEST_ESP_ERR(err, rc) TEST_ASSERT_EQUAL_HEX32(err, rc)