[U-Boot] [PATCH 0/3] Create python filesystem tests

Stefan Brüns stefan.bruens at rwth-aachen.de
Sat Nov 5 17:45:31 CET 2016


This is a first attempt to create filesystem tests in python. It is currently
targetting sandbox, although it should be possible to make it work with e.g.
the qemu based testruns.

First two patches are prep work, first patch is copied verbatim from a mail
from Stephen Warren.

The actual tests are in patch 3. CUrrently it is a subset of what can be tested
with the old shell script, most importantly no write tests.

The following tests are currently implemented:
1. Listing a directory and checking for a set of files
2. Verifying the size of a file
3. Verifying the md5sums of specified regions of a file
4. Reading the head of a file

3. and 4. have some overlap, but the latter will also read sparse file regions.

As the old test, some parts need root privileges to mount the image.

Stefan Brüns (3):
  test/py: expose config and log as session scoped fixture
  test/py: Allow to pass u_boot_log instead of console for run_and_log
  test/py: Create tests for ext4 and fat testing on sandbox

 test/py/conftest.py      |  26 +++++
 test/py/tests/test_fs.py | 298 +++++++++++++++++++++++++++++++++++++++++++++++
 test/py/u_boot_utils.py  |  10 +-
 3 files changed, 332 insertions(+), 2 deletions(-)
 create mode 100644 test/py/tests/test_fs.py

-- 
2.10.1



More information about the U-Boot mailing list