Files
Liu 2e58a3936d refactor(ctest): implement timing without yutil
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.
2026-11-19 01:20:07 +08:00

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"})