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

Restrict FPGA tests to Arduino form factor #10975

Merged
merged 2 commits into from
Jul 8, 2019

Conversation

fkjagodzinski
Copy link
Member

Currently only the Arduino form factor is supported (support for other form factors will be added in the future).

This patch will prevent the compilation of greentea tests for targets with non-arduino form factors (or no form factos at all). In consequence, this patch will fix compilation errors for EFM32GG11_STK3701 and TB_SENSE_12 when FPGA_CI_TEST_SHIELD component is added for all targets (#10965 (comment)).

Description

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[x] Test update
[ ] Breaking change

Reviewers

@c1728p9 @mprse @maciejbocianski @jamesbeyond

Release Notes

Currently only the Arduino form factor is supported. Support for other
form factors will be added in the future.
Copy link
Contributor

@maciejbocianski maciejbocianski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 5, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jul 5, 2019

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 1
Build artifacts

@@ -19,6 +19,8 @@
#error [NOT_SUPPORTED] Analog in not supported for this target
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
#elif !TARGET_FF_ARDUINO
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than !TARGET_FF_ARDUINO this should be !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR). This macro is set whenever there is a valid form factor.

@c1728p9
Copy link
Contributor

c1728p9 commented Jul 5, 2019

I added the alternate define in this branch:
https://github.com/c1728p9/mbed-os/tree/fix-fpga_ci_test_shield-tests

Build in the FPGA tests if either MBED_CONF_TARGET_DEFAULT_FORM_FACTOR
or TARGET_FF_ARDUINO is defined.
@fkjagodzinski
Copy link
Member Author

I added the alternate define in this branch:
https://github.com/c1728p9/mbed-os/tree/fix-fpga_ci_test_shield-tests

Thanks @c1728p9. I cherry-picked your commit. This PR should be ready to go.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 8, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jul 8, 2019

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 2
Build artifacts

@0xc0170 0xc0170 merged commit 1c91d03 into ARMmbed:master Jul 8, 2019
@fkjagodzinski fkjagodzinski deleted the fix-fpga_ci_test_shield-tests branch July 8, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants