From 6a0d3bf28d42b9b4249056b213636952d4575ace Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 19 May 2016 14:20:51 +0200 Subject: [PATCH] btrfs-progs: makefile: add target for testing installation Signed-off-by: David Sterba --- Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.in b/Makefile.in index 6febd94..ac6b353 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 # -- 2.7.4