
On Fri, Mar 19, 2021 at 11:14 AM Asherah Connor ashe@kivikakk.ee wrote:
A sandbox driver and test are added for the qfw uclass, and a test in QEMU added for qfw functionality to confirm it doesn't break in real world use.
Signed-off-by: Asherah Connor ashe@kivikakk.ee Reviewed-by: Simon Glass sjg@chromium.org
Changes in v7:
- Make the qfw tests agnostic to running against a real QEMU instance or in the sandbox.
- Remove CONFIG_CMD_QFW=y from sandbox_spl_defconfig, per trini's request.
configs/sandbox_spl_defconfig | 1 - drivers/misc/Makefile | 1 + drivers/misc/qfw_sandbox.c | 128 ++++++++++++++++++++++++++++++++++ test/dm/Makefile | 1 + test/dm/qfw.c | 42 +++++++++++ test/py/tests/test_qfw.py | 26 +++++++ 6 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 drivers/misc/qfw_sandbox.c create mode 100644 test/dm/qfw.c create mode 100644 test/py/tests/test_qfw.py
Reviewed-by: Bin Meng bmeng.cn@gmail.com