Parametrize nosetests.

This commit is contained in:
Bastian Kleineidam 2011-12-17 20:39:51 +01:00
parent 2aea1ef1e5
commit 36c857d0c5

View file

@ -21,9 +21,11 @@ PEP8OPTS:=--repeat --ignore=E211,E501,E225,E301,E302,E241 \
--exclude="gzip2.py,httplib2.py,robotparser2.py"
PY2APPOPTS ?=
ifeq ($(shell uname),Darwin)
NOSETESTS:=/usr/local/share/python/nosetests
NUMPROCESSORS:=$(shell sysctl -a | grep machdep.cpu.core_count | cut -d " " -f 2)
CHMODMINUSMINUS:=
else
NOSETESTS:=$(shell which nosetests)
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
CHMODMINUSMINUS:=--
endif
@ -204,7 +206,7 @@ sign_distfiles:
.PHONY: test
test: localbuild
$(PYTHON) $(shell which nosetests) --processes=$(NUMPROCESSORS) \
$(PYTHON) $(NOSETESTS) --processes=$(NUMPROCESSORS) \
-v -m "^test_.*" $(TESTOPTS) $(TESTS)
.PHONY: pyflakes