mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
C3: build and run unit tests
Enable building and running of unit tests in CI for C3 as well as fix related compile errors Also enables building of C3 test apps
This commit is contained in:
@@ -56,6 +56,8 @@ TEST_CASE("can use std::vector", "[cxx]")
|
||||
#define LEAKS "300"
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
#define LEAKS "800"
|
||||
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||
#define LEAKS "600"
|
||||
#else
|
||||
#error "unknown target in CXX tests, can't set leaks threshold"
|
||||
#endif
|
||||
|
@@ -185,9 +185,12 @@ PriorityInitTest g_static_init_priority_test3;
|
||||
PriorityInitTest g_static_init_priority_test2 __attribute__((init_priority(1000)));
|
||||
PriorityInitTest g_static_init_priority_test1 __attribute__((init_priority(999)));
|
||||
|
||||
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C3)
|
||||
// TODO ESP32C3 IDF-2206
|
||||
TEST_CASE("init_priority extension works", "[cxx]")
|
||||
{
|
||||
TEST_ASSERT_EQUAL(0, g_static_init_priority_test1.index);
|
||||
TEST_ASSERT_EQUAL(1, g_static_init_priority_test2.index);
|
||||
TEST_ASSERT_EQUAL(2, g_static_init_priority_test3.index);
|
||||
}
|
||||
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C3)
|
||||
|
Reference in New Issue
Block a user