mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
1be82afa80
Use proper project name in comments, Kconfig, readmes. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/0dbdf0432405c1c38ffca55703b6737a48219e79.1684307818.git.michal.simek@amd.com
27 lines
638 B
Python
27 lines
638 B
Python
# 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
|