btrfs-progs: check: introduce function to check an extent
[platform/upstream/btrfs-progs.git] / Makefile.in
index 7e65efb..ac6b353 100644 (file)
@@ -6,6 +6,7 @@
 #   test        run the full testsuite
 #   install     install to default location (/usr/local)
 #   clean       clean built binaries (not the documentation)
+#   clean-all   clean as above, clean docs and generated files
 #
 # Tuning by variables (environment or make arguments):
 #   V=1            verbose, print command lines (default: quiet)
@@ -241,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
 
 #