From: Andreas Dilger Date: Fri, 13 Apr 2012 19:42:42 +0000 (-0600) Subject: tests: add basic tests for dirdata feature X-Git-Tag: v1.42.13.wc6~34 X-Git-Url: https://git.whamcloud.com/tools/e2fsprogs.git/?a=commitdiff_plain;h=d17ee0e7e0c4df1566e3c9f4a6d4ba4e029793ca;p=tools%2Fe2fsprogs.git tests: add basic tests for dirdata feature Signed-off-by: Pravin Shelar Signed-off-by: Andreas Dilger --- diff --git a/tests/f_dirdata/expect.1 b/tests/f_dirdata/expect.1 new file mode 100644 index 0000000..7e80356 --- /dev/null +++ b/tests/f_dirdata/expect.1 @@ -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 index 0000000..84cce85 --- /dev/null +++ b/tests/f_dirdata/expect.2 @@ -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 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 index 0000000..5abb939 --- /dev/null +++ b/tests/f_dirdata/name @@ -0,0 +1 @@ +corrupted dirdata length