From 37b94a704657fb5675787d0e06a69b8986ac34a7 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sat, 30 Nov 2019 13:02:14 -0600 Subject: [PATCH] Makefile: add simple check-both target to test python 2 and 3 Just a convenience for now. Note that it incidentally leaves you with the built python 2 version. Signed-off-by: Rob Browning Tested-by: Rob Browning --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 8418576..a7c413d 100644 --- 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 $@ -- 2.39.2