/Zephyr-Core-3.5.0/tests/drivers/mm/sys_mm_drv_bank/src/ |
D | main.c | 18 struct sys_memory_stats *expected) in test_stats() argument 20 zassert_equal(stats->free_bytes, expected->free_bytes, in test_stats() 22 stats->free_bytes, expected->free_bytes); in test_stats() 23 zassert_equal(stats->allocated_bytes, expected->allocated_bytes, in test_stats() 25 stats->allocated_bytes, expected->allocated_bytes); in test_stats() 26 zassert_equal(stats->max_allocated_bytes, expected->max_allocated_bytes, in test_stats() 29 expected->max_allocated_bytes); in test_stats() 35 struct sys_memory_stats expected; in ZTEST() local 42 expected.free_bytes = EXPECTED(0); in ZTEST() 43 expected.allocated_bytes = EXPECTED(BANK_PAGES); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/net/socket/can/src/ |
D | main.c | 21 struct can_frame expected = { 0 }; in ZTEST() local 30 expected.flags = CAN_FRAME_IDE; in ZTEST() 31 expected.id = 1234U; in ZTEST() 32 expected.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST() 33 memcpy(expected.data, data, sizeof(data)); in ZTEST() 39 LOG_HEXDUMP_DBG((const uint8_t *)&expected, sizeof(expected), "expected"); in ZTEST() 41 zassert_equal(zframe.flags, expected.flags, "Flags not equal"); in ZTEST() 42 zassert_equal(zframe.id, expected.id, "CAN id invalid"); in ZTEST() 43 zassert_equal(zframe.dlc, expected.dlc, "Msg length invalid"); in ZTEST() 44 zassert_mem_equal(&zframe.data, &expected.data, can_dlc_to_bytes(expected.dlc), in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/unit/crc/ |
D | main.c | 186 uint8_t fcs, expected; in ZTEST() local 196 expected = 0x00; in ZTEST() 197 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 200 expected = 0x00; in ZTEST() 201 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 204 expected = 0x1a; in ZTEST() 205 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 208 expected = 0x92; in ZTEST() 209 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST() 212 expected = 0x1a; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/c_lib/src/ |
D | test_strerror.c | 18 const char *expected; in ZTEST() local 23 expected = ""; in ZTEST() 26 expected = "Invalid argument"; in ZTEST() 29 zassert_equal(0, strcmp(expected, actual), in ZTEST() 30 "mismatch: exp: %s act: %s", expected, actual); in ZTEST() 37 expected = ""; in ZTEST() 39 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 40 expected, actual); in ZTEST() 42 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST() 43 expected, actual); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/transport/src/ |
D | smp_reassembly.c | 21 smpt->__reassembly.expected = 0; in smp_reassembly_init() 30 return smpt->__reassembly.expected; in smp_reassembly_expected() 41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect() local 48 expected += sizeof(struct smp_hdr); in smp_reassembly_collect() 52 expected > MCUMGR_TRANSPORT_NETBUF_SIZE) { in smp_reassembly_collect() 56 if (len > expected) { in smp_reassembly_collect() 62 smpt->__reassembly.expected = expected; in smp_reassembly_collect() 73 if (smpt->__reassembly.expected >= len) { in smp_reassembly_collect() 75 smpt->__reassembly.expected -= len; in smp_reassembly_collect() 83 return smpt->__reassembly.expected; in smp_reassembly_collect() [all …]
|
/Zephyr-Core-3.5.0/tests/crypto/tinycrypt/src/ |
D | sha256.c | 59 const uint8_t expected[32] = { in ZTEST() local 73 result = check_result(1, expected, sizeof(expected), in ZTEST() 88 const uint8_t expected[32] = { in ZTEST() local 104 result = check_result(2, expected, sizeof(expected), in ZTEST() 116 const uint8_t expected[32] = { in ZTEST() local 131 result = check_result(3, expected, sizeof(expected), in ZTEST() 144 const uint8_t expected[32] = { in ZTEST() local 159 result = check_result(4, expected, sizeof(expected), in ZTEST() 172 const uint8_t expected[32] = { in ZTEST() local 189 result = check_result(5, expected, sizeof(expected), in ZTEST() [all …]
|
D | hmac.c | 46 size_t datalen, const uint8_t *expected, in do_hmac_test() argument 55 result = check_result(testnum, expected, expectedlen, in do_hmac_test() 78 const uint8_t expected[32] = { in ZTEST() local 90 expected, sizeof(expected)); in ZTEST() 111 const uint8_t expected[32] = { in ZTEST() local 124 expected, sizeof(expected)); in ZTEST() 151 const uint8_t expected[32] = { in ZTEST() local 164 expected, sizeof(expected)); in ZTEST() 193 const uint8_t expected[32] = { in ZTEST() local 206 expected, sizeof(expected)); in ZTEST() [all …]
|
D | ccm_mode.c | 75 const uint8_t *expected, size_t elen, in do_test() argument 98 if (memcmp(expected, ciphertext, elen) != 0) { in do_test() 99 show_str("\t\tExpected", expected, elen); in do_test() 143 const uint8_t expected[EXPECTED_BUF_LEN31] = { in ZTEST() local 155 data, sizeof(data), expected, sizeof(expected), mlen); in ZTEST() 181 const uint8_t expected[EXPECTED_BUF_LEN32] = { in ZTEST() local 193 data, sizeof(data), expected, sizeof(expected), mlen); in ZTEST() 220 const uint8_t expected[EXPECTED_BUF_LEN33] = { in ZTEST() local 233 sizeof(data), expected, sizeof(expected), mlen); in ZTEST() 259 const uint8_t expected[EXPECTED_BUF_LEN33] = { in ZTEST() local [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/threads/thread_init/src/ |
D | main.c | 60 } expected; variable 68 zassert_true(t_delay >= expected.init_delay, in thread_entry() 76 zassert_equal(k_thread_priority_get(tid), expected.init_prio); in thread_entry() 77 zassert_equal(p1, expected.init_p1); in thread_entry() 78 zassert_equal(p2, expected.init_p2); in thread_entry() 79 zassert_equal(p3, expected.init_p3); in thread_entry() 101 expected.init_p1 = INIT_PREEMPT_P1; in ZTEST_USER() 102 expected.init_p2 = INIT_PREEMPT_P2; in ZTEST_USER() 103 expected.init_p3 = INIT_PREEMPT_P3_static; in ZTEST_USER() 104 expected.init_prio = INIT_PREEMPT_PRIO; in ZTEST_USER() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/smp_reassembly/src/ |
D | main.c | 39 int expected; in ZTEST() local 58 expected = TEST_FRAME_SIZE - frag_used; in ZTEST() 60 zassert_equal(expected, ret, in ZTEST() 61 "Expected is %d should be %d\n", ret, expected); in ZTEST() 65 zassert_equal(expected, ret, in ZTEST() 66 "Forced completion ret %d, but expected was %d\n", ret, expected); in ZTEST() 86 int expected; in ZTEST() local 91 expected = TEST_FRAME_SIZE - frag_used; in ZTEST() 93 zassert_equal(expected, ret, in ZTEST() 94 "Expected is %d should be %d\n", ret, expected); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/arch/x86/pagetables/src/ |
D | main.c | 87 pentry_t entry, flags, expected; in ZTEST() local 105 expected = MMU_P | MMU_RW; in ZTEST() 107 expected = MMU_P | MMU_US; in ZTEST() 109 expected = MMU_P | MMU_US | MMU_XD; in ZTEST() 112 expected = MMU_P | MMU_RW | MMU_US | MMU_XD; in ZTEST() 117 expected = MMU_P | MMU_RW | MMU_US | MMU_XD; in ZTEST() 134 expected = MMU_P | MMU_US | MMU_RW | MMU_XD; in ZTEST() 138 expected = MMU_P | MMU_US; in ZTEST() 140 expected = MMU_P | MMU_US | MMU_XD; in ZTEST() 144 expected = MMU_P | MMU_US; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/tests_scripts/dfu/ |
D | dfu_srv_persistence.sh | 20 -- -argstest recover=0 expected-phase=2 26 -- -argstest recover=1 expected-phase=3 32 -- -argstest recover=1 expected-phase=4 38 -- -argstest recover=1 expected-phase=6 45 -- -argstest recover=1 expected-phase=8 53 -- -argstest recover=0 expected-phase=5 59 -- -argstest recover=1 expected-phase=6 66 -- -argstest recover=0 expected-phase=2 72 -- -argstest recover=1 expected-phase=3 78 -- -argstest recover=1 expected-phase=4 [all …]
|
/Zephyr-Core-3.5.0/scripts/tests/twister_blackbox/ |
D | test_qemu.py | 87 def test_emulation_only(self, capfd, test_path, test_platforms, expected): argument 127 expected['selected_test_scenarios'] 129 expected['selected_test_instances'] 131 expected['skipped_configurations'] 133 expected['skipped_by_static_filter'] 135 expected['skipped_at_runtime'] 141 expected['passed_configurations'] 143 expected['selected_test_instances'] 145 expected['failed_configurations'] 147 expected['errored_configurations'] [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/gpio/gpio_hogs/src/ |
D | main.c | 57 static void assert_gpio_hog_config(const struct gpio_dt_spec *spec, gpio_flags_t expected) in assert_gpio_hog_config() argument 73 zassert_equal(actual & expected, expected, in assert_gpio_hog_config() 75 spec->port->name, spec->pin, actual, expected); in assert_gpio_hog_config() 80 gpio_flags_t expected = GPIO_OUTPUT; in ZTEST() local 83 expected |= GPIO_OUTPUT_INIT_LOW; in ZTEST() 85 expected |= GPIO_OUTPUT_INIT_HIGH; in ZTEST() 88 assert_gpio_hog_config(&output_high_gpio, expected); in ZTEST() 93 gpio_flags_t expected = GPIO_OUTPUT; in ZTEST() local 96 expected |= GPIO_OUTPUT_INIT_LOW; in ZTEST() 98 expected |= GPIO_OUTPUT_INIT_HIGH; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/tests_scripts/blob_mdls/ |
D | blob_srv_persistence.sh | 16 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1 21 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2 26 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3 31 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4 37 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=5 42 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4 48 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1 53 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2 58 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3 63 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4 [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/can/shell/src/ |
D | main.c | 139 struct can_timing expected = { 0 }; in can_shell_test_bitrate() local 142 err = can_calc_timing(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_bitrate() 151 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_bitrate() 181 struct can_timing expected = { 0 }; in can_shell_test_dbitrate() local 186 err = can_calc_timing_data(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_dbitrate() 196 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_dbitrate() 229 static void can_shell_test_mode(const char *cmd, can_mode_t expected) in can_shell_test_mode() argument 239 zassert_equal(fake_can_set_mode_fake.arg1_val, expected, "wrong mode value"); in can_shell_test_mode() 294 static void can_shell_test_send(const char *cmd, const struct can_frame *expected) in can_shell_test_send() argument 305 assert_can_frame_equal(expected, &frame_capture); in can_shell_test_send() [all …]
|
/Zephyr-Core-3.5.0/scripts/tests/twister/ |
D | test_cmakecache.py | 133 def test_cmakecacheentry_from_line(cmake_line, expected): argument 136 with pytest.raises(type(expected)) if \ 137 isinstance(expected, Exception) else nullcontext() as exception: 141 assert repr(exception.value) == repr(expected) 144 if expected is None: 148 assert entry.name == expected.name 149 assert entry.value == expected.value 169 def test_cmakecacheentry_str(cmake_cache_entry, expected): argument 170 assert str(cmake_cache_entry) == expected 186 expected = [ [all …]
|
D | test_testsuite.py | 95 def test_scanpathresults_dunders(original, provided, expected): argument 98 assert result == expected 205 def test_scan_file(test_data, test_file, class_env, expected: ScanPathResult): 213 assert result == expected 237 def test_scan_file_mmap(os_name, expected): argument 242 assert expected.items() <= kwargs.items() 356 def test_get_unique(testsuite_root, suite_path, name, expected): argument 363 assert suite.name == expected 411 expected argument 413 with pytest.raises(expected) if \ [all …]
|
/Zephyr-Core-3.5.0/samples/drivers/spi_flash/src/ |
D | main.c | 35 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test() local 36 const size_t len = sizeof(expected); in single_sector_test() 37 uint8_t buf[sizeof(expected)]; in single_sector_test() 62 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test() 75 if (memcmp(expected, buf, len) == 0) { in single_sector_test() 78 const uint8_t *wp = expected; in single_sector_test() 96 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test() local 97 const size_t len = sizeof(expected); in multi_sector_test() 98 uint8_t buf[sizeof(expected)]; in multi_sector_test() 144 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test() [all …]
|
/Zephyr-Core-3.5.0/tests/net/lib/mqtt_sn_packet/src/ |
D | mqtt_sn_packet.c | 23 struct mqtt_sn_param expected; member 102 .expected = (struct mqtt_sn_param){ 112 .expected = (struct mqtt_sn_param){ 125 .expected = (struct mqtt_sn_param){ 134 .expected = (struct mqtt_sn_param){ 143 .expected = (struct mqtt_sn_param){ 149 .expected = (struct mqtt_sn_param){ 155 .expected = (struct mqtt_sn_param){ 169 .expected = (struct mqtt_sn_param){ 180 .expected = (struct mqtt_sn_param){ [all …]
|
/Zephyr-Core-3.5.0/tests/ztest/base/src/ |
D | main_deprecated.c | 25 static const uint32_t expected[4] = { in test_assert_mem_equal() local 33 memcpy(actual, expected, sizeof(actual)); in test_assert_mem_equal() 34 zassert_mem_equal(actual, expected, sizeof(expected), NULL); in test_assert_mem_equal()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/common/ |
D | test_fs_open_flags.c | 41 static void ZEQ(int ret, int expected) in ZEQ() argument 43 zassert_equal(ret, expected, in ZEQ() 45 expected, ret, errno); in ZEQ() 55 static void ZOPEN(struct test_state *ts, int flags, int expected, int line) in ZOPEN() argument 58 ZEQ(fs_open(&ts->file, ts->file_path, flags), expected); in ZOPEN() 69 static void ZWRITE(struct test_state *ts, int expected, int line) in ZWRITE() argument 72 ZEQ(fs_write(&ts->file, ts->write, ts->write_size), expected); in ZWRITE() 76 static void ZREAD(struct test_state *ts, int expected, int line) in ZREAD() argument 79 ZEQ(fs_read(&ts->file, ts->read, ts->read_size), expected); in ZREAD() 94 static void ZCHKPOS(struct test_state *ts, off_t expected, int line) in ZCHKPOS() argument [all …]
|
/Zephyr-Core-3.5.0/subsys/testsuite/include/zephyr/ |
D | test_utils.h | 50 void fatal(uint32_t testnum, const void *expected, size_t expectedlen, in fatal() argument 54 show_str("\t\tExpected", expected, expectedlen); in fatal() 60 uint32_t check_result(uint32_t testnum, const void *expected, in check_result() argument 75 if (memcmp(computed, expected, computedlen) != 0) { in check_result() 76 fatal(testnum, expected, expectedlen, in check_result()
|
/Zephyr-Core-3.5.0/tests/kernel/obj_core/obj_core_stats/src/ |
D | main.c | 403 struct sys_mem_blocks_info *expected) in test_mem_block_raw() argument 413 zassert_equal(raw.num_blocks, expected->num_blocks, in test_mem_block_raw() 415 str, expected->num_blocks, raw.num_blocks); in test_mem_block_raw() 416 zassert_equal(raw.blk_sz_shift, expected->blk_sz_shift, in test_mem_block_raw() 418 str, expected->blk_sz_shift, raw.blk_sz_shift); in test_mem_block_raw() 420 zassert_equal(raw.used_blocks, expected->used_blocks, in test_mem_block_raw() 422 str, expected->used_blocks, raw.used_blocks); in test_mem_block_raw() 423 zassert_equal(raw.max_used_blocks, expected->max_used_blocks, in test_mem_block_raw() 425 str, expected->max_used_blocks, raw.max_used_blocks); in test_mem_block_raw() 430 struct sys_memory_stats *expected) in test_mem_block_query() argument [all …]
|
/Zephyr-Core-3.5.0/tests/net/lib/mqtt_packet/src/ |
D | mqtt_packet.c | 68 uint8_t *expected; member 210 const uint8_t *expected, uint16_t len); 570 .expected = connect1, .expected_len = sizeof(connect1)}, 574 .expected = connect2, .expected_len = sizeof(connect2)}, 578 .expected = connect3, .expected_len = sizeof(connect3)}, 582 .expected = connect4, .expected_len = sizeof(connect4)}, 586 .expected = connect5, .expected_len = sizeof(connect5)}, 590 .expected = connect6, .expected_len = sizeof(connect6)}, 594 .expected = disconnect1, .expected_len = sizeof(disconnect1)}, 598 .expected = publish1, .expected_len = sizeof(publish1)}, [all …]
|