Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/bootconfig: Support mixed value and subkey test cases

Update test case to support mixed value and subkey on a key.

Link: https://lkml.kernel.org/r/162262195568.264090.12431204030021242896.stgit@devnote2

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masami Hiramatsu and committed by
Steven Rostedt (VMware)
29e1c1ad e5efaeb8

+14 -6
tools/bootconfig/samples/bad-mixed-kv1.bconf tools/bootconfig/samples/good-mixed-kv1.bconf
tools/bootconfig/samples/bad-mixed-kv2.bconf tools/bootconfig/samples/good-mixed-kv2.bconf
-3
tools/bootconfig/samples/bad-override.bconf
··· 1 - key.subkey = value 2 - # We can not override pre-defined subkeys with value 3 - key := value
-3
tools/bootconfig/samples/bad-override2.bconf
··· 1 - key = value 2 - # We can not override pre-defined value with subkey 3 - key.subkey := value
+4
tools/bootconfig/samples/good-mixed-append.bconf
··· 1 + key = foo 2 + keyx.subkey = value 3 + key += bar 4 +
+6
tools/bootconfig/samples/good-mixed-kv3.bconf
··· 1 + # mixed key and subkeys with braces 2 + key = value 3 + key { 4 + subkey1 5 + subkey2 = foo 6 + }
+4
tools/bootconfig/samples/good-mixed-override.bconf
··· 1 + key.foo = bar 2 + key = value 3 + # mixed key value can be overridden 4 + key := value2