Skip to content

Commit 1c91d03

Browse files
authored
Merge pull request #10975 from fkjagodzinski/fix-fpga_ci_test_shield-tests
Restrict FPGA tests to Arduino form factor
2 parents ad790f8 + e74e3dd commit 1c91d03

File tree

8 files changed

+17
-1
lines changed

8 files changed

+17
-1
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] Analog in not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/analogout/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] Analog out not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/gpio/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#if !COMPONENT_FPGA_CI_TEST_SHIELD
1919
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
20+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
21+
#error [NOT_SUPPORTED] Test not supported for this form factor
2022
#else
2123

2224
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/gpio_irq/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] test not supported
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/i2c/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] I2C not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] PWM not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/spi/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] SPI not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"

TESTS/mbed_hal_fpga_ci_test_shield/uart/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#error [NOT_SUPPORTED] SERIAL not supported for this target
2020
#elif !COMPONENT_FPGA_CI_TEST_SHIELD
2121
#error [NOT_SUPPORTED] FPGA CI Test Shield is needed to run this test
22+
#elif !defined(TARGET_FF_ARDUINO) && !defined(MBED_CONF_TARGET_DEFAULT_FORM_FACTOR)
23+
#error [NOT_SUPPORTED] Test not supported for this form factor
2224
#else
2325

2426
#include "utest/utest.h"
@@ -338,4 +340,4 @@ int main()
338340
Harness::run(specification);
339341
}
340342

341-
#endif /* !DEVICE_SERIAL */
343+
#endif /* !DEVICE_SERIAL */

0 commit comments

Comments
 (0)