Skip to content

Investigate how to skip unsupported tests with CTest #14856

@LDong-Arm

Description

@LDong-Arm

Description of defect

With Mbed CLI 1, unsupported tests are excluded in two ways:

  • Tests under excluded directories (e.g. FEATURE_BLE for a non-BLE target) are not compiled or listed at all
  • Tests under "visible" directories are listed, but during compile time the test source performs macros checks and raises #error [NOT_SUPPORT], which Mbed CLI 1 parses

Parsing an error message is not ideal, so we may use CMake to check feature availability instead. This task is to investigate how to do this.

Target(s) affected by this defect ?

N/A

Toolchain(s) (name and version) displaying this defect ?

N/A

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.12.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

N/A

How is this defect reproduced ?

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions