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