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

Investigate how to skip unsupported tests with CTest #14856

Closed
Tracked by #14853
LDong-Arm opened this issue Jul 1, 2021 · 0 comments · Fixed by #14902
Closed
Tracked by #14853

Investigate how to skip unsupported tests with CTest #14856

LDong-Arm opened this issue Jul 1, 2021 · 0 comments · Fixed by #14902

Comments

@LDong-Arm
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants