mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
ctest only used y_gettime() for the elapsed time report, which pulled the yutil static library and its private dependency ordering into every test target. Replace it with a local monotonic clock (clock_gettime on POSIX, GetTickCount on Windows) and drop the yutil dependency from ctest and ctest-tests.
10 lines
262 B
Lua
10 lines
262 B
Lua
target("ctest-tests")
|
|
set_default(false)
|
|
set_kind("binary")
|
|
set_group("tests")
|
|
set_rundir(".")
|
|
add_files("test_str.c", "test_grep.c", "main.c")
|
|
add_deps("ctest")
|
|
add_rules("tests.runnable")
|
|
add_tests("default", {group = "tests"})
|