FPGA_CI_TEST_SHIELD : force all peripheral to be tested

pull/12296/head
jeromecoutant 2020-01-21 17:17:10 +01:00
parent 80fe861f1d
commit 0a1875924b
2 changed files with 9 additions and 0 deletions

View File

@ -220,7 +220,11 @@ Case cases[] = {
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
{
#ifdef FPGA_FORCE_ALL_PORTS
GREENTEA_SETUP(300, "default_auto");
#else
GREENTEA_SETUP(120, "default_auto");
#endif
return greentea_test_setup_handler(number_of_cases);
}

View File

@ -291,6 +291,10 @@ void all_peripherals()
template<typename PortType, typename FormFactorType, typename PortType::TestFunctionType f>
void one_peripheral()
{
#ifdef FPGA_FORCE_ALL_PORTS
utest_printf("*** FPGA_FORCE_ALL_PORTS ***\n");
all_ports<PortType, FormFactorType, f>();
#else
std::list<PortType> matched_ports, not_matched_ports;
find_ports<PortType, FormFactorType>(matched_ports, not_matched_ports);
@ -300,6 +304,7 @@ void one_peripheral()
} else {
test_peripheral<PortType, typename PortType::TestFunctionType, f>(matched_ports.front());
}
#endif
}
template <uint32_t N, typename PinMapType, typename FormFactorType, typename TestFunctionType>