mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
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.
24 lines
519 B
C
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;
|
|
}
|