1 /* 2 * Copyright 2019-2020 Peter Bigot Consulting 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef TIMEUTIL_TEST_H 8 #define TIMEUTIL_TEST_H 9 10 #include <stdlib.h> 11 #include <zephyr/sys/timeutil.h> 12 13 struct timeutil_test_data { 14 time_t ux; 15 const char *civil; 16 struct tm tm; 17 }; 18 19 void timeutil_check(const struct timeutil_test_data *tp, 20 size_t count); 21 22 void test_gmtime(void); 23 void test_s32(void); 24 void test_s64(void); 25 void test_sync(void); 26 27 #endif /* TIMEUTIL_TEST_H */ 28