Home
last modified time | relevance | path

Searched refs:zassert_within (Results 1 – 21 of 21) sorted by relevance

/Zephyr-Core-3.7.0/tests/arch/common/timing/src/
Dmain.c53 zassert_within(diff1, diff2, diff1 * TOLERANCE, NULL); in perform_tests()
54 zassert_within(diff_all, diff1 + diff2, (diff1 + diff2) * TOLERANCE, in perform_tests()
66 zassert_within(diff1_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
67 zassert_within(diff2_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
68 zassert_within(diff_all_ns, 2 * WAIT_NS, 2 * WAIT_NS * TOLERANCE, NULL); in perform_tests()
71 zassert_within(diff_avg_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
/Zephyr-Core-3.7.0/tests/drivers/sensor/icm42688/src/
Dmain.c77 zassert_within(expected_uc, actual_uc, INT64_C(5000), in test_fetch_temp_mc()
120 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range()
125 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range()
130 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range()
182 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range()
189 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range()
196 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range()
/Zephyr-Core-3.7.0/tests/drivers/sensor/akm09918c/src/
Dmain.c77 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
83 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
89 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
/Zephyr-Core-3.7.0/tests/kernel/threads/no-multithreading/src/
Dmain.c30 zassert_within(diff, 10, 2); in ZTEST()
75 zassert_within(diff, 10, 2, "Unexpected time passed: %d ms", (int)diff); in ZTEST()
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_rescale/src/
Dmain.c81 zassert_within(calculated_voltage, input_mv * 2, MV_OUTPUT_EPS, in test_task_voltage_divider()
120 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_shunt()
160 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_amplifier()
/Zephyr-Core-3.7.0/tests/subsys/lorawan/clock_sync/src/
Dmain.c84 zassert_within((int)device_time, k_uptime_seconds(), 1); in ZTEST()
93 zassert_within(gps_time, k_uptime_seconds() + 1000, 1); in ZTEST()
121 zassert_within(device_time, gps_time, 1); in ZTEST()
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_accuracy_test/src/
Dref_volt.c34 zassert_within(sample_buffer, REF_V, 32, in test_ref_to_adc()
Ddac_source.c63 zassert_within(sample_buffer, in test_dac_to_adc()
/Zephyr-Core-3.7.0/tests/lib/devicetree/api/src/
Dmain.c3162 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_f0), val), in ZTEST()
3164 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_f1), val), in ZTEST()
3166 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_t), val), in ZTEST()
3169 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f0), val, (0.0)), in ZTEST()
3171 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f1), val, (0.0)), in ZTEST()
3173 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_t), val, (0.0)), in ZTEST()
3175 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f0), nak, (0.0)), in ZTEST()
3177 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f1), nak, (0.0)), in ZTEST()
3179 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_t), nak, (0.0)), in ZTEST()
3187 zassert_within(STRING_UNQUOTED_VAR(DT_NODELABEL(test_str_unquoted_f0)), in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/pwm/pwm_loopback/src/
Dtest_pwm_loopback.c96 zassert_within(period_capture, period, period / 100, in test_capture()
101 zassert_within(pulse_capture, pulse, pulse / 100, in test_capture()
272 zassert_within(usec, TEST_PWM_PULSE_USEC, TEST_PWM_PULSE_USEC / 100, in ZTEST()
275 zassert_within(usec, TEST_PWM_PERIOD_USEC, TEST_PWM_PERIOD_USEC / 100, in ZTEST()
/Zephyr-Core-3.7.0/tests/ztest/ztress/src/
Dmain.c43 zassert_within(d, 1000, 200); in ZTEST()
57 zassert_within(d, timeout + 500, 500); in ZTEST()
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dbuild_date.c146 zassert_within(expected_time_seconds, received_time_seconds, TIME_DIFFERENCE_ALLOWANCE, in ZTEST()
243 zassert_within(expected_time_seconds, received_time_seconds, TIME_DIFFERENCE_ALLOWANCE, in ZTEST()
/Zephyr-Core-3.7.0/tests/posix/common/src/
Dtimer.c80 zassert_within(exp_count, expected_signal_count, 1, in test_timer()
/Zephyr-Core-3.7.0/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c252 zassert_within(m_sample_buffer[0], in test_task_loopback()
/Zephyr-Core-3.7.0/tests/drivers/can/timing/src/
Dmain.c133 zassert_within(sp, sp_calc, sp_margin, in assert_sp_within_margin()
/Zephyr-Core-3.7.0/tests/drivers/build_all/sensor/src/
Dgeneric_test.c255 zassert_within(expected_shifted, actual_shifted, epsilon_shifted, in run_generic_test()
/Zephyr-Core-3.7.0/tests/boards/nrf/qdec/src/
Dmain.c117 zassert_within(val.val1, expected_reading, delta, in qenc_emulate_verify_reading()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/lwm2m_registry/src/
Dlwm2m_registry.c245 zassert_within(dbl_buf, 5.89, 0.01); in ZTEST()
259 zassert_within(dbl_buf, dbl_getbuf, 0.01); in ZTEST()
/Zephyr-Core-3.7.0/subsys/testsuite/ztest/include/zephyr/
Dztest_assert.h348 #define zassert_within(a, b, d, ...) \ macro
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_emul/src/
Dmain.c98 zassert_within(expected, output, MV_OUTPUT_EPS, in check_samples()
/Zephyr-Core-3.7.0/tests/lib/mpsc_pbuf/src/
Dmain.c1033 zassert_within(t, exp_wait, k_ms_to_ticks_ceil32(20)); in start_threads()