Skip to content

Commit 268096d

Browse files
authored
Merge pull request #12296 from jeromecoutant/PR_FPGA_FORCE
FPGA_CI_TEST_SHIELD : force all peripheral to be tested
2 parents ba5dd4d + 0a18759 commit 268096d

File tree

2 files changed

+9
-0
lines changed
  • TESTS/mbed_hal_fpga_ci_test_shield/pwm
  • components/testing/COMPONENT_FPGA_CI_TEST_SHIELD

2 files changed

+9
-0
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,11 @@ Case cases[] = {
220220

221221
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
222222
{
223+
#ifdef FPGA_FORCE_ALL_PORTS
224+
GREENTEA_SETUP(300, "default_auto");
225+
#else
223226
GREENTEA_SETUP(120, "default_auto");
227+
#endif
224228
return greentea_test_setup_handler(number_of_cases);
225229
}
226230

components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ void all_peripherals()
291291
template<typename PortType, typename FormFactorType, typename PortType::TestFunctionType f>
292292
void one_peripheral()
293293
{
294+
#ifdef FPGA_FORCE_ALL_PORTS
295+
utest_printf("*** FPGA_FORCE_ALL_PORTS ***\n");
296+
all_ports<PortType, FormFactorType, f>();
297+
#else
294298
std::list<PortType> matched_ports, not_matched_ports;
295299
find_ports<PortType, FormFactorType>(matched_ports, not_matched_ports);
296300

@@ -300,6 +304,7 @@ void one_peripheral()
300304
} else {
301305
test_peripheral<PortType, typename PortType::TestFunctionType, f>(matched_ports.front());
302306
}
307+
#endif
303308
}
304309

305310
template <uint32_t N, typename PinMapType, typename FormFactorType, typename TestFunctionType>

0 commit comments

Comments
 (0)