Lines Matching +full:num +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()
371 static void common_app_bind(uint16_t addr, struct bind_params *params, size_t num) in common_app_bind() argument
376 for (size_t i = 0; i < num; i++) { in common_app_bind()
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()
1093 err = bt_mesh_dfu_cli_send(&dfu_cli, &dfu_cli_xfer.inputs, &dummy_blob_io, in test_cli_all_targets_lost_common()
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()
1675 TEST_CASE(target, fail_on_nothing, "Non-failing server"),