def run_tests(self): """Run all configurations""" # Tests can only be run once per TestManager instance assert self._state is self._STATE.CONFIGURED self._state = self._STATE.COMPLETE all_tests_pass = True for test_configuration in self._test_configuration_list: board = test_configuration.board test_info = TestInfo(test_configuration.name) test_configuration.test_info = test_info test_info.info("Board: %s" % test_configuration.board) test_info.info("Application: %s" % test_configuration.if_firmware) test_info.info("Bootloader: %s" % test_configuration.bl_firmware) test_info.info("Target: %s" % test_configuration.target) if self._load_if: if_path = test_configuration.if_firmware.hex_path board.load_interface(if_path, test_info) valid_bl = test_configuration.bl_firmware is not None if self._load_bl and valid_bl: bl_path = test_configuration.bl_firmware.hex_path board.load_bootloader(bl_path, test_info) board.set_check_fs_on_remount(True) if self._test_daplink: daplink_test(test_configuration, test_info) if self._test_ep: test_endpoints(test_configuration, test_info) if test_info.get_failed(): all_tests_pass = False self._all_tests_pass = all_tests_pass
def run_board_test(self, parent_test): test_daplink.daplink_test(self, parent_test)