kunit: kunit_tool: Separate out config/build/exec/parse
authorDavid Gow <davidgow@google.com>
Fri, 1 May 2020 04:27:01 +0000 (21:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 11 May 2020 22:53:40 +0000 (16:53 -0600)
commit45ba7a893ad89114e773b3dc32f6431354c465d6
treee6bbd7aab2f2e9d491969fa7f1b5f4c82e4870f4
parent2ef96a5bb12be62ef75b5828c0aab838ebb29cb8
kunit: kunit_tool: Separate out config/build/exec/parse

Add new subcommands to kunit.py to allow stages of the existing 'run'
subcommand to be run independently:
- 'config': Verifies that .config is a subset of .kunitconfig
- 'build': Compiles a UML kernel for KUnit
- 'exec': Runs the kernel, and outputs the test results.
- 'parse': Parses test results from a file or stdin

The 'run' command continues to behave as before.

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py
tools/testing/kunit/kunit_tool_test.py