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:
Masami Hiramatsu (Google)
2026-02-05 09:46:35 +09:00
parent 1cadf2819b
commit 8c5d862fcb
14 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1 @@
key = "value1", "value2", "value3";

View File

@@ -0,0 +1 @@
key = "value";

View File

@@ -0,0 +1,2 @@
key = "foo", "bar";
keyx.subkey = "value";

View File

@@ -0,0 +1,2 @@
key = "value";
key.subkey = "another-value";

View File

@@ -0,0 +1,2 @@
key = "another-value";
key.subkey = "value";

View File

@@ -0,0 +1,5 @@
key = "value";
key {
subkey1;
subkey2 = "foo";
}

View File

@@ -0,0 +1,2 @@
key = "value2";
key.foo = "bar";

View File

@@ -0,0 +1,4 @@
key {
word = "2", "3";
new.word = "new";
}

View File

@@ -0,0 +1,2 @@
key = "
!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~";

View File

@@ -0,0 +1,8 @@
key {
word1 = "1";
word2 = "2";
word3 = "3";
word4 = "4";
word5 = "5";
word6 = "6";
}

View File

@@ -0,0 +1,3 @@
key = "1";
key2 = "2";
key3 = "alpha", "beta";

View File

@@ -0,0 +1 @@
key = "value";

View File

@@ -0,0 +1,8 @@
key {
word.tree.value = "0";
word2.tree.value = "1", "2";
}
other.tree {
value = "2";
value2 = "3";
}

View File

@@ -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