Files
LCUI/lib/ctest/tests/main.c
Liu 27fd503d68 feat(ctest): add suite filter, list and CTEST_MAIN macro
Introduce ctest_suite_t, ctest_parse_args, ctest_run_suites and CTEST_MAIN macro to standardize test binary entry points. Support --grep / --grep= / --list / --interactive / --help. Add lib/ctest/tests/ for self-tests covering str converters and grep filter logic.
2026-05-23 18:53:08 +08:00

24 lines
519 B
C

/*
* lib/ctest/tests/main.c
*
* Copyright (c) 2026, Liu Chao <i@lc-soft.io> All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of LCUI, distributed under the MIT License found in the
* LICENSE.TXT file in the root directory of this source tree.
*/
#include <stdio.h>
extern void test_str_funcs(void);
extern void test_grep_funcs(void);
int main(void)
{
test_str_funcs();
test_grep_funcs();
printf("ctest-tests: all assertions passed\n");
return 0;
}