mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-29 00:42:45 +00:00
btrfs-progs: tests: 001-simple-unmounted: iterate over fuzzed images and run check
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b85c7b7694
commit
dfed5799db
20
tests/fuzz-tests/001-simple-unmounted/test.sh
Executable file
20
tests/fuzz-tests/001-simple-unmounted/test.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# iterate over all fuzzed images and run 'btrfs check'
|
||||
|
||||
source $TOP/tests/common
|
||||
|
||||
setup_root_helper
|
||||
check_prereq btrfs
|
||||
|
||||
# redefine the one provided by common
|
||||
check_image() {
|
||||
local image
|
||||
|
||||
image=$1
|
||||
run_mayfail $TOP/btrfs check "$image"
|
||||
}
|
||||
|
||||
check_all_images $TOP/tests/fuzz-tests/images
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user