mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
WIP/PoC: esp_netif UT as a test app
This commit is contained in:

committed by
Fu Hanxi

parent
9d3add538b
commit
f789380e19
11
components/unity/include/unity_fixture_extras.h
Normal file
11
components/unity/include/unity_fixture_extras.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* IDF-specific additions to "Unity Fixture" */
|
||||
#pragma once
|
||||
|
||||
/* A shorthand for running one test group from the main function */
|
||||
#define UNITY_MAIN(group_) do { \
|
||||
const char* argv[] = { "test", "-v" }; \
|
||||
const int argc = sizeof(argv)/sizeof(argv[0]); \
|
||||
int rc = UnityMain(argc, argv, TEST_ ## group_ ## _GROUP_RUNNER); \
|
||||
printf("\nTests finished, rc=%d\n", rc); \
|
||||
exit(rc); \
|
||||
} while(0)
|
Reference in New Issue
Block a user