Lines Matching full:phase
81 .option = "expected-phase", in test_args_parse()
82 .descript = "Expected DFU Server phase value restored from flash" in test_args_parse()
89 .descript = "Recover DFU server phase" in test_args_parse()
142 static void dist_phase_changed(struct bt_mesh_dfd_srv *srv, enum bt_mesh_dfd_phase phase) in dist_phase_changed() argument
146 if (phase == BT_MESH_DFD_PHASE_COMPLETED || in dist_phase_changed()
147 phase == BT_MESH_DFD_PHASE_FAILED) { in dist_phase_changed()
148 if (phase == BT_MESH_DFD_PHASE_FAILED) { in dist_phase_changed()
155 prev_phase = phase; in dist_phase_changed()
162 .phase = dist_phase_changed,
513 ASSERT_EQUAL(BT_MESH_DFD_PHASE_FAILED, dfd_srv.phase); in dist_dfu_start_and_confirm()
517 ASSERT_EQUAL(BT_MESH_DFD_PHASE_COMPLETED, dfd_srv.phase); in dist_dfu_start_and_confirm()
526 /* If device should unprovision itself after the update, the phase won't in dist_dfu_start_and_confirm()
527 * change. If phase changes, DFU failed. in dist_dfu_start_and_confirm()
531 dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
533 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
536 ASSERT_EQUAL(expected_phase, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
1027 ASSERT_EQUAL(BT_MESH_DFU_PHASE_UNKNOWN, dfu_cli_xfer.targets[6].phase); in test_cli_fail_on_persistency()
1030 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[0].phase); in test_cli_fail_on_persistency()
1035 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[1].phase); in test_cli_fail_on_persistency()
1038 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[2].phase); in test_cli_fail_on_persistency()
1041 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[3].phase); in test_cli_fail_on_persistency()
1044 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[4].phase); in test_cli_fail_on_persistency()
1046 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[5].phase); in test_cli_fail_on_persistency()
1059 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[4].phase); in test_cli_fail_on_persistency()
1072 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLY_SUCCESS, dfu_cli_xfer.targets[5].phase); in test_cli_fail_on_persistency()
1112 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_metadata()
1130 dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_caps_get()
1148 dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_update_get()
1165 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_verify()
1182 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_apply()
1196 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_cli_xfer.targets[i].phase); in test_cli_all_targets_lost_on_apply()
1226 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ACTIVE, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1241 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1261 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1281 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1299 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_cli_xfer.targets[0].phase); in test_cli_stop()
1561 FAIL("Phase not reached"); in test_target_dfu_stop()
1566 FAIL("Phase not reached"); in test_target_dfu_stop()
1570 ASSERT_EQUAL(expected_stop_phase, dfu_srv.update.phase); in test_target_dfu_stop()
1580 ASSERT_EQUAL(BT_MESH_DFU_PHASE_TRANSFER_ERR, dfu_srv.update.phase); in test_target_dfu_stop()
1582 FAIL("Phase not reached"); in test_target_dfu_stop()
1584 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_srv.update.phase); in test_target_dfu_stop()
1587 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY, dfu_srv.update.phase); in test_target_dfu_stop()
1589 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_OK, dfu_srv.update.phase); in test_target_dfu_stop()
1592 ASSERT_EQUAL(BT_MESH_DFU_PHASE_VERIFY_FAIL, dfu_srv.update.phase); in test_target_dfu_stop()
1594 FAIL("Phase not reached"); in test_target_dfu_stop()
1596 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_srv.update.phase); in test_target_dfu_stop()
1599 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfu_srv.update.phase); in test_target_dfu_stop()
1601 ASSERT_EQUAL(BT_MESH_DFU_PHASE_IDLE, dfu_srv.update.phase); in test_target_dfu_stop()
1604 FAIL("Wrong expected phase"); in test_target_dfu_stop()