btrfs-progs: makefile: add target for testing installation

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-05-19 14:20:51 +02:00
parent 98410fce1d
commit 6a0d3bf28d
1 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,12 @@ test-clean:
@echo "Cleaning tests"
$(Q)bash tests/clean-tests.sh
test-inst: all
@tmpdest=`mktemp --tmpdir -d btrfs-inst.XXXXXX` && \
echo "Test installation to $$tmpdest" && \
$(MAKE) DESTDIR=$$tmpdest install && \
$(RM) -rf -- $$tmpdest
test: test-fsck test-mkfs test-convert test-misc test-fuzz
#