Files
Liu 75d26f05d0 test: move doc-viewer layout tests into the doc-viewer project
These layout tests need the generated global.css.h and the doc-viewer home-grid component, so they do not belong in the core lcui-tests binary. Move them to examples/doc-viewer/tests, keep their fixture with the tests, and generate the doc-viewer sources before running xmake test so a fresh checkout has global.css.h.
2026-11-19 01:19:59 +08:00

32 lines
801 B
C
Executable File

/*
* examples/doc-viewer/tests/main.c
*
* Copyright (c) 2026, Liu Chao <hello@lcui.dev> 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 <LCUI.h>
#include <ctest.h>
extern void test_demo_header_layout(void);
extern void test_gallery_layout(void);
static const ctest_suite_t suites[] = {
{ "demo header layout", test_demo_header_layout },
{ "gallery layout", test_gallery_layout },
{ NULL, NULL }
};
int main(int argc, char **argv)
{
logger_set_level(LOGGER_LEVEL_ERROR);
if (ctest_parse_args(argc, argv) != 0) {
return 1;
}
return ctest_run_suites(suites);
}