/Zephyr-latest/tests/drivers/gnss/gnss_dump/src/ |
D | main.c | 15 static struct gnss_data test_data; variable 20 gnss_publish_data(gnss_dev, &test_data); in test_gnss_data() 23 test_data.nav_data.latitude = 10000000001; in test_gnss_data() 24 test_data.nav_data.longitude = 20000000002; in test_gnss_data() 25 test_data.nav_data.bearing = 3003; in test_gnss_data() 26 test_data.nav_data.speed = 4004; in test_gnss_data() 27 test_data.nav_data.altitude = 5005; in test_gnss_data() 29 test_data.info.satellites_cnt = 6; in test_gnss_data() 30 test_data.info.hdop = 7; in test_gnss_data() 31 test_data.info.fix_status = GNSS_FIX_STATUS_GNSS_FIX; in test_gnss_data() [all …]
|
/Zephyr-latest/tests/drivers/uart/uart_async_rx/src/ |
D | main.c | 162 struct test_async_rx *test_data = (struct test_async_rx *)user_data; in producer_no_chunks() local 163 struct uart_async_rx *async_rx = &test_data->async_rx; in producer_no_chunks() 167 if (test_data->curr_buf) { in producer_no_chunks() 170 test_data->curr_buf[i] = (uint8_t)test_data->byte_cnt; in producer_no_chunks() 171 test_data->byte_cnt++; in producer_no_chunks() 173 uart_async_rx_on_rdy(async_rx, test_data->curr_buf, len); in producer_no_chunks() 174 uart_async_rx_on_buf_rel(async_rx, test_data->curr_buf); in producer_no_chunks() 175 test_data->curr_buf = test_data->next_buf; in producer_no_chunks() 176 test_data->next_buf = NULL; in producer_no_chunks() 181 if (test_data->curr_buf == NULL) { in producer_no_chunks() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/ |
D | tester.c | 26 } static test_data; variable 48 if (bt_addr_le_eq(&test_data.old_addr, BT_ADDR_LE_ANY)) { in cb_expect_rpa() 49 bt_addr_le_copy(&test_data.old_addr, addr); in cb_expect_rpa() 50 test_data.old_time = k_uptime_get(); in cb_expect_rpa() 55 if (bt_addr_le_eq(&test_data.old_addr, addr)) { in cb_expect_rpa() 58 test_data.addr_set = true; in cb_expect_rpa() 60 print_address(&test_data.old_addr); in cb_expect_rpa() 64 test_data.rpa_rotations++; in cb_expect_rpa() 67 diff_ms = k_uptime_get() - test_data.old_time; in cb_expect_rpa() 74 bt_addr_le_copy(&test_data.old_addr, addr); in cb_expect_rpa() [all …]
|
/Zephyr-latest/tests/bluetooth/bt_crypto_ccm/src/ |
D | test_vectors.h | 10 struct test_data { struct 214 struct test_data packet_1 = { 226 struct test_data packet_2 = { 238 struct test_data packet_3 = { 250 struct test_data packet_4 = { 262 struct test_data packet_5 = { 274 struct test_data packet_6 = { 286 struct test_data packet_7 = { 298 struct test_data packet_8 = { 310 struct test_data packet_9 = { [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | data_split_person.py | 47 test_data = [] 54 test_data.append(data) 57 print("test_length:" + str(len(test_data))) 58 return train_data, valid_data, test_data 69 train_data, valid_data, test_data = person_split(data, train_names, variable 75 write_data(test_data, "./person_split/test")
|
D | data_split.py | 55 test_data = [] 79 test_data.append(item) 81 print("test_length:" + str(len(test_data))) 82 return train_data, valid_data, test_data 87 train_data, valid_data, test_data = split_data(data, 0.6, 0.2) variable 90 write_data(test_data, "./data/test")
|
D | train.py | 97 data_loader.valid_data, data_loader.test_len, data_loader.test_data 118 test_data, argument 130 test_data = test_data.map(reshape_function) 134 for data, label in test_data: # pylint: disable=unused-variable 139 test_data = test_data.batch(batch_size) 147 loss, acc = model.evaluate(test_data) 148 pred = np.argmax(model.predict(test_data), axis=1) 188 train_len, train_data, valid_len, valid_data, test_len, test_data = \ variable 192 train_len, train_data, valid_len, valid_data, test_len, test_data = \ 200 test_len, test_data, args.model)
|
D | data_split_person_test.py | 40 train_data, valid_data, test_data = person_split(self.data, train_names, 44 self.assertEqual(len(test_data), tangsy_num) 47 self.assertIsInstance(test_data, list) 50 self.assertIsInstance(test_data[0], dict)
|
/Zephyr-latest/tests/net/socket/tls/src/ |
D | main.c | 266 struct test_msg_waitall_data *test_data = in test_msg_waitall_tx_work_handler() local 269 if (test_data->retries > 0) { in test_msg_waitall_tx_work_handler() 270 test_send(test_data->sock, test_data->data + test_data->offset, 1, 0); in test_msg_waitall_tx_work_handler() 271 test_data->offset++; in test_msg_waitall_tx_work_handler() 272 test_data->retries--; in test_msg_waitall_tx_work_handler() 273 test_work_reschedule(&test_data->tx_work, K_MSEC(10)); in test_msg_waitall_tx_work_handler() 314 struct connect_data test_data; in test_prepare_tls_connection() local 340 test_data.sock = c_sock; in test_prepare_tls_connection() 341 test_data.addr = &s_saddr; in test_prepare_tls_connection() 342 k_work_init_delayable(&test_data.work, client_connect_work_handler); in test_prepare_tls_connection() [all …]
|
/Zephyr-latest/tests/subsys/fs/fcb/src/ |
D | fcb_test_append_fill.c | 16 uint8_t test_data[128]; in ZTEST() local 29 for (i = 0; i < sizeof(test_data); i++) { in ZTEST() 30 test_data[i] = fcb_test_append_data(sizeof(test_data), i); in ZTEST() 34 rc = fcb_append(fcb, sizeof(test_data), &loc); in ZTEST() 48 test_data, sizeof(test_data)); in ZTEST()
|
D | fcb_test_reset.c | 16 uint8_t test_data[128]; in ZTEST() local 39 for (i = 0; i < sizeof(test_data); i++) { in ZTEST() 40 test_data[i] = fcb_test_append_data(32, i); in ZTEST() 42 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST() 77 for (i = 0; i < sizeof(test_data); i++) { in ZTEST() 78 test_data[i] = fcb_test_append_data(33, i); in ZTEST() 80 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST() 119 for (i = 0; i < sizeof(test_data); i++) { in ZTEST() 120 test_data[i] = fcb_test_append_data(34, i); in ZTEST() 122 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST()
|
D | fcb_test_multiple_scratch.c | 15 uint8_t test_data[128] = {0}; in ZTEST() local 32 rc = fcb_append(fcb, sizeof(test_data), &loc); in ZTEST() 40 test_data, sizeof(test_data)); in ZTEST() 60 rc = fcb_append(fcb, sizeof(test_data), &loc); in ZTEST() 68 test_data, sizeof(test_data)); in ZTEST()
|
D | fcb_test_append.c | 14 uint8_t test_data[128]; in test_fcb_append() local 19 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_append() 21 test_data[j] = fcb_test_append_data(i, j); in test_fcb_append() 26 test_data, i); in test_fcb_append() 35 zassert_true(var_cnt == sizeof(test_data), in test_fcb_append()
|
D | fcb_test_crc_disabled_after_enabled.c | 13 uint8_t test_data[128]; in fcb_pretest_crc_disabled_after_enabled() local 18 for (i = 0; i < sizeof(test_data); i++) { in fcb_pretest_crc_disabled_after_enabled() 20 test_data[j] = fcb_test_append_data(i, j); in fcb_pretest_crc_disabled_after_enabled() 25 test_data, i); in fcb_pretest_crc_disabled_after_enabled() 45 zassert_true(var_cnt == sizeof(test_data), in fcb_pretest_crc_disabled_after_enabled()
|
D | fcb_test_rotate.c | 16 uint8_t test_data[128] = {0}; in ZTEST() local 35 rc = fcb_append(fcb, sizeof(test_data), &loc); in ZTEST() 49 test_data, sizeof(test_data)); in ZTEST() 76 rc = fcb_append(fcb, sizeof(test_data), &loc); in ZTEST() 79 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST() 80 sizeof(test_data)); in ZTEST()
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_replay_cache.c | 30 static uint8_t test_data[TEST_DATA_SIZE]; variable 70 memset(test_data, rx_cnt++, sizeof(test_data)); in rx_ended() 72 if (memcmp(test_data, data, len)) { in rx_ended() 139 memset(test_data, i, sizeof(test_data)); in test_tx_immediate_replay_attack() 140 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_immediate_replay_attack() 157 memset(test_data, i, sizeof(test_data)); in test_tx_immediate_replay_attack() 158 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_immediate_replay_attack() 202 memset(test_data, i, sizeof(test_data)); in test_tx_power_replay_attack() 203 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_power_replay_attack() 218 memset(test_data, i, sizeof(test_data)); in test_tx_power_replay_attack() [all …]
|
/Zephyr-latest/tests/net/ieee802154/custom_l2/src/ |
D | main.c | 17 static struct test_data { struct 21 } test_data; variable 26 test_data.rx_pkt = pkt; in custom_l2_recv() 33 test_data.tx_pkt = pkt; in custom_l2_send() 40 test_data.state = state; in custom_l2_enable() 90 zassert_equal(tx_pkt, test_data.tx_pkt, "TX packet did not reach L2"); in ZTEST() 114 zassert_equal(rx_pkt, test_data.rx_pkt, "RX packet did not reach L2"); in ZTEST() 130 zassert_false(test_data.state, "L2 up"); in ZTEST() 134 zassert_true(test_data.state, "L2 down"); in ZTEST()
|
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 56 struct test_data { struct 64 static struct test_data test_data[3]; argument 65 static struct test_data int_async_data; 223 static void bulk_poll_out(struct test_data *data, int wait_base, int wait_range) in bulk_poll_out() 241 bulk_poll_out((struct test_data *)data, 200, 600); in poll_out_thread() 252 struct test_data *data = p_data; in int_async_thread_func() 288 struct test_data *data = k_timer_user_data_get(timer); in poll_out_timer_handler() 311 static void init_test_data(struct test_data *data, const uint8_t *buf, int repeat) in init_test_data() 323 int num_of_contexts = ARRAY_SIZE(test_data); in ZTEST() 325 for (int i = 0; i < ARRAY_SIZE(test_data); i++) { in ZTEST() [all …]
|
/Zephyr-latest/tests/boards/mec15xxevb_assy6853/i2c_api/src/ |
D | main.c | 15 uint8_t test_data[2] = {0xAA, 0xAA}; variable 43 datas[1] = test_data[0]; in ZTEST() 44 datas[2] = test_data[1]; in ZTEST() 59 ret = memcmp(datas, test_data, 2); in ZTEST()
|
/Zephyr-latest/tests/boards/mec172xevb_assy6906/i2c_api/src/ |
D | main.c | 15 uint8_t test_data[2] = {0xAA, 0xAA}; variable 43 datas[1] = test_data[0]; in ZTEST() 44 datas[2] = test_data[1]; in ZTEST() 59 ret = memcmp(datas, test_data, 2); in ZTEST()
|
/Zephyr-latest/scripts/tests/twister/ |
D | conftest.py | 42 def tesenv_obj(test_data, testsuites_dir, tmpdir_factory): argument 47 env.board_roots = [os.path.join(test_data, "board_config", "1_level", "2_level")] 49 env.test_config = os.path.join(test_data, "test_config.yaml") 55 def testplan_obj(test_data, class_env, testsuites_dir, tmpdir_factory): argument 58 env.board_roots = [test_data +"board_config/1_level/2_level/"] 75 def all_platforms_list(test_data, class_testplan): argument 78 class_testplan.env.board_roots = [os.path.abspath(os.path.join(test_data, "board_config"))]
|
D | test_mixins.py | 14 def test_disable_pytest_test_collection(test_data): argument 15 test_path = os.path.join(test_data, 'mixins')
|
D | test_twister.py | 34 def test_correct_schema(filename, schema, test_data): argument 36 filename = test_data + filename 46 def test_incorrect_schema(filename, schema, test_data): argument 48 filename = test_data + filename
|
/Zephyr-latest/tests/drivers/mbox/mbox_data/src/ |
D | main.c | 108 uint32_t test_data = data; in mbox_test() local 117 msg.data = &test_data; in mbox_test() 128 g_mbox_expected_data = test_data & ~(0xFFFFFFFF << (g_max_transfer_size_bytes * 8)); in mbox_test() 138 test_data = g_mbox_received_data; in mbox_test() 141 zassert_equal(g_mbox_expected_data, test_data, in mbox_test() 143 g_mbox_expected_data, test_data); in mbox_test() 153 test_data++; in mbox_test()
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | test_stack_contexts.c | 239 stack_data_t test_data[3]; in ZTEST() local 241 memset(test_data, 0, sizeof(test_data)); in ZTEST() 245 test_data[0] = HIGH_T1; in ZTEST() 246 test_data[1] = HIGH_T2; in ZTEST() 247 test_data[2] = LOW_PRIO; in ZTEST() 271 k_stack_push(&stack, test_data[0]); in ZTEST() 272 k_stack_push(&stack, test_data[1]); in ZTEST() 273 k_stack_push(&stack, test_data[2]); in ZTEST()
|