Home
last modified time | relevance | path

Searched refs:test_vector (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/tests/bluetooth/mesh/brg/src/
Dmain.c24 } 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()
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_api_1pin/src/
Dtest_port.c150 const gpio_port_value_t test_vector[] = { in ZTEST() local
179 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
180 port_set_masked_raw_and_verify(port, BIT(TEST_PIN), test_vector[i], i); in ZTEST()
181 port_get_raw_and_verify(port, BIT(TEST_PIN), test_vector[i], i); in ZTEST()
190 const gpio_port_value_t test_vector[] = { in ZTEST() local
219 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
220 port_set_masked_and_verify(port, BIT(TEST_PIN), test_vector[i], i); in ZTEST()
221 port_get_and_verify(port, BIT(TEST_PIN), test_vector[i], i); in ZTEST()
230 const gpio_port_value_t test_vector[] = { in ZTEST() local
262 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
[all …]
Dtest_pin.c143 const int test_vector[] = { in ZTEST() local
160 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
161 pin_set_raw_and_verify(port, TEST_PIN, test_vector[i], i); in ZTEST()
163 val_expected = test_vector[i] != 0 ? 1 : 0; in ZTEST()
180 const int test_vector[] = { in ZTEST() local
197 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
198 pin_set_and_verify(port, TEST_PIN, test_vector[i], i); in ZTEST()
200 val_expected = test_vector[i] != 0 ? 1 : 0; in ZTEST()
219 const int test_vector[] = {0, 2, 0, 9, -1, 0, 0, 1, INT_MAX, INT_MIN}; in ZTEST() local
236 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/mesh/rpl/src/
Dmain.c15 #define EMPTY_ENTRIES_CNT (CONFIG_BT_MESH_CRPL - ARRAY_SIZE(test_vector))
45 static struct test_rpl_entry test_vector[ARRAY_SIZE(test_vector_default)]; variable
52 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in prepare_rpl_and_start_reset()
55 .ctx.addr = test_vector[i].src, in prepare_rpl_and_start_reset()
56 .old_iv = test_vector[i].old_iv, in prepare_rpl_and_start_reset()
57 .seq = test_vector[i].seq, in prepare_rpl_and_start_reset()
68 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in prepare_rpl_and_start_reset()
69 ztest_expect_data(settings_save_one, name, test_vector[i].name); in prepare_rpl_and_start_reset()
74 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in prepare_rpl_and_start_reset()
77 .ctx.addr = test_vector[i].src, in prepare_rpl_and_start_reset()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_transport.c123 } test_vector[] = { variable
143 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in test_tx_unicast()
144 err = bt_mesh_test_send(rx_cfg.addr, NULL, test_vector[i].len, in test_tx_unicast()
145 test_vector[i].flags, K_SECONDS(10)); in test_tx_unicast()
160 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in test_tx_group()
161 err = bt_mesh_test_send(GROUP_ADDR, NULL, test_vector[i].len, in test_tx_group()
162 test_vector[i].flags, K_SECONDS(20)); in test_tx_group()
174 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed()
175 test_vector[0].flags, K_SECONDS(2))); in test_tx_fixed()
179 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed()
[all …]
Dtest_beacon.c671 } test_vector[] = { in test_rx_kr_old_key() local
690 for (size_t i = 0; i < ARRAY_SIZE(test_vector); i++) { in test_rx_kr_old_key()
696 ASSERT_EQUAL(test_vector[i].phase, phase); in test_rx_kr_old_key()
697 ASSERT_EQUAL(test_vector[i].ivu, atomic_test_bit(bt_mesh.flags, in test_rx_kr_old_key()
699 ASSERT_EQUAL(test_vector[i].ivi, bt_mesh.iv_index); in test_rx_kr_old_key()
Dtest_provision.c1426 uint16_t test_vector[] = { 0x0002, 0x0001 }; in test_device_pb_remote_client_server_same_dev() local
1460 for (int i = 0; i < ARRAY_SIZE(test_vector); i++) { in test_device_pb_remote_client_server_same_dev()
1461 current_dev_addr = test_vector[i]; in test_device_pb_remote_client_server_same_dev()
/Zephyr-latest/tests/kernel/interrupt/src/
Ddynamic_shared_irq.c24 test_vector[i] = 0; in reset_test_vector()
48 test_vector[0] = TEST_DUMMY_ISR_VAL; in dummy_isr()
59 test_vector[0] = 0; in get_irq_slot()
70 if (test_vector[0] == TEST_DUMMY_ISR_VAL) { in get_irq_slot()
174 zassert_true(test_vector[i] == result_vector[i], in ZTEST()
176 i, test_vector[i], result_vector[i]); in ZTEST()
217 zassert_true(test_vector[i] == result_vector[i], in ZTEST()
219 i, test_vector[i], result_vector[i]); in ZTEST()
223 zassert_true(!test_vector[i], in ZTEST()
225 i, test_vector[i], result_vector[i]); in ZTEST()
Dtest_shared_irq.h23 test_vector[idx] = result_vector[idx]; \
26 static uint32_t test_vector[TEST_VECTOR_SIZE] = { variable
Dstatic_shared_irq.c75 zassert_true(test_vector[i] == result_vector[i], in ZTEST()
77 i, test_vector[i], result_vector[i]); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/cs/bt_le_cs_parse_pct/src/
Dmain.c31 } test_vector[] = { in ZTEST() local
96 for (uint16_t k = 0; k < ARRAY_SIZE(test_vector); k++) { in ZTEST()
97 iq = bt_le_cs_parse_pct(test_vector[k].input); in ZTEST()
99 zassert_equal(iq.i, test_vector[k].output.i, in ZTEST()
100 "Failed for k = %u, expected %d, not %d", k, test_vector[k].output.i, in ZTEST()
102 zassert_equal(iq.q, test_vector[k].output.q, in ZTEST()
103 "Failed for k = %u, expected %d, not %d", k, test_vector[k].output.q, in ZTEST()
/Zephyr-latest/tests/lib/cpp/libcxx/src/
Dmain.cpp31 ZTEST(libcxx_tests, test_vector) in ZTEST() argument