/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | test_replay_cache.c | 29 static uint8_t test_data[TEST_DATA_SIZE]; variable 69 memset(test_data, rx_cnt++, sizeof(test_data)); in rx_ended() 71 if (memcmp(test_data, data, len)) { in rx_ended() 96 memset(test_data, i, sizeof(test_data)); in test_tx_immediate_replay_attack() 97 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_immediate_replay_attack() 98 sizeof(test_data), &send_cb, &sem)); in test_tx_immediate_replay_attack() 112 memset(test_data, i, sizeof(test_data)); in test_tx_immediate_replay_attack() 113 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_immediate_replay_attack() 114 sizeof(test_data), &send_cb, &sem)); in test_tx_immediate_replay_attack() 155 memset(test_data, i, sizeof(test_data)); in test_tx_power_replay_attack() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/tls/src/ |
D | main.c | 205 struct test_msg_waitall_data *test_data = in test_msg_waitall_tx_work_handler() local 208 if (test_data->retries > 0) { in test_msg_waitall_tx_work_handler() 209 test_send(test_data->sock, test_data->data + test_data->offset, 1, 0); in test_msg_waitall_tx_work_handler() 210 test_data->offset++; in test_msg_waitall_tx_work_handler() 211 test_data->retries--; in test_msg_waitall_tx_work_handler() 212 k_work_reschedule(&test_data->tx_work, K_MSEC(10)); in test_msg_waitall_tx_work_handler() 218 struct test_msg_waitall_data test_data = { in test_v4_msg_waitall() local 255 test_data.offset = 0; in test_v4_msg_waitall() 256 test_data.retries = sizeof(rx_buf); in test_v4_msg_waitall() 257 test_data.sock = c_sock; in test_v4_msg_waitall() [all …]
|
/Zephyr-Core-2.7.6/scripts/tests/twister/test_data/ |
D | twister.csv | 2 scripts/tests/twister/test_data/testcases/samples/test_app/sample_test.app,nios2,demo_board_1,TRUE,… 3 scripts/tests/twister/test_data/testcases/samples/test_app/sample_test.app,nios2,demo_board_2,TRUE,… 4 scripts/tests/twister/test_data/testcases/tests/test_a/test_a.check_1,nios2,demo_board_2,FALSE,fail… 5 scripts/tests/twister/test_data/testcases/tests/test_a/test_a.check_2,nios2,demo_board_2,FALSE,fail… 6 scripts/tests/twister/test_data/testcases/tests/test_b/test_b.check_1,nios2,demo_board_1,TRUE,Passe… 7 scripts/tests/twister/test_data/testcases/tests/test_b/test_b.check_2,nios2,demo_board_2,TRUE,Passe… 8 scripts/tests/twister/test_data/testcases/tests/test_c/test_c.check_1,nios2,demo_board_1,TRUE,Passe… 9 scripts/tests/twister/test_data/testcases/tests/test_c/test_c.check_2,nios2,demo_board_2,TRUE,Passe…
|
D | twister_keyerror.csv | 2 scripts/tests/twister/test_data/testcases/samples/test_app/sample.app_dev.external_lib,nios2,demo_b… 3 scripts/tests/twister/test_data/testcases/samples/test_app/sample.app_dev.external_lib,nios2,demo_b… 4 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_api/kernel.fifo,nios2,demo_bo… 5 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_api/kernel.fifo.poll,nios2,de… 6 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_timeout/kernel.fifo.timeout,n… 7 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_timeout/kernel.fifo.timeout.p… 8 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_usage/kernel.fifo.usage,nios2… 9 scripts/tests/twister/test_data/testcases/tests/test_kernel/test_fifo_usage/kernel.fifo.usage.poll,…
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fcb/src/ |
D | fcb_test_reset.c | 16 uint8_t test_data[128]; in test_fcb_reset() local 39 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_reset() 40 test_data[i] = fcb_test_append_data(32, i); in test_fcb_reset() 42 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in test_fcb_reset() 77 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_reset() 78 test_data[i] = fcb_test_append_data(33, i); in test_fcb_reset() 80 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in test_fcb_reset() 119 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_reset() 120 test_data[i] = fcb_test_append_data(34, i); in test_fcb_reset() 122 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in test_fcb_reset()
|
D | fcb_test_append_fill.c | 16 uint8_t test_data[128]; in test_fcb_append_fill() local 29 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_append_fill() 30 test_data[i] = fcb_test_append_data(sizeof(test_data), i); in test_fcb_append_fill() 34 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_append_fill() 48 test_data, sizeof(test_data)); in test_fcb_append_fill()
|
D | fcb_test_multiple_scratch.c | 15 uint8_t test_data[128] = {0}; in test_fcb_multi_scratch() local 32 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_multi_scratch() 40 test_data, sizeof(test_data)); in test_fcb_multi_scratch() 60 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_multi_scratch() 68 test_data, sizeof(test_data)); in test_fcb_multi_scratch()
|
D | fcb_test_append.c | 15 uint8_t test_data[128]; in test_fcb_append() local 22 for (i = 0; i < sizeof(test_data); i++) { in test_fcb_append() 24 test_data[j] = fcb_test_append_data(i, j); in test_fcb_append() 29 test_data, i); in test_fcb_append() 38 zassert_true(var_cnt == sizeof(test_data), in test_fcb_append()
|
D | fcb_test_rotate.c | 16 uint8_t test_data[128] = {0}; in test_fcb_rotate() local 35 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_rotate() 49 test_data, sizeof(test_data)); in test_fcb_rotate() 76 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_rotate() 79 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in test_fcb_rotate() 80 sizeof(test_data)); in test_fcb_rotate()
|
D | fcb_test_last_of_n.c | 17 uint8_t test_data[128] = {0}; in test_fcb_last_of_n() local 31 rc = fcb_append(fcb, sizeof(test_data), &loc); in test_fcb_last_of_n() 37 test_data, sizeof(test_data)); in test_fcb_last_of_n()
|
/Zephyr-Core-2.7.6/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-Core-2.7.6/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 39 struct test_data { struct 47 static struct test_data test_data[4]; argument 48 static struct test_data *int_async_data; 206 static void bulk_poll_out(struct test_data *data, int wait_base, int wait_range) in bulk_poll_out() 224 bulk_poll_out((struct test_data *)data, 200, 600); in poll_out_thread() 235 struct test_data *data = p_data; in int_async_thread_func() 268 struct test_data *data = k_timer_user_data_get(timer); in poll_out_timer_handler() 291 static void init_test_data(struct test_data *data, int id, int repeat) in init_test_data() 303 int num_of_contexts = ARRAY_SIZE(test_data); in test_mixed_uart_access() 305 for (int i = 0; i < ARRAY_SIZE(test_data); i++) { in test_mixed_uart_access() [all …]
|
/Zephyr-Core-2.7.6/scripts/tests/twister/ |
D | test_twister.py | 29 def test_correct_schema(filename, schema, test_data): argument 31 filename = test_data + filename 41 def test_incorrect_schema(filename, schema, test_data): argument 43 filename = test_data + filename
|
D | conftest.py | 33 def testsuite_obj(test_data, testcases_dir, tmpdir_factory): argument 35 board_root = test_data +"board_config/1_level/2_level/" 51 def all_platforms_list(test_data, class_testsuite): argument 54 class_testsuite.board_roots = os.path.abspath(test_data + "board_config")
|
D | test_testsuite_class.py | 45 def test_add_configurations(test_data, class_testsuite, board_root_dir): argument 49 class_testsuite.board_roots = os.path.abspath(test_data + board_root_dir) 73 def test_load_from_file(test_data, class_testsuite, argument 78 class_testsuite.load_from_file(test_data +"twister_test.csv") 91 with open(os.path.join(test_data, "twister.csv"), "r") as filepath: 101 class_testsuite.load_from_file(test_data + "twister.csv") 119 class_testsuite.load_from_file(test_data + "twister.csv") 124 class_testsuite.load_from_file(test_data + "twister_keyerror.csv") 269 def test_add_instances(test_data, class_testsuite, all_testcases_dict, platforms_list): argument 276 class_testsuite.outdir = test_data
|
/Zephyr-Core-2.7.6/tests/boards/mec15xxevb_assy6853/i2c_api/src/ |
D | main.c | 17 uint8_t test_data[2] = {0xAA, 0xAA}; variable 45 datas[1] = test_data[0]; in test_i2c_pca95xx() 46 datas[2] = test_data[1]; in test_i2c_pca95xx() 61 ret = memcmp(datas, test_data, 2); in test_i2c_pca95xx()
|
/Zephyr-Core-2.7.6/tests/kernel/stack/stack/src/ |
D | test_stack_contexts.c | 237 stack_data_t test_data[3]; in test_stack_multithread_competition() local 239 memset(test_data, 0, sizeof(test_data)); in test_stack_multithread_competition() 243 test_data[0] = HIGH_T1; in test_stack_multithread_competition() 244 test_data[1] = HIGH_T2; in test_stack_multithread_competition() 245 test_data[2] = LOW_PRIO; in test_stack_multithread_competition() 269 k_stack_push(&stack, test_data[0]); in test_stack_multithread_competition() 270 k_stack_push(&stack, test_data[1]); in test_stack_multithread_competition() 271 k_stack_push(&stack, test_data[2]); in test_stack_multithread_competition()
|
/Zephyr-Core-2.7.6/tests/net/socket/tcp/src/ |
D | main.c | 721 struct test_msg_waitall_data *test_data = in test_msg_waitall_tx_work_handler() local 724 if (test_data->retries > 0) { in test_msg_waitall_tx_work_handler() 725 test_send(test_data->sock, test_data->data + test_data->offset, 1, 0); in test_msg_waitall_tx_work_handler() 726 test_data->offset++; in test_msg_waitall_tx_work_handler() 727 test_data->retries--; in test_msg_waitall_tx_work_handler() 728 k_work_reschedule(&test_data->tx_work, K_MSEC(10)); in test_msg_waitall_tx_work_handler() 734 struct test_msg_waitall_data test_data = { in test_v4_msg_waitall() local 768 test_data.offset = 0; in test_v4_msg_waitall() 769 test_data.retries = sizeof(rx_buf); in test_v4_msg_waitall() 770 test_data.sock = c_sock; in test_v4_msg_waitall() [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/timer/nrf_rtc_timer/src/ |
D | main.c | 11 struct test_data { struct 58 struct test_data *data = user_data; in timeout_handler() 76 struct test_data test_data = { in test_timeout() local 83 z_nrf_rtc_timer_compare_set(chan, cc_val, timeout_handler, &test_data); in test_timeout() 89 zassert_equal(test_data.err, 0, "Unexpected err: %d", test_data.err); in test_timeout() 135 struct test_data data = { in test_int_disable_enabled() 306 struct test_data test_data = { in test_reseting_cc() local 317 timeout_handler, &test_data); in test_reseting_cc() 326 timeout_handler, &test_data); in test_reseting_cc()
|
/Zephyr-Core-2.7.6/tests/subsys/fs/fs_api/src/ |
D | test_multi_fs.c | 13 static struct test_fs_data test_data; variable 18 .fs_data = &test_data, 24 .fs_data = &test_data,
|
/Zephyr-Core-2.7.6/tests/kernel/fifo/fifo_timeout/src/ |
D | main.c | 136 static int test_multiple_threads_pending(struct timeout_order_data *test_data, in test_multiple_threads_pending() argument 145 &test_data[ii], NULL, NULL, in test_multiple_threads_pending() 170 if (test_data[j].timeout_order == ii) { in test_multiple_threads_pending() 175 if (data->timeout > test_data[j].timeout) { in test_multiple_threads_pending() 176 diff_ms = data->timeout - test_data[j].timeout; in test_multiple_threads_pending() 178 diff_ms = test_data[j].timeout - data->timeout; in test_multiple_threads_pending() 211 static int test_multiple_threads_get_data(struct timeout_order_data *test_data, in test_multiple_threads_get_data() argument 220 &test_data[ii], NULL, NULL, in test_multiple_threads_get_data() 226 &test_data[ii], NULL, NULL, in test_multiple_threads_get_data() 230 k_fifo_put(test_data[ii].fifo, get_scratch_packet()); in test_multiple_threads_get_data()
|
/Zephyr-Core-2.7.6/tests/kernel/queue/src/ |
D | test_queue_contexts.c | 483 uint32_t test_data[3]; in test_queue_multithread_competition() local 485 memset(test_data, 0, sizeof(test_data)); in test_queue_multithread_competition() 491 test_data[0] = 0xAAA; in test_queue_multithread_competition() 492 test_data[1] = 0xBBB; in test_queue_multithread_competition() 493 test_data[2] = 0xCCC; in test_queue_multithread_competition() 517 k_queue_append(&queue, &test_data[0]); in test_queue_multithread_competition() 518 k_queue_append(&queue, &test_data[1]); in test_queue_multithread_competition() 519 k_queue_append(&queue, &test_data[2]); in test_queue_multithread_competition()
|