]>
Commit | Line | Data |
---|---|---|
7f047b4f IO |
1 | # Copyright (c) 2021 Foundries.io Ltd |
2 | # | |
3 | # SPDX-License-Identifier: GPL-2.0+ | |
4 | # | |
5 | # SCP03 command test | |
6 | ||
7 | """ | |
1be82afa | 8 | This tests SCP03 command in U-Boot. |
7f047b4f IO |
9 | |
10 | For additional details check doc/usage/scp03.rst | |
11 | """ | |
12 | ||
13 | import pytest | |
14 | import u_boot_utils as util | |
15 | ||
16 | @pytest.mark.buildconfigspec('cmd_scp03') | |
17 | def test_scp03(u_boot_console): | |
18 | """Enable and provision keys with SCP03 | |
19 | """ | |
20 | ||
21 | success_str1 = "SCP03 is enabled" | |
22 | success_str2 = "SCP03 is provisioned" | |
23 | ||
24 | response = u_boot_console.run_command('scp03 enable') | |
25 | assert success_str1 in response | |
26 | response = u_boot_console.run_command('scp03 provision') | |
27 | assert success_str2 in response |