From 047dd1bf5d6c7d8cb92e2d94d1f4eca15f14152b Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 7 Apr 2015 18:29:05 +0200 Subject: [PATCH] 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 --- Makefile.in | 14 +++++++++----- tests/fsck-tests/013-extent-tree-rebuild/test.sh | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile.in b/Makefile.in index 83927e48..3c50613e 100644 --- a/Makefile.in +++ b/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 diff --git a/tests/fsck-tests/013-extent-tree-rebuild/test.sh b/tests/fsck-tests/013-extent-tree-rebuild/test.sh index e05a035f..9b291dd7 100755 --- a/tests/fsck-tests/013-extent-tree-rebuild/test.sh +++ b/tests/fsck-tests/013-extent-tree-rebuild/test.sh @@ -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