From 0a1875924b44aab1d5fcf6588665eee9bcb95829 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Tue, 21 Jan 2020 17:17:10 +0100 Subject: [PATCH] FPGA_CI_TEST_SHIELD : force all peripheral to be tested --- TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp | 4 ++++ .../testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp b/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp index 988631b39f1..fd9bf5c8f1a 100644 --- a/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp +++ b/TESTS/mbed_hal_fpga_ci_test_shield/pwm/main.cpp @@ -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); } diff --git a/components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h b/components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h index e27e138559e..f91152519bf 100644 --- a/components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h +++ b/components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/test_utils.h @@ -291,6 +291,10 @@ void all_peripherals() template void one_peripheral() { +#ifdef FPGA_FORCE_ALL_PORTS + utest_printf("*** FPGA_FORCE_ALL_PORTS ***\n"); + all_ports(); +#else std::list matched_ports, not_matched_ports; find_ports(matched_ports, not_matched_ports); @@ -300,6 +304,7 @@ void one_peripheral() } else { test_peripheral(matched_ports.front()); } +#endif } template