Atlas - Kdepcopy
Home / ext / kconfiglib / tests Lines: 1 | Size: 1797 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# We verify that the properties below end up in definition order 2 3config MULTIDEF 4 bool 5 default A 6 default B 7 select AA 8 imply AA 9 10if FOO 11 12config MULTIDEF 13 default C 14 default D 15 select BB 16 imply BB 17 18if BAR 19 20config MULTIDEF 21 default E 22 default F 23 select CC 24 imply CC 25 26menu "menu" 27 28config MULTIDEF 29 default G 30 default H 31 select DD 32 imply DD 33 34config MULTIDEF 35 default I 36 default J 37 select EE 38 imply EE 39 40endmenu 41 42config MULTIDEF 43 default K 44 default L 45 select FF 46 imply FF 47 48config MULTIDEF 49 default M 50 default N 51 select GG 52 imply GG 53 54endif 55 56config MULTIDEF 57 default O 58 default P 59 select HH 60 select II 61 imply HH 62 imply II 63 64endif 65 66config MULTIDEF 67 default Q 68 default R 69 select JJ 70 imply JJ 71 72 73# Same test with choice symbols involved 74 75config MULTIDEF_CHOICE 76 bool 77 select A 78 79choice 80 bool "choice" 81 82config MULTIDEF_CHOICE 83 bool "multidef choice" 84 select B 85 86endchoice 87 88config MULTIDEF_CHOICE 89 bool 90 select C 91 92 93# Same test with ranges involved 94 95config MULTIDEF_RANGE 96 int 97 range A _ 98 99menu "menu" 100 101config MULTIDEF_RANGE 102 int 103 range B _ 104 105if FOO 106 107config MULTIDEF_RANGE 108 int 109 range C _ 110 111endif 112 113config MULTIDEF_RANGE 114 int 115 range D _ 116 117endmenu 118 119config MULTIDEF_RANGE 120 int 121 range E _ 122 123config MULTIDEF_RANGE 124 int 125 range F _ 126 127 128# Same test for a choice 129 130choice MULTICHOICE 131 bool "choice" 132 default A 133 134config A 135 bool "A" 136 137config B 138 bool "B" 139 140config C 141 bool "C" 142 143config D 144 bool "C" 145 146config E 147 bool "C" 148 149endchoice 150 151if FOO 152 153choice MULTICHOICE 154 default B 155endchoice 156 157menu "menu" 158 159choice MULTICHOICE 160 default C 161endchoice 162 163endmenu 164 165choice MULTICHOICE 166 default D 167endchoice 168 169endif 170 171choice MULTICHOICE 172 default E 173endchoice 174[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.