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.sh15
1 files changed, 15 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..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