2016-09-08 16:06:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# iterate over all fuzzed images and run 'btrfs-image'
|
|
|
|
|
2018-02-08 06:34:19 +00:00
|
|
|
source "$TEST_TOP/common"
|
2016-09-08 16:06:44 +00:00
|
|
|
|
|
|
|
check_prereq btrfs-image
|
|
|
|
|
2023-04-13 18:40:23 +00:00
|
|
|
setup_root_helper
|
|
|
|
|
2016-09-08 16:06:44 +00:00
|
|
|
# redefine the one provided by common
|
|
|
|
check_image() {
|
|
|
|
truncate -s0 target
|
2018-03-23 15:21:37 +00:00
|
|
|
run_mayfail "$TOP/btrfs-image" "$1" target
|
2016-09-08 16:06:44 +00:00
|
|
|
truncate -s0 target
|
|
|
|
}
|
|
|
|
|
2018-03-23 15:11:41 +00:00
|
|
|
check_all_images "$TEST_TOP/fuzz-tests/images"
|
2016-09-08 16:06:44 +00:00
|
|
|
|
|
|
|
rm -- target
|
|
|
|
|
|
|
|
exit 0
|