Whamcloud - gitweb
tests: add basic tests for dir_data feature
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 19:42:42 +0000 (13:42 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 29 May 2012 08:09:27 +0000 (02:09 -0600)
Signed-off-by: Pravin Shelar <pravin@clusterfs.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.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..7e80356
--- /dev/null
@@ -0,0 +1,18 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 2 creation time (Sat Jan 13 19:13:30 2018) invalid.
+Clear? yes
+
+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