gpio: Refactor pytest_gpio to separate cases with labels, and update to use new IdfDut class in pytest_embedded_idf

This commit is contained in:
Song Ruo Jing
2022-12-13 20:06:37 +08:00
parent 11dee5d27f
commit 8db902c57b
4 changed files with 57 additions and 28 deletions

View File

@@ -149,17 +149,6 @@ void unity_testcase_register(test_desc_t* desc);
}
/*
Test case macro to be ignored in CI.
Tests will still be built (to check for compile error) but not linked if CONFIG_IDF_CI_BUILD.
*/
#ifdef CONFIG_IDF_CI_BUILD
#define TEST_CASE_CI_IGNORE(name_, desc_) \
__attribute__((unused)) static void UNITY_TEST_UID(test_func_) (void)
#else
#define TEST_CASE_CI_IGNORE(name_, desc_) TEST_CASE(name_, desc_)
#endif
/**
* Note: initialization of test_desc_t fields above has to be done exactly
* in the same order as the fields are declared in the structure.