Re: [PATCH v4 4/5] test: qemu: add simple test for cmd_qfw

2021-02-25 Thread Simon Glass
On Tue, 23 Feb 2021 at 22:24, Asherah Connor  wrote:
>
> Signed-off-by: Asherah Connor 
> ---
>
> (no changes since v1)
>
>  test/py/tests/test_qfw.py | 21 +
>  1 file changed, 21 insertions(+)
>  create mode 100644 test/py/tests/test_qfw.py

Reviewed-by: Simon Glass 


[PATCH v4 4/5] test: qemu: add simple test for cmd_qfw

2021-02-23 Thread Asherah Connor
Signed-off-by: Asherah Connor 
---

(no changes since v1)

 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 00..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 
+
+# Test qfw command implementation
+
+import pytest
+
+@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
+
+@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