mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 13:52:22 +00:00
We don't have to build an image for running test timeutil. We can just build a native app to test it. So move it into "unit" directory. Also, add 64-bit support for unit testing framework. Signed-off-by: Steven Wang <steven.l.wang@linux.intel.com>
27 lines
445 B
C
27 lines
445 B
C
/*
|
|
* Copyright (c) 2019 Peter Bigot Consulting
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef TIMEUTIL_TEST_H
|
|
#define TIMEUTIL_TEST_H
|
|
|
|
#include <stdlib.h>
|
|
#include <sys/timeutil.h>
|
|
|
|
struct timeutil_test_data {
|
|
time_t ux;
|
|
const char *civil;
|
|
struct tm tm;
|
|
};
|
|
|
|
void timeutil_check(const struct timeutil_test_data *tp,
|
|
size_t count);
|
|
|
|
void test_gmtime(void);
|
|
void test_s32(void);
|
|
void test_s64(void);
|
|
|
|
#endif /* TIMEUTIL_TEST_H */
|