mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
dm: Add tests for the sandbox host driver
Add some unit tests for this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -7,6 +7,7 @@ import os.path
|
||||
import pytest
|
||||
|
||||
import u_boot_utils
|
||||
from tests import fs_helper
|
||||
|
||||
def mkdir_cond(dirname):
|
||||
"""Create a directory if it doesn't already exist
|
||||
@@ -123,6 +124,11 @@ def test_ut_dm_init(u_boot_console):
|
||||
u_boot_utils.run_and_log(
|
||||
u_boot_console, f'sfdisk {fn}', stdin=b'type=83')
|
||||
|
||||
fs_helper.mk_fs(u_boot_console.config, 'ext2', 0x200000, '2MB',
|
||||
use_src_dir=True)
|
||||
fs_helper.mk_fs(u_boot_console.config, 'fat32', 0x100000, '1MB',
|
||||
use_src_dir=True)
|
||||
|
||||
@pytest.mark.buildconfigspec('cmd_bootflow')
|
||||
def test_ut_dm_init_bootstd(u_boot_console):
|
||||
"""Initialise data for bootflow tests"""
|
||||
|
Reference in New Issue
Block a user