From: Asherah Connor <ashe@kivikakk.ee>
To: u-boot@lists.denx.de
Subject: [PATCH v3 4/4] qemu: add sandbox driver and tests
Date: Tue, 23 Feb 2021 12:26:12 +0000 [thread overview]
Message-ID: <20210223122612.vyidcdmflhmuhqmk@talia.n4wrvuuuhszuhem3na2pm5saea.px.internal.cloudapp.net> (raw)
In-Reply-To: <20210223114329.16729-5-ashe@kivikakk.ee>
On 21/02/23 10:02:p, Asherah Connor wrote:
> We minimally exercise the sandbox driver.
It looks like the test in QEMU is pretty trivial. I'll include it in
the next series version, but here's what it looks like. New tests have
been tested as passing against qemu_arm, qemu_arm64, qemu-x86, and
qemu-x86_64. :)
Best,
Asherah
--8<--
Subject: [PATCH] test: qemu: add simple test for cmd_qfw
Signed-off-by: Asherah Connor <ashe@kivikakk.ee>
---
test/py/tests/test_qfw.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 test/py/tests/test_qfw.py
diff --git a/test/py/tests/test_qfw.py b/test/py/tests/test_qfw.py
new file mode 100644
index 0000000000..a2631a0fa6
--- /dev/null
+++ b/test/py/tests/test_qfw.py
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (c) 2021, Asherah Connor <ashe@kivikakk.ee>
+
+# Test qfw command implementation
+
+import pytest
+
+ at pytest.mark.buildconfigspec('cmd_qfw')
+def test_qfw_cpus(u_boot_console):
+ "Test QEMU firmware config reports the CPU count correctly."
+
+ output = u_boot_console.run_command('qfw cpus')
+ assert '1 cpu(s) online' in output
+
+ at pytest.mark.buildconfigspec('cmd_qfw')
+def test_qfw_list(u_boot_console):
+ "Test QEMU firmware config lists devices."
+
+ output = u_boot_console.run_command('qfw list')
+ assert 'bootorder' in output
+ assert 'etc/table-loader' in output
--
2.20.1
next prev parent reply other threads:[~2021-02-23 12:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 11:43 [PATCH v3 0/4] Move qfw to DM, add Arm support Asherah Connor
2021-02-23 11:43 ` [PATCH v3 1/4] arm: x86: qemu: move qfw to DM, include " Asherah Connor
2021-02-23 12:59 ` Heinrich Schuchardt
2021-02-23 14:53 ` Tom Rini
2021-02-23 15:54 ` Heinrich Schuchardt
2021-02-23 16:03 ` Tom Rini
2021-02-23 16:15 ` Heinrich Schuchardt
2021-02-23 16:33 ` Tom Rini
2021-02-23 23:54 ` Asherah Connor
2021-02-23 23:58 ` Tom Rini
2021-02-24 0:12 ` Asherah Connor
2021-02-24 0:22 ` Asherah Connor
2021-02-23 11:43 ` [PATCH v3 2/4] arm: x86: qemu: add UCLASS_QFW, split driver into _pio and _mmio Asherah Connor
2021-02-23 15:58 ` Simon Glass
2021-02-23 11:43 ` [PATCH v3 3/4] arm: x86: qemu: unify qfw driver functions as qfw_ Asherah Connor
2021-02-23 11:43 ` [PATCH v3 4/4] qemu: add sandbox driver and tests Asherah Connor
2021-02-23 12:26 ` Asherah Connor [this message]
2021-02-23 15:58 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210223122612.vyidcdmflhmuhqmk@talia.n4wrvuuuhszuhem3na2pm5saea.px.internal.cloudapp.net \
--to=ashe@kivikakk.ee \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.