Whamcloud - gitweb
tests: add basic tests for dirdata feature
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 18 May 2018 04:52:58 +0000 (14:52 +1000)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Dec 2022 22:29:58 +0000 (15:29 -0700)
Signed-off-by: Pravin Shelar <pravin@clusterfs.org>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
tests/f_dirdata/expect.1 [new file with mode: 0644]
tests/f_dirdata/expect.2 [new file with mode: 0644]
tests/f_dirdata/image.gz [new file with mode: 0644]
tests/f_dirdata/name [new file with mode: 0644]

diff --git a/tests/f_dirdata/expect.1 b/tests/f_dirdata/expect.1
new file mode 100644 (file)
index 0000000..17e2432
--- /dev/null
@@ -0,0 +1,15 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Entry 'foobar2' in /ROOT/dir1 (439) dirdata length set incorrectly.
+Clear? yes
+
+Entry 'foobar1' in /ROOT/dir1 (439) dirdata length set incorrectly.
+Clear? yes
+
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 543/5000 files (0.9% non-contiguous), 707/5000 blocks
+Exit status is 1
diff --git a/tests/f_dirdata/expect.2 b/tests/f_dirdata/expect.2
new file mode 100644 (file)
index 0000000..84cce85
--- /dev/null
@@ -0,0 +1,7 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+test_filesys: 543/5000 files (0.9% non-contiguous), 707/5000 blocks
+Exit status is 0
diff --git a/tests/f_dirdata/image.gz b/tests/f_dirdata/image.gz
new file mode 100644 (file)
index 0000000..ccd900e
Binary files /dev/null and b/tests/f_dirdata/image.gz differ
diff --git a/tests/f_dirdata/name b/tests/f_dirdata/name
new file mode 100644 (file)
index 0000000..5abb939
--- /dev/null
@@ -0,0 +1 @@
+corrupted dirdata length