btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / fuzz-tests / 009-simple-zero-log / 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 zero-log "$image".scratch
15         rm -- "$image".scratch
16 }
17
18 check_all_images $TEST_TOP/fuzz-tests/images
19
20 exit 0