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