mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
driver: register test app component by WHOLE_ARCHIVE
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
set(srcs "test_app_main.c"
|
||||
"test_i2c_lcd_panel.c")
|
||||
|
||||
idf_component_register(SRCS ${srcs})
|
||||
|
||||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u test_app_include_i2c_lcd")
|
||||
# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
|
||||
# the component can be registered as WHOLE_ARCHIVE
|
||||
idf_component_register(SRCS ${srcs}
|
||||
WHOLE_ARCHIVE)
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
#include "esp_system.h"
|
||||
#include "test_i2c_board.h"
|
||||
|
||||
void test_app_include_i2c_lcd(void)
|
||||
{
|
||||
}
|
||||
|
||||
TEST_CASE("lcd_panel_with_i2c_interface_(ssd1306)", "[lcd]")
|
||||
{
|
||||
const uint8_t pattern[][16] = {{
|
||||
|
||||
Reference in New Issue
Block a user