186 lines
2.6 KiB
CMake
186 lines
2.6 KiB
CMake
add_custom_target(libc_time_unittests)
|
|
|
|
add_libc_unittest(
|
|
asctime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
asctime_test.cpp
|
|
HDRS
|
|
TmHelper.h
|
|
TmMatcher.h
|
|
CXX_STANDARD
|
|
20
|
|
DEPENDS
|
|
libc.src.time.asctime
|
|
)
|
|
|
|
add_libc_unittest(
|
|
asctime_r_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
asctime_r_test.cpp
|
|
HDRS
|
|
TmHelper.h
|
|
TmMatcher.h
|
|
CXX_STANDARD
|
|
20
|
|
DEPENDS
|
|
libc.src.time.asctime_r
|
|
)
|
|
|
|
add_libc_unittest(
|
|
ctime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
ctime_test.cpp
|
|
HDRS
|
|
TmHelper.h
|
|
TmMatcher.h
|
|
CXX_STANDARD
|
|
20
|
|
DEPENDS
|
|
libc.include.time
|
|
libc.hdr.types.time_t
|
|
libc.src.time.ctime
|
|
libc.src.time.time_utils
|
|
)
|
|
|
|
add_libc_unittest(
|
|
ctime_r_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
ctime_r_test.cpp
|
|
HDRS
|
|
TmHelper.h
|
|
TmMatcher.h
|
|
CXX_STANDARD
|
|
20
|
|
DEPENDS
|
|
libc.include.time
|
|
libc.hdr.types.time_t
|
|
libc.src.time.ctime_r
|
|
libc.src.time.time_utils
|
|
)
|
|
|
|
add_libc_test(
|
|
clock_gettime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
clock_gettime_test.cpp
|
|
DEPENDS
|
|
libc.src.time.clock_gettime
|
|
)
|
|
|
|
add_libc_unittest(
|
|
difftime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
difftime_test.cpp
|
|
DEPENDS
|
|
libc.src.time.difftime
|
|
)
|
|
|
|
add_libc_unittest(
|
|
gettimeofday_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
gettimeofday_test.cpp
|
|
DEPENDS
|
|
libc.include.time
|
|
libc.src.time.gettimeofday
|
|
)
|
|
|
|
add_libc_unittest(
|
|
gmtime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
gmtime_test.cpp
|
|
HDRS
|
|
TmMatcher.h
|
|
DEPENDS
|
|
libc.src.time.gmtime
|
|
libc.src.__support.CPP.limits
|
|
)
|
|
|
|
add_libc_unittest(
|
|
gmtime_r_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
gmtime_r_test.cpp
|
|
HDRS
|
|
TmMatcher.h
|
|
DEPENDS
|
|
libc.src.time.gmtime_r
|
|
)
|
|
|
|
add_libc_unittest(
|
|
mktime_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
mktime_test.cpp
|
|
HDRS
|
|
TmHelper.h
|
|
TmMatcher.h
|
|
CXX_STANDARD
|
|
20
|
|
DEPENDS
|
|
libc.src.time.mktime
|
|
libc.src.__support.CPP.limits
|
|
)
|
|
|
|
add_libc_test(
|
|
nanosleep_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
nanosleep_test.cpp
|
|
DEPENDS
|
|
libc.include.time
|
|
libc.src.time.nanosleep
|
|
libc.src.errno.errno
|
|
)
|
|
|
|
add_libc_unittest(
|
|
time_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
time_test.cpp
|
|
DEPENDS
|
|
libc.src.time.time
|
|
libc.src.__support.time.clock_gettime
|
|
libc.src.errno.errno
|
|
)
|
|
|
|
add_libc_test(
|
|
timespec_get_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
timespec_get_test.cpp
|
|
DEPENDS
|
|
libc.src.time.timespec_get
|
|
)
|
|
|
|
add_libc_test(
|
|
clock_test
|
|
SUITE
|
|
libc_time_unittests
|
|
SRCS
|
|
clock_test.cpp
|
|
DEPENDS
|
|
libc.include.time
|
|
libc.src.time.clock
|
|
libc.src.errno.errno
|
|
)
|