mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00

We know this is U-Boot so the prefix serves no purpose other than to make things longer and harder to read. Drop it and rename the files. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # test_android / test_dfu
20 lines
558 B
Python
20 lines
558 B
Python
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Tests for OP-TEE RPMB read/write support
|
|
|
|
"""
|
|
This tests optee_rpmb cmd in U-Boot
|
|
"""
|
|
|
|
import pytest
|
|
import utils as util
|
|
|
|
@pytest.mark.buildconfigspec('cmd_optee_rpmb')
|
|
def test_optee_rpmb_read_write(ubman):
|
|
"""Test OP-TEE RPMB cmd read/write
|
|
"""
|
|
response = ubman.run_command('optee_rpmb write_pvalue test_variable test_value')
|
|
assert response == 'Wrote 11 bytes'
|
|
|
|
response = ubman.run_command('optee_rpmb read_pvalue test_variable 11')
|
|
assert response == 'Read 11 bytes, value = test_value'
|