SHELL := bash
.DEFAULT_GOAL := all
+# So where possible we can make tests more reproducible
+export BUP_TEST_RANDOM_SEED ?= $(shell echo "$$RANDOM")
+
+# Guard against accidentally using/testing a local bup
+export PATH := $(CURDIR)/dev/shadow-bin:$(PATH)
+
clean_paths :=
generated_dependencies :=
clean_paths += dev/python
dev/python: dev/python-proposed
dev/validate-python $@-proposed
- cp -a $@-proposed $@
+ cp -R -p $@-proposed $@
clean_paths += dev/bup-exec
generated_dependencies += dev/bup-exec.d
./pylint
test: all test/tmp dev/python lint
+ ! bup version # Ensure we can't test the local bup (cf. dev/shadow-bin)
./bup features
if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
(set -x; ./pytest $(xdist_opt);) \