diff options
author | Ricardo Quesada <ricardoq@google.com> | 2021-09-22 20:44:01 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-10-25 08:08:41 +0000 |
commit | e1f392ea34404544b0a6f75d14d000cd74efc53d (patch) | |
tree | 0f2ae0ae8a6d57f702839e58142a744347b663a6 /util/cbfstool/tests/README.md | |
parent | 6c8008283cc54d324bde5be3d89e4234e858349b (diff) |
elogtool: add pytest for elogtool
This CL adds a python test for elogtool.
It tests the basic functionality of elogtool: list, clear and add.
A future CL will include more complex tests.
BUG=b:172210863
TEST=pytest elogtool_test.py
Change-Id: If1241ad070d1c690c84f5ca61c0487ba27c2a287
Signed-off-by: Ricardo Quesada <ricardoq@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57869
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/cbfstool/tests/README.md')
-rw-r--r-- | util/cbfstool/tests/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/util/cbfstool/tests/README.md b/util/cbfstool/tests/README.md new file mode 100644 index 0000000000..8ba69744cd --- /dev/null +++ b/util/cbfstool/tests/README.md @@ -0,0 +1,26 @@ +# CBFSTool tests + +To run the tests do `pytest name_of_the_file.py`. E.g: + +```shell +$ pytest elogtool_test.py +``` + +## Dependencies + +### Pytest + +Requires `pytest`. To install it do: + +```shell +$ pip install --user pytest +``` + +### Binaries + +Make sure that you have compiled the cbfstool binaries before running the test. e.g: + +```shell +$ cd $COREBOOT_SRC/util/cbfstool +$ make +``` |