summaryrefslogtreecommitdiff
path: root/tests/fsck-tests/006-bad-root-items/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fsck-tests/006-bad-root-items/test.sh')
-rwxr-xr-xtests/fsck-tests/006-bad-root-items/test.sh17
1 files changed, 17 insertions, 0 deletions
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..84332348
--- /dev/null
+++ b/tests/fsck-tests/006-bad-root-items/test.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+source $TOP/tests/common
+
+check_prereq btrfs
+
+echo "extracting image default_case.tar.xz" >> $RESULTS
+tar --no-same-owner -xJf default_case.tar.xz || \
+ _fail "failed to extract default_case.tar.xz"
+check_image test.img
+
+echo "extracting image skinny_case.tar.xz" >> $RESULTS
+tar --no-same-owner -xJf skinny_case.tar.xz || \
+ _fail "failed to extract skinny_case.tar.xz"
+check_image test.img
+
+rm test.img