]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test/py: Add simple dm commands run without checking
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Jul 2016 13:45:50 +0000 (15:45 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 15 Jul 2016 07:04:59 +0000 (09:04 +0200)
Just to make sure that dm commands can operate.
This was problem on Microblaze in past.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
test/py/tests/test_dm.py [new file with mode: 0644]

diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py
new file mode 100644 (file)
index 0000000..ef397c6
--- /dev/null
@@ -0,0 +1,17 @@
+# Copyright (c) 2016, Xilinx Inc. Michal Simek
+#
+# SPDX-License-Identifier: GPL-2.0
+
+import pytest
+
+@pytest.mark.buildconfigspec("cmd_dm")
+def test_dm_tree(u_boot_console):
+    response = u_boot_console.run_command("dm tree")
+
+@pytest.mark.buildconfigspec("cmd_dm")
+def test_dm_uclass(u_boot_console):
+    response = u_boot_console.run_command("dm uclass")
+
+@pytest.mark.buildconfigspec("cmd_dm")
+def test_dm_devres(u_boot_console):
+    response = u_boot_console.run_command("dm devres")