mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
Parametrize nosetests.
This commit is contained in:
parent
2aea1ef1e5
commit
36c857d0c5
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue