History log of /u-boot/test/py/tests/fs_helper.py
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# c667b26b 15-Nov-2023 Christian Taedcke <christian.taedcke@weidmueller.com>

test: Add size granularity parameter to mk_fs

Without this commit it is only possible to create filesystem images
with a size granularity of 1MB.
This commit adds the option to create file systems with different
sizes, e.g 8.5MB.

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>

# 764b4118 15-Nov-2023 Christian Taedcke <christian.taedcke@weidmueller.com>

test: Add support to create a fat12 fs

This enables to implement tests for fat12 filesystem.

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>

# 00613bc1 24-Aug-2023 Simon Glass <sjg@chromium.org>

test: Move 1MB.fat32.img and 2MB.ext2.img

These are currently created in the source directory, which is not ideal.
Move them to the persistent-data directory instead. Update the test so
skip validating the filename, since it now includes a full path.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 499503e1 29-Oct-2022 Simon Glass <sjg@chromium.org>

dm: Add tests for the sandbox host driver

Add some unit tests for this.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 7cbb5732 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Correct pylint warnings in fs_helper

Tidy this up so that pylint is happy. Use hex for the 1MB size and make
sure it is not a floating-point value.

Add a little main program to allow the code to be tried out, since at
present is only called from a long-running test.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 4349ba59 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Split out mk_fs function into a helper

This function is useful for other tests. Move it into common code.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 00613bc1 24-Aug-2023 Simon Glass <sjg@chromium.org>

test: Move 1MB.fat32.img and 2MB.ext2.img

These are currently created in the source directory, which is not ideal.
Move them to the persistent-data directory instead. Update the test so
skip validating the filename, since it now includes a full path.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 499503e1 29-Oct-2022 Simon Glass <sjg@chromium.org>

dm: Add tests for the sandbox host driver

Add some unit tests for this.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 7cbb5732 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Correct pylint warnings in fs_helper

Tidy this up so that pylint is happy. Use hex for the 1MB size and make
sure it is not a floating-point value.

Add a little main program to allow the code to be tried out, since at
present is only called from a long-running test.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 4349ba59 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Split out mk_fs function into a helper

This function is useful for other tests. Move it into common code.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 499503e1 29-Oct-2022 Simon Glass <sjg@chromium.org>

dm: Add tests for the sandbox host driver

Add some unit tests for this.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 7cbb5732 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Correct pylint warnings in fs_helper

Tidy this up so that pylint is happy. Use hex for the 1MB size and make
sure it is not a floating-point value.

Add a little main program to allow the code to be tried out, since at
present is only called from a long-running test.

Signed-off-by: Simon Glass <sjg@chromium.org>

# 4349ba59 29-Oct-2022 Simon Glass <sjg@chromium.org>

test: Split out mk_fs function into a helper

This function is useful for other tests. Move it into common code.

Signed-off-by: Simon Glass <sjg@chromium.org>