aboutsummaryrefslogtreecommitdiff
path: root/test/py/tests/test_fs/fstest_defs.py
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2018-09-11 15:59:19 +0900
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:30 +0200
commitde8106c198b442f8363557006c13a7807d972552 (patch)
treefa512023916e3e7a1a90aec43a6bdfb8ddcbd199 /test/py/tests/test_fs/fstest_defs.py
parent9461fcce37720ec25d0f657f97a22d0d6a3d22fe (diff)
test/py: convert fs-test.sh to pytest
In this commit, the same set of test cases as in test/fs/fs-test.sh is provided using pytest framework. Actually, fs-test.sh provides three variants:"sb" (sb command), "nonfs" (fatxx and etc.) and "fs" (hostfs), and this patch currently supports only "nonfs" variant; So it is not a replacement of fs-test.sh for now. Simple usage: $ py.test test/py/tests/test_fs [<other options>] You may also specify filesystem types to be tested: $ py.test test/py/tests/test_fs --fs-type fat32 [<other options>] Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'test/py/tests/test_fs/fstest_defs.py')
-rw-r--r--test/py/tests/test_fs/fstest_defs.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/py/tests/test_fs/fstest_defs.py b/test/py/tests/test_fs/fstest_defs.py
new file mode 100644
index 0000000000..f26dd06cac
--- /dev/null
+++ b/test/py/tests/test_fs/fstest_defs.py
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0+
+
+# $SMALL_FILE is the name of the 1MB file in the file system image
+SMALL_FILE='1MB.file'
+
+# $BIG_FILE is the name of the 2.5GB file in the file system image
+BIG_FILE='2.5GB.file'
+
+ADDR=0x01000008
+LENGTH=0x00100000