[U-Boot] [RFC 0/3] test/py: add filesystem test scripts

AKASHI Takahiro takahiro.akashi at linaro.org
Thu Aug 23 07:25:19 UTC 2018


This patch series is an attempt to add tests scripts for filesystem
functionality to U-boot pytest suite.

Currently, we have a bit old-fashioned shell-script, fs-test.sh,
under test/fs for this purpose, which is obviously not an integrated
part of the suite.

So my aim here is:
* first, convert fs-test.sh to python script using pytest
* then add more test cases for exntensive test coverage,
  including added functions to be introduced by my patch set,
  "fs: fat: extend FAT write operations"[1]

The current code is a bit rough-edged yet and any comments or
feedbacks are very much welcomed.

The code itself was tested on v2018.09-rc with my patch set above.

[1] https://lists.denx.de/pipermail/u-boot/2018-July/335415.html

Thanks,
-Takahiro AKASHI

AKASHI Takahiro (3):
  test/py: convert fs-test.sh to pytest
  test/py: fs: add extended write operation test
  test/py: fs: add fstest/mkdir test

 test/py/tests/test_fs/conftest.py    | 289 +++++++++++++++++++++++++++
 test/py/tests/test_fs/fstest_defs.py |  13 ++
 test/py/tests/test_fs/test_basic.py  | 246 +++++++++++++++++++++++
 test/py/tests/test_fs/test_ext.py    | 197 ++++++++++++++++++
 test/py/tests/test_fs/test_mkdir.py  |  77 +++++++
 5 files changed, 822 insertions(+)
 create mode 100644 test/py/tests/test_fs/conftest.py
 create mode 100644 test/py/tests/test_fs/fstest_defs.py
 create mode 100644 test/py/tests/test_fs/test_basic.py
 create mode 100644 test/py/tests/test_fs/test_ext.py
 create mode 100644 test/py/tests/test_fs/test_mkdir.py

-- 
2.18.0



More information about the U-Boot mailing list