xref: /aosp_15_r20/external/ltp/lib/newlib_tests/test_kconfig.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2018 Cyril Hrubis <[email protected]>
4  */
5 
6 #include "tst_test.h"
7 #include "tst_kconfig.h"
8 
do_test(void)9 static void do_test(void)
10 {
11 	tst_res(TPASS, "Test passed!");
12 }
13 
14 static const char *kconfigs[] = {
15 	"CONFIG_MMU",
16 	"CONFIG_EXT4_FS=m",
17 	"CONFIG_PGTABLE_LEVELS=4",
18 	"CONFIG_MMU & CONFIG_EXT4_FS=m",
19 	"CONFIG_EXT4_FS=m | CONFIG_MMU",
20 	"CONFIG_DEFAULT_HOSTNAME=\"(none)\"",
21 	NULL
22 };
23 
24 static struct tst_test test = {
25 	.test_all = do_test,
26 	.needs_kconfigs = kconfigs,
27 };
28