Home
last modified time | relevance | path

Searched refs:zexpect_equal (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-4.3.0/tests/drivers/i2c/i2c_emul/src/
Dtest_forwarding_pio.cpp28 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST()
29 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST()
32 zexpect_equal(expected_call_count, target_write_requested_0_fake.call_count, in ZTEST()
35 zexpect_equal(expected_call_count, target_write_received_0_fake.call_count, in ZTEST()
40 zexpect_equal(data, target_write_received_0_fake.arg1_val, in ZTEST()
45 zexpect_equal(expected_call_count, target_stop_0_fake.call_count, in ZTEST()
77 zexpect_equal(expected_call_count, target_read_requested_0_fake.call_count, in ZTEST()
80 zexpect_equal(expected_call_count, target_read_processed_0_fake.call_count, in ZTEST()
85 zexpect_equal(expected_data[0], data[0], "Expected 0x%02x, got 0x%02x", in ZTEST()
87 zexpect_equal(expected_data[1], data[1], "Expected 0x%02x, got 0x%02x", in ZTEST()
[all …]
Dtest_forwarding_buf.cpp33 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST()
34 zexpect_equal(1, target_buf_write_received_0_fake.call_count); in ZTEST()
35 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
58 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
59 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
60 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
70 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
71 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
72 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST()
87 zexpect_equal(1, target_buf_read_requested_0_fake.call_count); in ZTEST()
[all …]
Dtest_fowarding_common.cpp59 zexpect_equal(0, target_read_requested_0_fake.call_count); in ZTEST()
60 zexpect_equal(0, target_read_processed_0_fake.call_count); in ZTEST()
61 zexpect_equal(0, target_write_requested_0_fake.call_count); in ZTEST()
62 zexpect_equal(0, target_write_received_0_fake.call_count); in ZTEST()
63 zexpect_equal(0, target_buf_write_received_0_fake.call_count); in ZTEST()
64 zexpect_equal(0, target_buf_read_requested_0_fake.call_count); in ZTEST()
65 zexpect_equal(0, target_stop_0_fake.call_count); in ZTEST()
74 zexpect_equal(1, target_stop_0_fake.call_count); in ZTEST()
/Zephyr-4.3.0/tests/drivers/gpio/gpio_ite_it8xxx2_v2/src/
Dmain.c73 zexpect_equal(pins, BIT(TEST_PIN)); in callback()
101 zexpect_equal(registers.gpotr, 0, "gpotr=%x", registers.gpotr); in ZTEST()
102 zexpect_equal(registers.p18scr, 0); in ZTEST()
103 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
115 zexpect_equal(registers.gpotr, 0, "gpotr=%x", registers.gpotr); in ZTEST()
116 zexpect_equal(registers.p18scr, 0); in ZTEST()
117 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
133 zexpect_equal(registers.gpotr, 0, "gpotr=%x", registers.gpotr); in ZTEST()
134 zexpect_equal(registers.p18scr, 0); in ZTEST()
135 zexpect_equal(registers.gpcr[TEST_PIN], GPCR_PORT_PIN_MODE_INPUT, "gpcr[%d]=%x", TEST_PIN, in ZTEST()
[all …]
/Zephyr-4.3.0/tests/drivers/ethernet/eth_mac_config/src/
Dmain.c22 zexpect_equal(data->mac_addr_load_result, 0); in ZTEST()
23 zexpect_equal(cfg->mcfg.type, NET_ETH_MAC_STATIC); in ZTEST()
24 zexpect_equal(cfg->mcfg.addr_len, NET_ETH_ADDR_LEN); in ZTEST()
35 zexpect_equal(data->mac_addr_load_result, 0); in ZTEST()
36 zexpect_equal(cfg->mcfg.type, NET_ETH_MAC_RANDOM); in ZTEST()
37 zexpect_equal(cfg->mcfg.addr_len, 0); in ZTEST()
38 zexpect_equal(data->mac_addr[0] & 0x02, 0x02, "Missing LAA bit"); in ZTEST()
39 zexpect_equal(data->mac_addr[0] & 0x01, 0x00, "Erroneous I/G bit"); in ZTEST()
49 zexpect_equal(data->mac_addr_load_result, 0); in ZTEST()
50 zexpect_equal(cfg->mcfg.type, NET_ETH_MAC_RANDOM); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/drivers/video/api/src/
Dvideo_emul.c41 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
42 zexpect_equal(fmt.width, caps.format_caps[i].width_min); in ZTEST()
43 zexpect_equal(fmt.height, caps.format_caps[i].height_min); in ZTEST()
49 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
50 zexpect_equal(fmt.width, caps.format_caps[i].width_max); in ZTEST()
51 zexpect_equal(fmt.height, caps.format_caps[i].height_min); in ZTEST()
57 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
58 zexpect_equal(fmt.width, caps.format_caps[i].width_min); in ZTEST()
59 zexpect_equal(fmt.height, caps.format_caps[i].height_max); in ZTEST()
65 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/subsys/nvmem/api/src/
Dmain.c21 zexpect_equal(cell0.offset, 0); in ZTEST()
22 zexpect_equal(cell0.size, 0x10); in ZTEST()
26 zexpect_equal(cell10.offset, 0x10); in ZTEST()
27 zexpect_equal(cell10.size, 0x10); in ZTEST()
43 zexpect_equal(buf[i], 2 * i); in ZTEST()
/Zephyr-4.3.0/tests/lib/timespec_util/src/
Dmain.c122 zexpect_equal(valid, tspec->expect_valid, in ZTEST()
193 zexpect_equal(overflow, tspec->expect, in ZTEST()
200 zexpect_equal( in ZTEST()
232 zexpect_equal(overflow, tspec->expect_failure, in ZTEST()
262 zexpect_equal(timespec_compare(&a, &b), 0); in ZTEST()
266 zexpect_equal(timespec_compare(&a, &b), -1); in ZTEST()
270 zexpect_equal(timespec_compare(&a, &b), 1); in ZTEST()
289 zexpect_equal(SYS_TICKS_TO_SECS(0), 0); in ZTEST()
290 zexpect_equal(SYS_TICKS_TO_SECS(CONFIG_SYS_CLOCK_TICKS_PER_SEC), 1); in ZTEST()
291 zexpect_equal(SYS_TICKS_TO_SECS(2 * CONFIG_SYS_CLOCK_TICKS_PER_SEC), 2); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/kernel/events/event_api/src/
Dtest_event_apis.c445 zexpect_equal(events, 0x11, "expected 0x11, got %x", events); in ZTEST()
448 zexpect_equal(events, 0x0, "phantom events %x not removed from event object", events); in ZTEST()
451 zexpect_equal(events, 0x62, "expected 0x62, got %x", events); in ZTEST()
454 zexpect_equal(events, 0x0, "phantom events %x not removed from event object", events); in ZTEST()
464 zexpect_equal(events, 0x0, "expected 0x0, got %x", events); in ZTEST()
467 zexpect_equal(events, 0x11, "expected 0x11, got %x", events); in ZTEST()
470 zexpect_equal(events, 0x0, "expected 0x0, got %x", events); in ZTEST()
473 zexpect_equal(events, 0x62, "expected 0x62, got %x", events); in ZTEST()
/Zephyr-4.3.0/tests/bluetooth/audio/mocks/include/
Dexpects_util.h29 zexpect_equal(_expected, _actual, "'%s()' was called %u times, expected %u times", \
36 zexpect_equal(expect[i], data[i], in expect_data_equal()
Dbap_stream_expects.h155 zexpect_equal(reasons[i], in expect_bt_bap_stream_ops_stopped_called()
/Zephyr-4.3.0/tests/net/pmtu/src/
Dmain.c802 zexpect_equal(ret, 0, "setsockopt failed (%d)", err); in ZTEST()
803 zexpect_equal(optlen, sizeof(int), "setsockopt optlen (%d)", optlen); in ZTEST()
804 zexpect_equal(optval, 4096, "setsockopt mtu (%d)", optval); in ZTEST()
809 zexpect_equal(ret, -1, "setsockopt failed (%d)", err); in ZTEST()
810 zexpect_equal(optlen, sizeof(int), "setsockopt optlen (%d)", optlen); in ZTEST()
811 zexpect_equal(optval, 0, "setsockopt mtu (%d)", optval); in ZTEST()
841 zexpect_equal(ret, 0, "getsockopt failed (%d)", err); in ZTEST()
842 zexpect_equal(optlen, sizeof(int), "getsockopt optlen (%d)", optlen); in ZTEST()
843 zexpect_equal(optval, 2048, "getsockopt mtu (%d)", optval); in ZTEST()
848 zexpect_equal(ret, 0, "setsockopt failed (%d)", err); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/ztest/zexpect/src/
Dmain.c21 zexpect_equal(val, 2); in ZTEST()
103 zexpect_equal(5, 5); in ZTEST()
109 zexpect_equal(5, 1); in ZTEST()
/Zephyr-4.3.0/tests/net/socket/udp/src/
Dmain.c2569 zexpect_equal(ret, 0, "setsockopt failed (%d)", errno); in ZTEST()
2570 zexpect_equal(optlen, sizeof(optval), "invalid optlen %d vs %d", in ZTEST()
2573 zexpect_equal(optval, ifindex, in ZTEST()
2588 zexpect_equal(ret, -1, "setsockopt failed (%d)", errno); in ZTEST()
2589 zexpect_equal(err, -EAFNOSUPPORT, "setsockopt failed (%d)", errno); in ZTEST()
2590 zexpect_equal(optlen, 0U, "setsockopt optlen (%d)", optlen); in ZTEST()
2604 zexpect_equal(ret, 0, "setsockopt failed (%d)", err); in ZTEST()
2605 zexpect_equal(optlen, sizeof(optval), "invalid optlen %d vs %d", in ZTEST()
2612 zexpect_equal(ret, 0, "setsockopt failed (%d)", errno); in ZTEST()
2613 zexpect_equal(optlen, sizeof(optval), "invalid optlen %d vs %d", in ZTEST()
[all …]
/Zephyr-4.3.0/tests/posix/net/src/
Dinet_addr.c47 zexpect_equal(ret, p->out, "inet_addr(%s) failed. expect: %d actual: %d", p->in, in ZTEST()
/Zephyr-4.3.0/tests/posix/xsi_single_process/src/
Dputenv.c42 zexpect_equal(-1, putenv(s), "putenv(%s) unexpectedly succeeded", s); in ZTEST()
/Zephyr-4.3.0/tests/posix/signals/src/
Dmain.c192 zexpect_equal(res, -1, "rc should be -1 but is %d", res); in ZTEST()
193 zexpect_equal(errno, EINVAL, "errno should be %s", "EINVAL"); in ZTEST()
196 zexpect_equal(res, -1, "rc should be -1 but is %d", res); in ZTEST()
197 zexpect_equal(errno, EINVAL, "errno should be %s", "EINVAL"); in ZTEST()
200 zexpect_equal(res, -1, "rc should be -1 but is %d", res); in ZTEST()
201 zexpect_equal(errno, EINVAL, "errno should be %s", "EINVAL"); in ZTEST()
/Zephyr-4.3.0/tests/drivers/sensor/ina228/src/
Dina228_test.c143 zexpect_equal(resulting_registervalue, 0x0000, "CONFIG: got 0x%04X", in ZTEST_F()
155 zexpect_equal(resulting_registervalue, 0xFB68, "ADC_CONFIG: got 0x%04X", in ZTEST_F()
170 zexpect_equal(resulting_registervalue, 0x0000, "SHUNT_TEMPCO: got 0x%04X", in ZTEST_F()
/Zephyr-4.3.0/tests/drivers/smbus/smbus_pec/src/
Dmain.c33 zexpect_equal(expected_pec, actual_pec, "expected: %02x actual: %02x", in ZTEST()
/Zephyr-4.3.0/tests/drivers/sensor/ina237/src/
Dina237_test.c38 zexpect_equal(0xFB68, config->adc_config, in ZTEST()
40 zexpect_equal(0x0000, config->config); in ZTEST()
/Zephyr-4.3.0/tests/posix/c_lib_ext/src/
Dfnmatch.c150 zexpect_equal(fnmatch(data->pattern, input, 0), FNM_NOMATCH, in ZTEST()
/Zephyr-4.3.0/tests/subsys/dsp/print_format/src/
Dmain.c12 zexpect_equal(strlen(expected), strlen(actual), "Expected %zu(%s), got %zu(%s)", \
/Zephyr-4.3.0/tests/drivers/sensor/ina230/src/
Dina230_test.c47 zexpect_equal(expected, config->config, "0x%x != config (0x%x)", in ZTEST()
/Zephyr-4.3.0/tests/lib/devicetree/api/src/
Dmain.c3905 zexpect_equal(DT_NVMEM_CELLS_HAS_IDX(DT_NODELABEL(test_nvmem_consumer), 0), 1); in ZTEST()
3906 zexpect_equal(DT_NVMEM_CELLS_HAS_IDX(DT_NODELABEL(test_nvmem_consumer), 1), 1); in ZTEST()
3907 zexpect_equal(DT_NVMEM_CELLS_HAS_IDX(DT_NODELABEL(test_nvmem_consumer), 2), 0); in ZTEST()
3909 zexpect_equal(DT_NVMEM_CELLS_HAS_NAME(DT_NODELABEL(test_nvmem_consumer), cell0), 1); in ZTEST()
3910 zexpect_equal(DT_NVMEM_CELLS_HAS_NAME(DT_NODELABEL(test_nvmem_consumer), cell10), 1); in ZTEST()
3911 zexpect_equal(DT_NVMEM_CELLS_HAS_NAME(DT_NODELABEL(test_nvmem_consumer), missing), 0); in ZTEST()
3913 zexpect_equal(DT_NUM_NVMEM_CELLS(DT_NODELABEL(test_nvmem_consumer)), 2); in ZTEST()
3936 zexpect_equal(DT_INST_NVMEM_CELLS_HAS_IDX(0, 0), 1); in ZTEST()
3937 zexpect_equal(DT_INST_NVMEM_CELLS_HAS_IDX(0, 1), 1); in ZTEST()
3938 zexpect_equal(DT_INST_NVMEM_CELLS_HAS_IDX(0, 2), 0); in ZTEST()
[all …]
/Zephyr-4.3.0/tests/unit/util/
Dmain.c179 zexpect_equal(val, 42); in ZTEST()
184 zexpect_equal(val, 7); in ZTEST()
189 zexpect_equal(val, 5); in ZTEST()
192 zexpect_equal(val, 9); in ZTEST()

12