]> arthur.barton.de Git - bup.git/commitdiff
Makefile: add simple check-both target to test python 2 and 3
authorRob Browning <rlb@defaultvalue.org>
Sat, 30 Nov 2019 19:02:14 +0000 (13:02 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 1 Dec 2019 18:17:43 +0000 (12:17 -0600)
Just a convenience for now.  Note that it incidentally leaves you with
the built python 2 version.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Makefile

index 8418576e48032ecace4ba6cc23eb835923a077de..a7c413dbf0355f2eaa980ae1f86caad5a90f3a9d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -267,6 +267,13 @@ long-test: test
 long-check: export BUP_TEST_LEVEL=11
 long-check: check
 
+.PHONY: check-both
+check-both:
+       $(MAKE) clean \
+         && PYTHON=python3 BUP_ALLOW_UNEXPECTED_PYTHON_VERSION=true $(MAKE) check
+       $(MAKE) clean \
+         && PYTHON=python2 $(MAKE) check
+
 cmd/bup-%: cmd/%-cmd.py
        rm -f $@
        ln -s $*-cmd.py $@