Lines Matching +full:16 +full:- +full:17
4 * SPDX-License-Identifier: Apache-2.0
61 get_time_mock.rtc.tm_year = 2023 - 1900; /* rtc_time year offset */ in configure_get_time_mock()
62 get_time_mock.rtc.tm_mon = 12 - 1; /* rtc_time month offset */ in configure_get_time_mock()
79 zassert_equal(year, rtctime->tm_year + 1900, "Year mismatch"); in assert_set_time()
80 zassert_equal(mon, rtctime->tm_mon + 1, "Month mismatch"); in assert_set_time()
81 zassert_equal(mday, rtctime->tm_mday, "Day mismatch"); in assert_set_time()
82 zassert_equal(hour, rtctime->tm_hour, "Hour mismatch"); in assert_set_time()
83 zassert_equal(min, rtctime->tm_min, "Minute mismatch"); in assert_set_time()
84 zassert_equal(sec, rtctime->tm_sec, "Second mismatch"); in assert_set_time()
104 configure_get_time_mock(-ENODATA); in ZTEST()
116 configure_get_time_mock(-1); in ZTEST()
133 err = shell_execute_cmd(sh, "rtc set " FAKE_RTC_NAME " 2022-05-17"); in ZTEST()
137 assert_set_time(2022, 5, 17, get_time_mock.rtc.tm_hour, get_time_mock.rtc.tm_min, in ZTEST()
149 err = shell_execute_cmd(sh, "rtc set " FAKE_RTC_NAME " 23:45:16"); in ZTEST()
153 assert_set_time(2023, 12, 24, 23, 45, 16); in ZTEST()
164 err = shell_execute_cmd(sh, "rtc set " FAKE_RTC_NAME " 2022-05-17T23:45:16"); in ZTEST()
168 assert_set_time(2022, 5, 17, 23, 45, 16); in ZTEST()
177 configure_set_time_mock(-EINVAL); in ZTEST()
179 err = shell_execute_cmd(sh, "rtc set " FAKE_RTC_NAME " 2022:05:17T23:45:16"); in ZTEST()