mirror of https://github.com/ARMmbed/mbed-os.git
FPGA_CI_TEST_SHIELD : force all peripheral to be tested
parent
80fe861f1d
commit
0a1875924b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue