198f88e2c1019eb8b5a82f0aeab368f22a213dd7
[platform/upstream/btrfs-progs.git] / tests / fuzz-tests / 008-simple-chunk-recover / test.sh
1 #!/bin/bash
2
3 source "$TEST_TOP/common"
4
5 setup_root_helper
6 check_prereq btrfs
7
8 # redefine the one provided by common
9 check_image() {
10         local image
11
12         image=$1
13         run_check cp "$image" "$image".scratch
14         run_mayfail $TOP/btrfs rescue chunk-recover -y -v "$image".scratch
15         rm -- "$image".scratch
16 }
17
18 check_all_images $TEST_TOP/fuzz-tests/images
19
20 exit 0