driver: register test app component by WHOLE_ARCHIVE

This commit is contained in:
morris
2022-04-07 13:08:47 +08:00
parent a7d380c80a
commit 0a36cad9e0
28 changed files with 45 additions and 96 deletions

View File

@@ -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)

View File

@@ -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] = {{