mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-17 18:26:55 +00:00
Use TEST_TOP as base for tests to reference any files, this will be used for git and external testsuite. INTERNAL_BIN is needed for referencing binaries that could reside in different paths in git vs external testsuite. Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com> [ add quotes around sourced files, update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
21 lines
344 B
Bash
Executable File
21 lines
344 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "$TEST_TOP/common"
|
|
|
|
setup_root_helper
|
|
check_prereq btrfs
|
|
|
|
# redefine the one provided by common
|
|
check_image() {
|
|
local image
|
|
|
|
image=$1
|
|
run_check cp "$image" "$image".scratch
|
|
run_mayfail $TOP/btrfs rescue super-recover -y -v "$image".scratch
|
|
rm -- "$image".scratch
|
|
}
|
|
|
|
check_all_images $TEST_TOP/fuzz-tests/images
|
|
|
|
exit 0
|