aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/sysfs_mock/class/mtd
diff options
context:
space:
mode:
authorDaniel Walter <dwalter@sigma-star.at>2016-08-31 10:09:37 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2016-11-17 11:36:56 +0100
commite947258f9795dbc3f4fee02de28913465675b693 (patch)
treede9095c3abb8ece82c194bc2443406e9605f5c87 /tests/unittests/sysfs_mock/class/mtd
parente7974ec2eae0f0142112028d8b7bd0af0c0c5ebb (diff)
Add sysfs tree for unittests
add mocked sysfs used by libmtd and libubi unittests Signed-off-by: Daniel Walter <dwalter@sigma-star.at>
Diffstat (limited to 'tests/unittests/sysfs_mock/class/mtd')
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/dev1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/erasesize2
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/flags1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/name1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/numeraseregions1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/oobsize1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/size1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/subpagesize1
-rw-r--r--tests/unittests/sysfs_mock/class/mtd/mtd0/writesize1
9 files changed, 10 insertions, 0 deletions
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/dev b/tests/unittests/sysfs_mock/class/mtd/mtd0/dev
new file mode 100644
index 0000000..05bd230
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/dev
@@ -0,0 +1 @@
+12:1
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/erasesize b/tests/unittests/sysfs_mock/class/mtd/mtd0/erasesize
new file mode 100644
index 0000000..8b5a50a
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/erasesize
@@ -0,0 +1,2 @@
+128
+
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/flags b/tests/unittests/sysfs_mock/class/mtd/mtd0/flags
new file mode 100644
index 0000000..27b7671
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/flags
@@ -0,0 +1 @@
+0x0000001
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/name b/tests/unittests/sysfs_mock/class/mtd/mtd0/name
new file mode 100644
index 0000000..0695219
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/name
@@ -0,0 +1 @@
+mtd0
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/numeraseregions b/tests/unittests/sysfs_mock/class/mtd/mtd0/numeraseregions
new file mode 100644
index 0000000..48082f7
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/numeraseregions
@@ -0,0 +1 @@
+12
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/oobsize b/tests/unittests/sysfs_mock/class/mtd/mtd0/oobsize
new file mode 100644
index 0000000..a949a93
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/oobsize
@@ -0,0 +1 @@
+128
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/size b/tests/unittests/sysfs_mock/class/mtd/mtd0/size
new file mode 100644
index 0000000..27f897b
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/size
@@ -0,0 +1 @@
+16777216
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/subpagesize b/tests/unittests/sysfs_mock/class/mtd/mtd0/subpagesize
new file mode 100644
index 0000000..900731f
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/subpagesize
@@ -0,0 +1 @@
+64
diff --git a/tests/unittests/sysfs_mock/class/mtd/mtd0/writesize b/tests/unittests/sysfs_mock/class/mtd/mtd0/writesize
new file mode 100644
index 0000000..a949a93
--- /dev/null
+++ b/tests/unittests/sysfs_mock/class/mtd/mtd0/writesize
@@ -0,0 +1 @@
+128