forked from Mirrors/btrfs-progs
btrfs-progs: tests: add shell quoting to fuzz test scripts
Signed-off-by: David Sterba <dsterba@suse.com>master
parent
a7e56ef21b
commit
a1e21ec5a8
|
@ -12,9 +12,9 @@ check_image() {
|
|||
local image
|
||||
|
||||
image=$1
|
||||
run_mayfail $TOP/btrfs check "$image"
|
||||
run_mayfail "$TOP/btrfs" check "$image"
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -13,11 +13,11 @@ check_image() {
|
|||
|
||||
image=$1
|
||||
truncate -s0 target
|
||||
run_mayfail $TOP/btrfs-image "$image" target
|
||||
run_mayfail "$TOP/btrfs-image" "$image" target
|
||||
truncate -s0 target
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
rm -- target
|
||||
|
||||
|
|
|
@ -21,6 +21,6 @@ check_image() {
|
|||
run_mayfail $TOP/btrfs check --repair "$image"
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -10,9 +10,9 @@ check_image() {
|
|||
local image
|
||||
|
||||
image=$1
|
||||
run_mayfail $TOP/btrfs inspect-internal dump-tree "$image"
|
||||
run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$image"
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -10,10 +10,10 @@ check_image() {
|
|||
local image
|
||||
|
||||
image=$1
|
||||
run_mayfail $TOP/btrfs inspect-internal dump-super "$image"
|
||||
run_mayfail $TOP/btrfs inspect-internal dump-super -Ffa "$image"
|
||||
run_mayfail "$TOP/btrfs" inspect-internal dump-super "$image"
|
||||
run_mayfail "$TOP/btrfs" inspect-internal dump-super -Ffa "$image"
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -10,9 +10,9 @@ check_image() {
|
|||
local image
|
||||
|
||||
image=$1
|
||||
run_mayfail $TOP/btrfs inspect-internal tree-stats "$image"
|
||||
run_mayfail "$TOP/btrfs" inspect-internal tree-stats "$image"
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -11,10 +11,10 @@ check_image() {
|
|||
|
||||
image=$1
|
||||
run_check cp "$image" "$image".scratch
|
||||
run_mayfail $TOP/btrfs rescue chunk-recover -y -v "$image".scratch
|
||||
run_mayfail "$TOP/btrfs" rescue chunk-recover -y -v "$image".scratch
|
||||
rm -- "$image".scratch
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -11,10 +11,10 @@ check_image() {
|
|||
|
||||
image=$1
|
||||
run_check cp "$image" "$image".scratch
|
||||
run_mayfail $TOP/btrfs rescue zero-log "$image".scratch
|
||||
run_mayfail "$TOP/btrfs" rescue zero-log "$image".scratch
|
||||
rm -- "$image".scratch
|
||||
}
|
||||
|
||||
check_all_images $TEST_TOP/fuzz-tests/images
|
||||
check_all_images "$TEST_TOP/fuzz-tests/images"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue