summaryrefslogtreecommitdiff
path: root/tests/fuzz-tests/007-simple-super-recover/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz-tests/007-simple-super-recover/test.sh')
-rwxr-xr-xtests/fuzz-tests/007-simple-super-recover/test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fuzz-tests/007-simple-super-recover/test.sh b/tests/fuzz-tests/007-simple-super-recover/test.sh
new file mode 100755
index 00000000..885cb352
--- /dev/null
+++ b/tests/fuzz-tests/007-simple-super-recover/test.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+source $TOP/tests/common
+
+setup_root_helper
+check_prereq btrfs
+
+# redefine the one provided by common
+check_image() {
+ local image
+
+ image=$1
+ run_check cp "$image" "$image".scratch
+ run_mayfail $TOP/btrfs rescue super-recover -y -v "$image".scratch
+ rm -- "$image".scratch
+}
+
+check_all_images $TOP/tests/fuzz-tests/images
+
+exit 0