Skip to content
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

Merged
merged 3 commits into from
Jan 24, 2024

Commits on Jan 22, 2024

  1. llext: fix test Kconfig module conditions

    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>
    pillo79 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    b3d9b97 View commit details
    Browse the repository at this point in the history
  2. llext: rework testcases to share common config

    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>
    pillo79 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    20ef9b2 View commit details
    Browse the repository at this point in the history
  3. llext: move current test to a hello_world subdir

    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>
    pillo79 committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    3acc01c View commit details
    Browse the repository at this point in the history