mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
key = "value1", "value2", "value3";
|
||||
@@ -0,0 +1 @@
|
||||
key = "value";
|
||||
2
tools/bootconfig/samples/exp-good-mixed-append.bconf
Normal file
2
tools/bootconfig/samples/exp-good-mixed-append.bconf
Normal file
@@ -0,0 +1,2 @@
|
||||
key = "foo", "bar";
|
||||
keyx.subkey = "value";
|
||||
2
tools/bootconfig/samples/exp-good-mixed-kv1.bconf
Normal file
2
tools/bootconfig/samples/exp-good-mixed-kv1.bconf
Normal file
@@ -0,0 +1,2 @@
|
||||
key = "value";
|
||||
key.subkey = "another-value";
|
||||
2
tools/bootconfig/samples/exp-good-mixed-kv2.bconf
Normal file
2
tools/bootconfig/samples/exp-good-mixed-kv2.bconf
Normal file
@@ -0,0 +1,2 @@
|
||||
key = "another-value";
|
||||
key.subkey = "value";
|
||||
5
tools/bootconfig/samples/exp-good-mixed-kv3.bconf
Normal file
5
tools/bootconfig/samples/exp-good-mixed-kv3.bconf
Normal file
@@ -0,0 +1,5 @@
|
||||
key = "value";
|
||||
key {
|
||||
subkey1;
|
||||
subkey2 = "foo";
|
||||
}
|
||||
2
tools/bootconfig/samples/exp-good-mixed-override.bconf
Normal file
2
tools/bootconfig/samples/exp-good-mixed-override.bconf
Normal file
@@ -0,0 +1,2 @@
|
||||
key = "value2";
|
||||
key.foo = "bar";
|
||||
4
tools/bootconfig/samples/exp-good-override.bconf
Normal file
4
tools/bootconfig/samples/exp-good-override.bconf
Normal file
@@ -0,0 +1,4 @@
|
||||
key {
|
||||
word = "2", "3";
|
||||
new.word = "new";
|
||||
}
|
||||
2
tools/bootconfig/samples/exp-good-printables.bconf
Normal file
2
tools/bootconfig/samples/exp-good-printables.bconf
Normal file
@@ -0,0 +1,2 @@
|
||||
key = "
|
||||
!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
||||
8
tools/bootconfig/samples/exp-good-simple.bconf
Normal file
8
tools/bootconfig/samples/exp-good-simple.bconf
Normal file
@@ -0,0 +1,8 @@
|
||||
key {
|
||||
word1 = "1";
|
||||
word2 = "2";
|
||||
word3 = "3";
|
||||
word4 = "4";
|
||||
word5 = "5";
|
||||
word6 = "6";
|
||||
}
|
||||
3
tools/bootconfig/samples/exp-good-single.bconf
Normal file
3
tools/bootconfig/samples/exp-good-single.bconf
Normal file
@@ -0,0 +1,3 @@
|
||||
key = "1";
|
||||
key2 = "2";
|
||||
key3 = "alpha", "beta";
|
||||
@@ -0,0 +1 @@
|
||||
key = "value";
|
||||
8
tools/bootconfig/samples/exp-good-tree.bconf
Normal file
8
tools/bootconfig/samples/exp-good-tree.bconf
Normal file
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user