summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-12-25 09:32:13 +0800
committerDavid Sterba <dsterba@suse.cz>2015-01-14 18:34:18 +0100
commita65701b88e2e56d56b1ea7ba7c48019ec7fbbe48 (patch)
treec2e9c40b42a2f72bbaf31aaf5e28c2bef14034db /tests
parentebe2f5cac36748eca2866bd78151c12d18d00bfc (diff)
btrfs-progs: Move bad root items test cases to its corresponding dir
Now 006-bad-root-items has two cases, one for default case, and one for skinny metadata case. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'tests')
-rw-r--r--tests/fsck-tests/006-bad-root-items/default_case.tar.xz (renamed from tests/fsck-tests/006-bad_root_items_fs.tar.xz)bin24980 -> 24980 bytes
-rw-r--r--tests/fsck-tests/006-bad-root-items/skinny_case.tar.xz (renamed from tests/fsck-tests/007-bad_root_items_fs_skinny.tar.xz)bin26520 -> 26520 bytes
-rwxr-xr-xtests/fsck-tests/006-bad-root-items/test.sh15
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/fsck-tests/006-bad_root_items_fs.tar.xz b/tests/fsck-tests/006-bad-root-items/default_case.tar.xz
index 125d8e7d..125d8e7d 100644
--- a/tests/fsck-tests/006-bad_root_items_fs.tar.xz
+++ b/tests/fsck-tests/006-bad-root-items/default_case.tar.xz
Binary files differ
diff --git a/tests/fsck-tests/007-bad_root_items_fs_skinny.tar.xz b/tests/fsck-tests/006-bad-root-items/skinny_case.tar.xz
index ed99dc4d..ed99dc4d 100644
--- a/tests/fsck-tests/007-bad_root_items_fs_skinny.tar.xz
+++ b/tests/fsck-tests/006-bad-root-items/skinny_case.tar.xz
Binary files differ
diff --git a/tests/fsck-tests/006-bad-root-items/test.sh b/tests/fsck-tests/006-bad-root-items/test.sh
new file mode 100755
index 00000000..2c0e1c63
--- /dev/null
+++ b/tests/fsck-tests/006-bad-root-items/test.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+source $top/tests/common
+
+echo "extracting image default_case.tar.xz" >> $RESULT
+tar xJf default_case.tar.xz || \
+ _fail "failed to extract default_case.tar.xz"
+check_image test.img
+
+echo "extracting image skinny_case.tar.xz" >> $RESULT
+tar xJf skinny_case.tar.xz || \
+ _fail "failed to extract skinny_case.tar.xz"
+check_image test.img
+
+rm test.img