-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llext: actual test rework #67906
llext: actual test rework #67906
Conversation
Make it so LLEXT_TEST_HELLO is enabled by default, and it is actually compiled only when the config is enabled. The check for MODULES==y and LLEXT_TEST_HELLO!=m is redundant, as the Twister machinery already causes an error when Kconfig flags specified in the YAML file are coerced to different values. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
This patch reworks the YAML files for the llext samples and tests to share a common restriction list. Also, using an arch-specific config to disable the MPU for the ARM architecture only, there is no need to duplicate the test cases per architecture. Use this to enable the "writable" test case for the ARM architecture and separate the "modules_enabled" case to test building as a module. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
In preparation for multiple tests, move the current hello_world test to its own subdirectory. Also, merge the llext compilation in the parent CMakeLists.txt. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMake changes and renames look good.
The twister config changes too but I don't know enough about Twister.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this, though the test name being simple is probably more relevant as I planned on expanding it with various simple modules, not that you would've known that!
|
||
set(HELLO_WORLD_LLEXT ${llext_bin_file} PARENT_SCOPE) | ||
add_llext_target(hello_world |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is quite nice not having to write a custom cmake file now for this
This is a continuation of #67431 containing the llext-test-related commits that were already reviewed during that discussion. With this PR the
tests/llext
subdir can have multiple independent tests with minimal duplication.