diff options
Diffstat (limited to 'tests/fuzz-tests')
-rwxr-xr-x | tests/fuzz-tests/001-simple-check-unmounted/test.sh | 7 | ||||
-rwxr-xr-x | tests/fuzz-tests/002-simple-image/test.sh | 7 | ||||
-rwxr-xr-x | tests/fuzz-tests/003-multi-check-unmounted/test.sh | 2 | ||||
-rwxr-xr-x | tests/fuzz-tests/004-simple-dump-tree/test.sh | 7 | ||||
-rwxr-xr-x | tests/fuzz-tests/005-simple-dump-super/test.sh | 6 | ||||
-rwxr-xr-x | tests/fuzz-tests/006-simple-tree-stats/test.sh | 7 | ||||
-rwxr-xr-x | tests/fuzz-tests/008-simple-chunk-recover/test.sh | 4 | ||||
-rwxr-xr-x | tests/fuzz-tests/009-simple-zero-log/test.sh | 4 |
8 files changed, 16 insertions, 28 deletions
diff --git a/tests/fuzz-tests/001-simple-check-unmounted/test.sh b/tests/fuzz-tests/001-simple-check-unmounted/test.sh index 905d37b7..87a63944 100755 --- a/tests/fuzz-tests/001-simple-check-unmounted/test.sh +++ b/tests/fuzz-tests/001-simple-check-unmounted/test.sh @@ -9,12 +9,9 @@ check_prereq btrfs # redefine the one provided by common check_image() { - local image - - image=$1 - run_mayfail $TOP/btrfs check "$image" + run_mayfail "$TOP/btrfs" check "$1" } -check_all_images $TEST_TOP/fuzz-tests/images +check_all_images "$TEST_TOP/fuzz-tests/images" exit 0 diff --git a/tests/fuzz-tests/002-simple-image/test.sh b/tests/fuzz-tests/002-simple-image/test.sh index 034fcf46..5dddc9e1 100755 --- a/tests/fuzz-tests/002-simple-image/test.sh +++ b/tests/fuzz-tests/002-simple-image/test.sh @@ -9,15 +9,12 @@ check_prereq btrfs-image # redefine the one provided by common check_image() { - local image - - image=$1 truncate -s0 target - run_mayfail $TOP/btrfs-image "$image" target + run_mayfail "$TOP/btrfs-image" "$1" target truncate -s0 target } -check_all_images $TEST_TOP/fuzz-tests/images +check_all_images "$TEST_TOP/fuzz-tests/images" rm -- target diff --git a/tests/fuzz-tests/003-multi-check-unmounted/test.sh b/tests/fuzz-tests/003-multi-check-unmounted/test.sh index 35dfe4fc..3021c3a8 100755 --- a/tests/fuzz-tests/003-multi-check-unmounted/test.sh +++ b/tests/fuzz-tests/003-multi-check-unmounted/test.sh @@ -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 diff --git a/tests/fuzz-tests/004-simple-dump-tree/test.sh b/tests/fuzz-tests/004-simple-dump-tree/test.sh index 6c9e8c45..c09b8478 100755 --- a/tests/fuzz-tests/004-simple-dump-tree/test.sh +++ b/tests/fuzz-tests/004-simple-dump-tree/test.sh @@ -7,12 +7,9 @@ check_prereq btrfs # redefine the one provided by common check_image() { - local image - - image=$1 - run_mayfail $TOP/btrfs inspect-internal dump-tree "$image" + run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$1" } -check_all_images $TEST_TOP/fuzz-tests/images +check_all_images "$TEST_TOP/fuzz-tests/images" exit 0 diff --git a/tests/fuzz-tests/005-simple-dump-super/test.sh b/tests/fuzz-tests/005-simple-dump-super/test.sh index 01c7b628..18f71a48 100755 --- a/tests/fuzz-tests/005-simple-dump-super/test.sh +++ b/tests/fuzz-tests/005-simple-dump-super/test.sh @@ -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 diff --git a/tests/fuzz-tests/006-simple-tree-stats/test.sh b/tests/fuzz-tests/006-simple-tree-stats/test.sh index dbed471a..146afa93 100755 --- a/tests/fuzz-tests/006-simple-tree-stats/test.sh +++ b/tests/fuzz-tests/006-simple-tree-stats/test.sh @@ -7,12 +7,9 @@ check_prereq btrfs # redefine the one provided by common check_image() { - local image - - image=$1 - run_mayfail $TOP/btrfs inspect-internal tree-stats "$image" + run_mayfail "$TOP/btrfs" inspect-internal tree-stats "$1" } -check_all_images $TEST_TOP/fuzz-tests/images +check_all_images "$TEST_TOP/fuzz-tests/images" exit 0 diff --git a/tests/fuzz-tests/008-simple-chunk-recover/test.sh b/tests/fuzz-tests/008-simple-chunk-recover/test.sh index 198f88e2..4b27de0c 100755 --- a/tests/fuzz-tests/008-simple-chunk-recover/test.sh +++ b/tests/fuzz-tests/008-simple-chunk-recover/test.sh @@ -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 diff --git a/tests/fuzz-tests/009-simple-zero-log/test.sh b/tests/fuzz-tests/009-simple-zero-log/test.sh index 928c66b1..f78e5b50 100755 --- a/tests/fuzz-tests/009-simple-zero-log/test.sh +++ b/tests/fuzz-tests/009-simple-zero-log/test.sh @@ -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 |