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>master
parent
1cadf2819b
commit
8c5d862fcb
|
|
@ -0,0 +1 @@
|
|||
key = "value1", "value2", "value3";
|
||||
|
|
@ -0,0 +1 @@
|
|||
key = "value";
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
key = "foo", "bar";
|
||||
keyx.subkey = "value";
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
key = "value";
|
||||
key.subkey = "another-value";
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
key = "another-value";
|
||||
key.subkey = "value";
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
key = "value";
|
||||
key {
|
||||
subkey1;
|
||||
subkey2 = "foo";
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
key = "value2";
|
||||
key.foo = "bar";
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
key {
|
||||
word = "2", "3";
|
||||
new.word = "new";
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
key = "
|
||||
!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
key {
|
||||
word1 = "1";
|
||||
word2 = "2";
|
||||
word3 = "3";
|
||||
word4 = "4";
|
||||
word5 = "5";
|
||||
word6 = "6";
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
key = "1";
|
||||
key2 = "2";
|
||||
key3 = "alpha", "beta";
|
||||
|
|
@ -0,0 +1 @@
|
|||
key = "value";
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
key {
|
||||
word.tree.value = "0";
|
||||
word2.tree.value = "1", "2";
|
||||
}
|
||||
other.tree {
|
||||
value = "2";
|
||||
value2 = "3";
|
||||
}
|
||||
|
|
@ -179,6 +179,9 @@ done
|
|||
echo "=== expected success cases ==="
|
||||
for i in samples/good-* ; do
|
||||
xpass $BOOTCONF -a $i $INITRD
|
||||
x="samples/exp-"`basename $i`
|
||||
$BOOTCONF $i > $TEMPCONF
|
||||
xpass diff $x $TEMPCONF
|
||||
done
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue