]> git.baikalelectronics.ru Git - kernel.git/commit
bootconfig/tracing/ktest: Add ktest examples of testing bootconfig
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 18 Jun 2021 15:26:47 +0000 (11:26 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 24 Jun 2021 19:34:33 +0000 (15:34 -0400)
commit9b82d67bfc22a9e8811bcb30b1e36e55027a98e7
treedaf94b7bd165299f76fd76ed1e1cddc7b845b951
parent868a73212ee527e75dc39b01d6461301d36aac9b
bootconfig/tracing/ktest: Add ktest examples of testing bootconfig

bootconfig is a new feature that appends scripts onto the initrd, and the
kernel executes the scripts as an extended kernel command line.

Need to add tests to test that the happened. To test the bootconfig
properly, the initrd needs to be updated and the kernel rebooted. ktest is
the perfect solution to perform these tests.

Add a example bootconfig.conf in the tools/testing/ktest/examples/include
and example bootconfig scripts in tools/testing/ktest/examples/bootconfig
and also include verifier scripts that ktest will install on the target
and run to make sure that the bootconfig options in the scripts took place
after the target rebooted with the new initrd update.

Link: https://lkml.kernel.org/r/20210618112647.6a81dec5@oasis.local.home
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/examples/bootconfigs/boottrace.bconf [new file with mode: 0644]
tools/testing/ktest/examples/bootconfigs/config-bootconfig [new file with mode: 0644]
tools/testing/ktest/examples/bootconfigs/functiongraph.bconf [new file with mode: 0644]
tools/testing/ktest/examples/bootconfigs/tracing.bconf [new file with mode: 0644]
tools/testing/ktest/examples/bootconfigs/verify-boottrace.sh [new file with mode: 0755]
tools/testing/ktest/examples/bootconfigs/verify-functiongraph.sh [new file with mode: 0755]
tools/testing/ktest/examples/bootconfigs/verify-tracing.sh [new file with mode: 0755]
tools/testing/ktest/examples/include/bootconfig.conf [new file with mode: 0644]
tools/testing/ktest/examples/kvm.conf