Run nosetests in parallel if possible.

This commit is contained in:
Bastian Kleineidam 2010-03-04 14:57:03 +01:00
parent d2e28fe264
commit 45aff562bc
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
VERSION:=$(shell python setup.py --version) VERSION:=$(shell python setup.py --version)
ARCHIVE:=patool-$(VERSION).tar.gz ARCHIVE:=patool-$(VERSION).tar.gz
PY_FILES_DIRS := patool setup.py patoolib tests PY_FILES_DIRS := patool setup.py patoolib tests
NUMCPUS := $(shell grep -c '^process' /proc/cpuinfo)
# which test modules to run # which test modules to run
TESTS ?= tests/ TESTS ?= tests/
# set test options, eg. to "--nologcapture" # set test options, eg. to "--nologcapture"
@ -59,7 +60,7 @@ clean:
.PHONY: test .PHONY: test
test: test:
nosetests -v -m "^test_.*" $(TESTOPTS) $(TESTS) nosetests -v --processes=$(NUMCPUS) -m "^test_.*" $(TESTOPTS) $(TESTS)
doc/patool.txt: doc/patool.1 doc/patool.txt: doc/patool.1
man -l doc/patool.1 | perl -pe 's/.\cH//g' > doc/patool.txt man -l doc/patool.1 | perl -pe 's/.\cH//g' > doc/patool.txt