Skip to content

Greentea tests fail to compile in baremetal mode in Mbed OS 5.14 #11570

@MarceloSalazar

Description

@MarceloSalazar

Description

The baremetal mode was introduced in Mbed OS 5.12 and we need to be able to run tests to confirm it works well across a number of platforms.

From the baremetal profile, there are two main items that are included: ["platform", "drivers"]

However, there are compile errors when trying to build simple greentea tests for drivers/platform on the Mbed OS baremetal profile.

Steps to reproduce

mbed import https://github.com/ARMmbed/mbed-os-example-blinky-baremetal#mbed-os-5.14
cd mbed-os-example-blinky-baremetal
move main.cpp main.old
mbed test -t ARM -m NUCLEO_F429ZI -n *echo* --compile

...

Build failures:
  * NUCLEO_F429ZI::ARMC6::MBED-OS-TESTS-MBED_DRIVERS-ECHO
        Building project echo (NUCLEO_F429ZI, ARMC6)
        Scan: ARM
        Scan: echo
        Compile [100.0%]: main.cpp
        [Fatal Error] main.cpp@20,10: 'greentea-client/test_env.h' file not found

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions