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.

bootconfig: Check the parsed output of the good examples

Check whether the parsed output of the good example configs are
the same as expected.

Link: https://lore.kernel.org/all/177025239529.14982.12913754615993262263.stgit@devnote2/

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

+44
+1
tools/bootconfig/samples/exp-good-array-space-comment.bconf
··· 1 + key = "value1", "value2", "value3";
+1
tools/bootconfig/samples/exp-good-comment-after-value.bconf
··· 1 + key = "value";
+2
tools/bootconfig/samples/exp-good-mixed-append.bconf
··· 1 + key = "foo", "bar"; 2 + keyx.subkey = "value";
+2
tools/bootconfig/samples/exp-good-mixed-kv1.bconf
··· 1 + key = "value"; 2 + key.subkey = "another-value";
+2
tools/bootconfig/samples/exp-good-mixed-kv2.bconf
··· 1 + key = "another-value"; 2 + key.subkey = "value";
+5
tools/bootconfig/samples/exp-good-mixed-kv3.bconf
··· 1 + key = "value"; 2 + key { 3 + subkey1; 4 + subkey2 = "foo"; 5 + }
+2
tools/bootconfig/samples/exp-good-mixed-override.bconf
··· 1 + key = "value2"; 2 + key.foo = "bar";
+4
tools/bootconfig/samples/exp-good-override.bconf
··· 1 + key { 2 + word = "2", "3"; 3 + new.word = "new"; 4 + }
+2
tools/bootconfig/samples/exp-good-printables.bconf
··· 1 + key = " 2 + !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
+8
tools/bootconfig/samples/exp-good-simple.bconf
··· 1 + key { 2 + word1 = "1"; 3 + word2 = "2"; 4 + word3 = "3"; 5 + word4 = "4"; 6 + word5 = "5"; 7 + word6 = "6"; 8 + }
+3
tools/bootconfig/samples/exp-good-single.bconf
··· 1 + key = "1"; 2 + key2 = "2"; 3 + key3 = "alpha", "beta";
+1
tools/bootconfig/samples/exp-good-space-after-value.bconf
··· 1 + key = "value";
+8
tools/bootconfig/samples/exp-good-tree.bconf
··· 1 + key { 2 + word.tree.value = "0"; 3 + word2.tree.value = "1", "2"; 4 + } 5 + other.tree { 6 + value = "2"; 7 + value2 = "3"; 8 + }
+3
tools/bootconfig/test-bootconfig.sh
··· 179 179 echo "=== expected success cases ===" 180 180 for i in samples/good-* ; do 181 181 xpass $BOOTCONF -a $i $INITRD 182 + x="samples/exp-"`basename $i` 183 + $BOOTCONF $i > $TEMPCONF 184 + xpass diff $x $TEMPCONF 182 185 done 183 186 184 187