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

CMake: tests: Support skipping unsupported test with reason #14902

Merged
merged 5 commits into from
Aug 11, 2021

Commits on Aug 11, 2021

  1. CMake: turn mbed_greentea_add_test() into a function

    Unlike a macro, a function is more self-contained and can return
    early if necessary.
    LDong-Arm committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    e60ffed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86c00f6 View commit details
    Browse the repository at this point in the history
  3. CMake: tests: Support skipping a test with a reason

    Add a new argument `TEST_SKIPPED` to `mbed_greentea_add_test()` to
    indicate a test is skipped and give a reason (e.g. the Mbed target
    and/or configuration does not provide what the test requires).
    
    The skip reason of a test is printed when running tests with `ctest`,
    and the test is marked as "Skipped" in the test report.
    LDong-Arm committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    4917e01 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d7ef8f8 View commit details
    Browse the repository at this point in the history
  5. CMake: greentea: Port PSA Attestation test to CTest

    The PSA Attestation test suite requires full RTOS. There is no need
    to explicitly check PSA support, because when we build all greentea
    tests from the top of Mbed OS, PSA tests only get included if PSA is
    enabled.
    LDong-Arm committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    6776069 View commit details
    Browse the repository at this point in the history