maybe_specific_n = $(if $(filter -j%,$(parallel_opt)),-n$(get_parallel_n))
xdist_opt = $(if $(filter -j,$(parallel_opt)),-nauto,$(maybe_specific_n))
-lint: dev/bup-python
+lint: dev/bup-exec dev/bup-python
./pylint
test: all test/tmp dev/python lint
- if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
+ ./bup features
+ if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
(set -x; ./pytest $(xdist_opt);) \
- else \
- (set -x; ./pytest;) \
- fi
+ else \
+ (set -x; ./pytest;) \
+ fi
stupid:
PATH=/bin:/usr/bin $(MAKE) test