mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-11 16:29:42 +00:00
btrfs-progs: tests: split make rule for fsck and convert tests, fix prerequisities
We'd like to run each class of tests separately. There were some missing prerequisities that should be/are verified by the tests, makefile rules have been synced. Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
35d53302ac
commit
047dd1bf5d
14
Makefile.in
14
Makefile.in
@ -161,11 +161,15 @@ $(BUILDDIRS):
|
||||
@echo "Making all in $(patsubst build-%,%,$@)"
|
||||
$(Q)$(MAKE) $(MAKEOPTS) -C $(patsubst build-%,%,$@)
|
||||
|
||||
test: btrfs btrfs-convert btrfs-image btrfs-corrupt-block
|
||||
$(Q)for t in $(TESTS); do \
|
||||
echo " [TEST] $$t"; \
|
||||
bash tests/$$t || exit 1; \
|
||||
done
|
||||
test-convert: btrfs btrfs-convert
|
||||
@echo " [TEST] convert-tests.sh"
|
||||
$(Q)bash tests/convert-tests.sh
|
||||
|
||||
test-fsck: btrfs btrfs-image btrfs-corrupt-block btrfs-debug-tree mkfs.btrfs
|
||||
@echo " [TEST] fsck-tests.sh"
|
||||
$(Q)bash tests/fsck-tests.sh
|
||||
|
||||
test: test-fsck test-convert
|
||||
|
||||
#
|
||||
# NOTE: For static compiles, you need to have all the required libs
|
||||
|
@ -3,6 +3,7 @@
|
||||
source $TOP/tests/common
|
||||
|
||||
check_prereq btrfs-debug-tree
|
||||
check_prereq mkfs.btrfs
|
||||
setup_root_helper
|
||||
|
||||
if [ -z $TEST_DEV ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user