Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/Zephyr-Core-3.7.0/tests/drivers/mm/sys_mm_drv_bank/src/
Dmain.c18 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.7.0/tests/net/socket/can/src/
Dmain.c21 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.7.0/tests/unit/crc/
Dmain.c203 uint8_t fcs, expected; in ZTEST() local
213 expected = 0x00; in ZTEST()
214 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
217 expected = 0x00; in ZTEST()
218 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
221 expected = 0x1a; in ZTEST()
222 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
225 expected = 0x92; in ZTEST()
226 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
229 expected = 0x1a; in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/lib/c_lib/strerror/src/
Dmain.c14 const char *expected; in ZTEST() local
19 expected = ""; in ZTEST()
22 expected = "Invalid argument"; in ZTEST()
25 zassert_equal(0, strcmp(expected, actual), in ZTEST()
26 "mismatch: exp: %s act: %s", expected, actual); in ZTEST()
34 expected = ""; in ZTEST()
36 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST()
37 expected, actual); in ZTEST()
39 zassert_equal(0, strcmp(expected, actual), "mismatch: exp: %s act: %s", in ZTEST()
40 expected, actual); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/transport/src/
Dsmp_reassembly.c21 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.7.0/tests/crypto/tinycrypt/src/
Dsha256.c59 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 …]
Dhmac.c46 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 …]
Dccm_mode.c75 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.7.0/tests/kernel/threads/thread_init/src/
Dmain.c60 } 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.7.0/tests/subsys/mgmt/mcumgr/smp_reassembly/src/
Dmain.c39 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.7.0/tests/bsim/bluetooth/mesh/tests_scripts/blob_mdls/
Dblob_srv_persistence.sh15 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1
19 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2
23 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3
27 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
32 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=5
36 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
41 blob_cli_stop -flash_erase blob_srv_stop -flash_erase -- -argstest expected-phase=1
45 blob_cli_stop blob_srv_stop -- -argstest expected-phase=2
49 blob_cli_stop blob_srv_stop -- -argstest expected-phase=3
53 blob_cli_stop -flash_rm blob_srv_stop -flash_rm -- -argstest expected-phase=4
[all …]
/Zephyr-Core-3.7.0/tests/arch/x86/pagetables/src/
Dmain.c87 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.7.0/tests/bsim/bluetooth/mesh/tests_scripts/dfu/
Ddfu_srv_recovery.sh19 -- -argstest recover=0 expected-phase=2
24 -- -argstest recover=1 expected-phase=3
29 -- -argstest recover=1 expected-phase=4
34 -- -argstest recover=1 expected-phase=6
40 -- -argstest recover=1 expected-phase=8
46 -- -argstest recover=0 expected-phase=2
51 -- -argstest recover=1 expected-phase=3
56 -- -argstest recover=1 expected-phase=4
61 -- -argstest recover=1 expected-phase=6
67 -- -argstest recover=1 expected-phase=8
Ddfu_srv_recovery_verify_fail.sh16 -- -argstest recover=0 expected-phase=5
21 -- -argstest recover=1 expected-phase=6
27 -- -argstest recover=0 expected-phase=5
32 -- -argstest recover=1 expected-phase=6
/Zephyr-Core-3.7.0/tests/drivers/gpio/gpio_hogs/src/
Dmain.c57 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.7.0/scripts/tests/twister/
Dtest_cmakecache.py133 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 …]
Dtest_testsuite.py95 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
252 def test_scan_file_mmap(os_name, expected): argument
257 assert expected.items() <= kwargs.items()
371 def test_get_unique(testsuite_root, suite_path, name, expected): argument
378 assert suite.name == expected
426 expected argument
428 with pytest.raises(expected) if \
[all …]
/Zephyr-Core-3.7.0/tests/drivers/can/shell/src/
Dmain.c141 struct can_timing expected = { 0 }; in can_shell_test_bitrate() local
144 err = can_calc_timing(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_bitrate()
153 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_bitrate()
183 struct can_timing expected = { 0 }; in can_shell_test_dbitrate() local
188 err = can_calc_timing_data(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_dbitrate()
198 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_dbitrate()
214 struct can_timing expected = { in ZTEST() local
229 assert_can_timing_equal(&expected, &timing_capture); in ZTEST()
246 struct can_timing expected = { in ZTEST() local
264 assert_can_timing_equal(&expected, &timing_capture); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/samples/drivers/mspi/mspi_flash/src/
Dmain.c22 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test() local
23 const size_t len = sizeof(expected); in single_sector_test()
24 uint8_t buf[sizeof(expected)]; in single_sector_test()
49 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
62 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
65 const uint8_t *wp = expected; in single_sector_test()
84 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test() local
85 const size_t len = sizeof(expected); in multi_sector_test()
86 uint8_t buf[sizeof(expected)]; in multi_sector_test()
132 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test()
[all …]
/Zephyr-Core-3.7.0/tests/net/lib/mqtt_sn_packet/src/
Dmqtt_sn_packet.c23 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.7.0/samples/drivers/spi_flash/src/
Dmain.c53 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in single_sector_test() local
54 const size_t len = sizeof(expected); in single_sector_test()
55 uint8_t buf[sizeof(expected)]; in single_sector_test()
91 rc = flash_write(flash_dev, SPI_FLASH_TEST_REGION_OFFSET, expected, len); in single_sector_test()
104 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
107 const uint8_t *wp = expected; in single_sector_test()
125 const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 }; in multi_sector_test() local
126 const size_t len = sizeof(expected); in multi_sector_test()
127 uint8_t buf[sizeof(expected)]; in multi_sector_test()
173 rc = flash_write(flash_dev, offs, expected, len); in multi_sector_test()
[all …]
/Zephyr-Core-3.7.0/scripts/tests/twister_blackbox/
Dtest_platform.py201 def test_exclude_platform(self, capfd, out_path, test_path, test_platforms, expected): argument
227 expected['passed_configurations']
229 expected['selected_test_instances']
235 expected['executed_on_platform']
237 expected['only_built']
249 def test_emulation_only(self, capfd, out_path, test_path, test_platforms, expected): argument
290 expected['selected_test_scenarios']
292 expected['selected_test_instances']
294 expected['skipped_configurations']
296 expected['skipped_by_static_filter']
[all …]
Dtest_runner.py199 def test_build_only(self, capfd, out_path, test_path, test_platforms, expected, flag): argument
221 expected['executed_on_platform']
223 expected['only_built']
234 def test_runtest_only(self, capfd, out_path, test_path, test_platforms, expected): argument
288 expected['selected_test_scenarios']
290 expected['selected_test_instances']
292 expected['skipped_configurations']
294 expected['skipped_by_static_filter']
296 expected['skipped_at_runtime']
302 expected['passed_configurations']
[all …]
/Zephyr-Core-3.7.0/subsys/testsuite/include/zephyr/
Dtest_utils.h50 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.7.0/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c405 struct sys_mem_blocks_info *expected) in test_mem_block_raw() argument
415 zassert_equal(raw.num_blocks, expected->num_blocks, in test_mem_block_raw()
417 str, expected->num_blocks, raw.num_blocks); in test_mem_block_raw()
418 zassert_equal(raw.blk_sz_shift, expected->blk_sz_shift, in test_mem_block_raw()
420 str, expected->blk_sz_shift, raw.blk_sz_shift); in test_mem_block_raw()
422 zassert_equal(raw.used_blocks, expected->used_blocks, in test_mem_block_raw()
424 str, expected->used_blocks, raw.used_blocks); in test_mem_block_raw()
425 zassert_equal(raw.max_used_blocks, expected->max_used_blocks, in test_mem_block_raw()
427 str, expected->max_used_blocks, raw.max_used_blocks); in test_mem_block_raw()
432 struct sys_memory_stats *expected) in test_mem_block_query() argument
[all …]

12345678910>>...12