/Zephyr-latest/tests/bluetooth/mesh/brg/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/tests/drivers/gpio/gpio_api_1pin/src/ |
D | test_port.c | 150 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 …]
|
D | test_pin.c | 143 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/ |
D | main.c | 15 #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/ |
D | test_transport.c | 123 } 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 …]
|
D | test_beacon.c | 671 } 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()
|
D | test_provision.c | 1426 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/ |
D | dynamic_shared_irq.c | 24 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()
|
D | test_shared_irq.h | 23 test_vector[idx] = result_vector[idx]; \ 26 static uint32_t test_vector[TEST_VECTOR_SIZE] = { variable
|
D | static_shared_irq.c | 75 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/ |
D | main.c | 31 } 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/ |
D | main.cpp | 31 ZTEST(libcxx_tests, test_vector) in ZTEST() argument
|