Lines Matching refs:test_vector

24 } test_vector[TEST_VECT_SZ];  variable
34 test_vector[i].direction = i < (TEST_VECT_SZ / 2) ? 1 : 2; in setup()
35 test_vector[i].net_idx1 = (i / 8); in setup()
36 test_vector[i].addr1 = ADDR1_BASE + i; in setup()
37 test_vector[i].net_idx2 = (i / 8) + 16; in setup()
38 test_vector[i].addr2 = ADDR2_BASE + i; in setup()
83 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i].net_idx1, in check_fill_all_bt_entries()
84 test_vector[i].net_idx2, test_vector[i].addr1, in check_fill_all_bt_entries()
85 test_vector[i].addr2, &status); in check_fill_all_bt_entries()
108 int err = bt_mesh_brg_cfg_tbl_remove(test_vector[i].net_idx1, in check_delete_all_bt_entries()
109 test_vector[i].net_idx2, test_vector[i].addr1, in check_delete_all_bt_entries()
110 test_vector[i].addr2, &status); in check_delete_all_bt_entries()
149 uint16_t net_idx1 = test_vector[TEST_VECT_SZ - 1].net_idx1; in ZTEST()
150 uint16_t net_idx2 = test_vector[TEST_VECT_SZ - 1].net_idx2; in ZTEST()
169 net_idx1 = test_vector[TEST_VECT_SZ - 1].net_idx1; in ZTEST()
175 net_idx2 = test_vector[TEST_VECT_SZ - 1].net_idx2; in ZTEST()
193 addr1 = test_vector[TEST_VECT_SZ - 1].addr1; in ZTEST()
209 addr2 = test_vector[TEST_VECT_SZ - 1].addr2; in ZTEST()
232 err = bt_mesh_brg_cfg_tbl_remove(test_vector[1].net_idx1, test_vector[1].net_idx2, in check_bt_mesh_brg_cfg_tbl_multiple_delete()
233 test_vector[1].addr1, BT_MESH_ADDR_UNASSIGNED, &status); in check_bt_mesh_brg_cfg_tbl_multiple_delete()
240 zassert_true(brg_tbl[i].net_idx1 == test_vector[0].net_idx1); in check_bt_mesh_brg_cfg_tbl_multiple_delete()
241 zassert_true(brg_tbl[i].net_idx2 == test_vector[0].net_idx2); in check_bt_mesh_brg_cfg_tbl_multiple_delete()
242 zassert_true(brg_tbl[i].addr1 == test_vector[0].addr1); in check_bt_mesh_brg_cfg_tbl_multiple_delete()
243 zassert_true(brg_tbl[i].addr2 == test_vector[i * 2].addr2); in check_bt_mesh_brg_cfg_tbl_multiple_delete()
258 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i % 2].net_idx1, in ZTEST()
259 test_vector[i % 2].net_idx2, test_vector[i % 2].addr1, in ZTEST()
260 test_vector[i].addr2, &status); in ZTEST()
273 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
274 test_vector[i].net_idx1, in ZTEST()
275 test_vector[i].net_idx2, test_vector[i].addr1, in ZTEST()
276 test_vector[i].addr2, &status); in ZTEST()
278 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
279 test_vector[1].net_idx1, in ZTEST()
280 test_vector[1].net_idx2, test_vector[1].addr1, in ZTEST()
281 test_vector[i].addr2, &status); in ZTEST()
295 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
296 test_vector[i].net_idx1, in ZTEST()
297 test_vector[i].net_idx2, test_vector[i].addr1, in ZTEST()
298 test_vector[i].addr2, &status); in ZTEST()
300 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, in ZTEST()
301 test_vector[1].net_idx1, in ZTEST()
302 test_vector[1].net_idx2, test_vector[1].addr1, in ZTEST()
303 test_vector[i].addr2, &status); in ZTEST()
316 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[1].net_idx1, in ZTEST()
317 test_vector[1].net_idx2, test_vector[1].addr1, in ZTEST()
318 test_vector[i].addr2, &status); in ZTEST()
545 err = bt_mesh_brg_cfg_tbl_add(test_vector[i].direction, test_vector[i].net_idx1, in check_fill_all_bt_entries_reversed()
546 test_vector[i].net_idx2, test_vector[i].addr1, in check_fill_all_bt_entries_reversed()
547 test_vector[i].addr2, &status); in check_fill_all_bt_entries_reversed()
553 err = bt_mesh_brg_cfg_tbl_add(test_vector[last].direction, test_vector[last].net_idx1, in check_fill_all_bt_entries_reversed()
554 test_vector[last].net_idx2, test_vector[last].addr1, in check_fill_all_bt_entries_reversed()
555 test_vector[last].addr2, &status); in check_fill_all_bt_entries_reversed()
568 memcpy(test_vector_copy, test_vector, sizeof(test_vector_copy)); in check_fill_all_bt_entries_randomly()
591 err = bt_mesh_brg_cfg_tbl_add(test_vector[last].direction, test_vector[last].net_idx1, in check_fill_all_bt_entries_randomly()
592 test_vector[last].net_idx2, test_vector[last].addr1, in check_fill_all_bt_entries_randomly()
593 test_vector[last].addr2, &status); in check_fill_all_bt_entries_randomly()
602 zassert_equal(new_net_idx, test_vector[idx].net_idx2); in subnet_relay_cb_check()
609 if (test_vector[idx].direction == 2) { in subnet_relay_cb_check_rev()
610 zassert_equal(new_net_idx, test_vector[idx].net_idx1); in subnet_relay_cb_check_rev()
631 bt_mesh_brg_cfg_tbl_foreach_subnet(test_vector[idx].addr1, test_vector[idx].addr2, in test_bridging_performance()
632 test_vector[idx].net_idx1, subnet_relay_cb_check, in test_bridging_performance()
645 bt_mesh_brg_cfg_tbl_foreach_subnet(test_vector[idx].addr2, test_vector[idx].addr1, in test_bridging_performance()
646 test_vector[idx].net_idx2, in test_bridging_performance()