Lines Matching +full:all +full:- +full:inputs

4  * SPDX-License-Identifier: Apache-2.0
74 .option = "fail-confirm", in test_args_parse()
80 .name = "{none, start, verify, verify-ok, verify-fail, apply}", in test_args_parse()
81 .option = "expected-phase", in test_args_parse()
109 memset(chunk->data, 0, chunk->size); in dummy_blob_chunk_rd()
182 return dfu_metadata_fail ? 0 : -1; in target_metadata_check()
197 return -EALREADY; in target_dfu_start()
619 /* All but first slot are committed */ in test_dist_dfu_slot_create()
647 ASSERT_EQUAL(size, slot->size); in check_slot()
650 ASSERT_EQUAL(fwid_len, slot->fwid_len); in check_slot()
651 ASSERT_TRUE(memcmp(fwid, slot->fwid, fwid_len) == 0); in check_slot()
654 ASSERT_EQUAL(metadata_len, slot->metadata_len); in check_slot()
655 ASSERT_TRUE(memcmp(metadata, slot->metadata, metadata_len) == 0); in check_slot()
679 ASSERT_EQUAL(CONFIG_BT_MESH_DFU_SLOT_CNT - 2, slot_count); in test_dist_dfu_slot_create_recover()
684 ASSERT_EQUAL(idx, i - 2); in test_dist_dfu_slot_create_recover()
685 ASSERT_EQUAL(size, slot->size); in test_dist_dfu_slot_create_recover()
688 ASSERT_EQUAL(metadata_len, slot->metadata_len); in test_dist_dfu_slot_create_recover()
689 ASSERT_TRUE(memcmp(metadata, slot->metadata, metadata_len) == 0); in test_dist_dfu_slot_create_recover()
707 for (i = 0; i < CONFIG_BT_MESH_DFU_SLOT_CNT - 1; i++) { in check_delete_all()
786 ASSERT_EQUAL(-EINVAL, bt_mesh_dfu_slot_commit(slot)); in test_dist_dfu_slot_idempotency()
789 ASSERT_EQUAL(-EINVAL, bt_mesh_dfu_slot_del(slot)); in test_dist_dfu_slot_idempotency()
836 struct bt_mesh_blob_cli_inputs inputs; member
845 dfu_cli_xfer.inputs.ttl = BT_MESH_TTL_DEFAULT; in dfu_cli_inputs_prepare()
846 dfu_cli_xfer.inputs.group = group; in dfu_cli_inputs_prepare()
847 dfu_cli_xfer.inputs.app_idx = 0; in dfu_cli_inputs_prepare()
848 dfu_cli_xfer.inputs.timeout_base = 1; in dfu_cli_inputs_prepare()
849 sys_slist_init(&dfu_cli_xfer.inputs.targets); in dfu_cli_inputs_prepare()
863 sys_slist_append(&dfu_cli_xfer.inputs.targets, &dfu_cli_xfer.targets[i].blob.n); in dfu_cli_inputs_prepare()
876 t->addr = addr; in target_srv_add()
923 ASSERT_FALSE(target->status == BT_MESH_DFU_SUCCESS); in dfu_cli_lost_target()
924 ASSERT_TRUE(lost_target_find_and_remove(target->blob.addr)); in dfu_cli_lost_target()
994 * - Srv 0x0002 will reject firmware by metadata. in test_cli_fail_on_persistency()
995 * - Srv 0x0003 will not respond to BLOB Information Get msg (Retrieve Caps proc). in test_cli_fail_on_persistency()
996 * - Srv 0x0004 will not respond to Firmware Update Get msg after BLOB Transfer. in test_cli_fail_on_persistency()
997 * - Srv 0x0005 will fail firmware verification. in test_cli_fail_on_persistency()
998 * - Srv 0x0006 will not respond to Firmware Update Apply msg. in test_cli_fail_on_persistency()
999 * - Srv 0x0007 is responsive all the way. in test_cli_fail_on_persistency()
1000 * - Srv 0x0008 is a non-existing unresponsive node that will not respond to Firmware in test_cli_fail_on_persistency()
1013 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_fail_on_persistency()
1023 /* This is non-existing unresponsive target that didn't reply on Firmware Update Start in test_cli_fail_on_persistency()
1075 FAIL("Lost targets CB did not trigger for all expected lost targets"); in test_cli_fail_on_persistency()
1093 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_all_targets_lost_common()
1115 /* `lost_target` cb must be called on all targets */ in test_cli_all_targets_lost_on_metadata()
1133 /* `lost_target` cb must be called on all targets */ in test_cli_all_targets_lost_on_caps_get()
1151 /* `lost_target` cb must be called on all targets */ in test_cli_all_targets_lost_on_update_get()
1168 /* `lost_target` cb must be called on all targets */ in test_cli_all_targets_lost_on_verify()
1199 /* `lost_target` cb must be called on all targets */ in test_cli_all_targets_lost_on_apply()
1215 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_stop()
1231 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_stop()
1250 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_stop()
1266 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_stop()
1291 dfu_cli.blob.inputs = &dfu_cli_xfer.inputs; in test_cli_stop()
1646 TEST_CASE(dist, dfu_slot_delete_all, "Distributor deletes all image slots"),
1648 "Distributor checks if all slots are removed from persistent storage"),
1656 "All targets fail to check metadata and Client ends DFU Transfer"),
1658 "All targets fail to respond to caps get and Client ends DFU Transfer"),
1660 "All targets fail to respond to update get and Client ends DFU Transfer"),
1662 "All targets fail on verify step and Client ends DFU Transfer"),
1664 "All targets fail on apply step and Client ends DFU Transfer"),
1675 TEST_CASE(target, fail_on_nothing, "Non-failing server"),