From 48b8aaf34df71278724a462517db0cf27d19f173 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 14 Jul 2016 15:45:50 +0200 Subject: [PATCH] test/py: Add simple dm commands run without checking Just to make sure that dm commands can operate. This was problem on Microblaze in past. Signed-off-by: Michal Simek --- test/py/tests/test_dm.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/py/tests/test_dm.py diff --git a/test/py/tests/test_dm.py b/test/py/tests/test_dm.py new file mode 100644 index 0000000000..ef397c632a --- /dev/null +++ b/test/py/tests/test_dm.py @@ -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")