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) 2020 Cyril Hrubis <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker *
5*49cdfc7eSAndroid Build Coastguard Worker * Invalid boolean expression test.
6*49cdfc7eSAndroid Build Coastguard Worker */
7*49cdfc7eSAndroid Build Coastguard Worker
8*49cdfc7eSAndroid Build Coastguard Worker #include "tst_test.h"
9*49cdfc7eSAndroid Build Coastguard Worker
do_test(void)10*49cdfc7eSAndroid Build Coastguard Worker static void do_test(void)
11*49cdfc7eSAndroid Build Coastguard Worker {
12*49cdfc7eSAndroid Build Coastguard Worker tst_res(TPASS, "Test passed!");
13*49cdfc7eSAndroid Build Coastguard Worker }
14*49cdfc7eSAndroid Build Coastguard Worker
15*49cdfc7eSAndroid Build Coastguard Worker static const char *kconfigs[] = {
16*49cdfc7eSAndroid Build Coastguard Worker "\"CONFIG_FOO=val\"",
17*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_a=1",
18*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_FOO=",
19*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_DEFAULT_HOSTNAME=\"(none",
20*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_DEFAULT_HOSTNAME=\"(none)\"a",
21*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_BROKEN=a\" | CONFIG_FOO",
22*49cdfc7eSAndroid Build Coastguard Worker "CONFIG_BROKEN=a=",
23*49cdfc7eSAndroid Build Coastguard Worker NULL
24*49cdfc7eSAndroid Build Coastguard Worker };
25*49cdfc7eSAndroid Build Coastguard Worker
26*49cdfc7eSAndroid Build Coastguard Worker static struct tst_test test = {
27*49cdfc7eSAndroid Build Coastguard Worker .test_all = do_test,
28*49cdfc7eSAndroid Build Coastguard Worker .needs_kconfigs = kconfigs,
29*49cdfc7eSAndroid Build Coastguard Worker };
30