espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
152 stars 93 forks source link

Convert the tests from test components to component-specific test apps (IEC-11) #149

Closed igrr closed 1 month ago

igrr commented 1 year ago

Combining multiple test components into a single app doesn't scale well. For example, we already can't build the test_app for esp32s2, since the app doesn't fit into RAM. For this and other similar reasons, we have mostly migrated from test components to the component-specific test apps in IDF.

The task is to investigate how to do this in idf-extra-components, make the required changes to the tests and the CI workflow.

Potential problems:

lijunru-hub commented 1 year ago

In CMake, I can't find the -U option. How can I achieve the functionality of WHOLE_ARCHIVE in IDF 4.4? Could you provide a CMake template for this?

igrr commented 1 year ago

@lijunru-hub In v4.4 you can do it as done here and here. Note that you need one such hook symbol per object file.

igrr commented 1 month ago

This is probably becoming more relevant, as the number of components in the repo has increased and we do a lot of unnecessary builds/tests when only one of the components gets updated.