summaryrefslogtreecommitdiff
path: root/test/py/tests/test_scp03.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-03-15 08:41:14 -0400
committerTom Rini <trini@konsulko.com>2021-03-15 08:41:14 -0400
commit1876b390f31afca15de334e499aa071b0bf64a44 (patch)
treeb22356b605c5881781ab4ea88743054558753149 /test/py/tests/test_scp03.py
parentc57ec2c2bab00c02a457ca70624c1333c60c2ec0 (diff)
parent7f047b4f5b4c86b53dbdd002322dcbf007f80623 (diff)
Merge branch '2021-03-12-assorted-improvements' into next
- More log enhancements - A few warning fixes in some cases - Secure Channel Protocol 03 (SCP03) support for TEEs
Diffstat (limited to 'test/py/tests/test_scp03.py')
-rw-r--r--test/py/tests/test_scp03.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/py/tests/test_scp03.py b/test/py/tests/test_scp03.py
new file mode 100644
index 00000000000..1f689252ddf
--- /dev/null
+++ b/test/py/tests/test_scp03.py
@@ -0,0 +1,27 @@
+# Copyright (c) 2021 Foundries.io Ltd
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+# SCP03 command test
+
+"""
+This tests SCP03 command in U-boot.
+
+For additional details check doc/usage/scp03.rst
+"""
+
+import pytest
+import u_boot_utils as util
+
+@pytest.mark.buildconfigspec('cmd_scp03')
+def test_scp03(u_boot_console):
+ """Enable and provision keys with SCP03
+ """
+
+ success_str1 = "SCP03 is enabled"
+ success_str2 = "SCP03 is provisioned"
+
+ response = u_boot_console.run_command('scp03 enable')
+ assert success_str1 in response
+ response = u_boot_console.run_command('scp03 provision')
+ assert success_str2 in response