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: Add CMake to mbed-psa greentea tests #14828

Merged
merged 11 commits into from
Jun 29, 2021

Commits on Jun 29, 2021

  1. CMake: fix incorrect relative path for MBED_PATH

    MBED_PATH set to /platform directory incorrectly. Updated to set to
    /mbed-os directory.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    8b020f6 View commit details
    Browse the repository at this point in the history
  2. CMake: Remove unnecessary CMakeLists.txt

    CMakeLists.txt file in /hal/tests/TESTS/mbed_hal_fpga_ci_test_shield
    directory was non-functional as it used the greentea_add_test macro,
    which expects a main.cpp in current directory, but no main.cpp exists
    there. I checked with @rajkan01 who confirmed that this CMake file is
    serving no purpose and is there erroneously. All tests in subdirectories
    of this directory have their own CMakeLists.txt that successfully build
    them.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    3e71692 View commit details
    Browse the repository at this point in the history
  3. CMake: Remove alias for TEST_NAME argument

    The mbed_greentea_add_test macro previously set a variable in order to
    use the un-prefixed TEST_NAME to refer to the argument in the macro
    body. Whilst pair-programming with LDong, this was identified and
    determined to be unecessary (maybe it was a failed attempt to fix
    something, that was never reversed?) and so it has been removed.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    defc80a View commit details
    Browse the repository at this point in the history
  4. CMake: Require TEST_SOURCES in greentea CMake file

    Assumption that greentea test file is always named main.cpp is
    incorrect. Updated mbed_greentea_add_test() macro to make TEST_SOURCES
    parameter compulsory, which is used to specify greentea test
    file(s). This allows tests to use C, or have a different name.
    Therefore also updated all pre-existing greentea test CMake files to
    explicity add main.cpp to TEST_SOURCES.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    f95052c View commit details
    Browse the repository at this point in the history
  5. CMake: Add support for PSA attestation test

    The greentea test for mbed-psa attestation can now be built with CMake.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    4bed069 View commit details
    Browse the repository at this point in the history
  6. CMake: Add support for PSA crypto_init test

    The greentea test for mbed-psa crypto_init can now be built with CMake.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    9dc39a8 View commit details
    Browse the repository at this point in the history
  7. CMake: Add support for PSA its_ps test

    The greentea test for mbed-psa its_ps can now be built with CMake.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    24a3dab View commit details
    Browse the repository at this point in the history
  8. CMake: Add support for PSA entropy_inject test

    The greentea test for PSA entropy_inject can now be built with CMake.
    Note: requires MBEDTLS_ENTROPY_NV_SEED enabled, so not tested on target.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    26290ad View commit details
    Browse the repository at this point in the history
  9. CMake: Add mbed-psa-tal (Test Abstraction Layers)

    Move /val and /pal directories into /test_abstraction_layers directory
    and combine into one CMake target, mbed-psa-tal. Moved into seperate
    directory in order to have own CMakeLists.txt, rather than adding to
    /TARGET_MBED_PSA_SRV CMake file.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    62f110c View commit details
    Browse the repository at this point in the history
  10. CMake: Add support for compliance_attestation test

    Greentea test for PSA compliance_attestation can now build with CMake.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    13ea9f3 View commit details
    Browse the repository at this point in the history
  11. CMake: Add support for PSA compliance_its tests

    PSA compliance_its tests can now be built with CMake.
    hazzlim committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    f69a375 View commit details
    Browse the repository at this point in the history