Add TESTFLAGS variable to Makefile to make running nosetests easier.
authorDave Borowitz <dborowitz@google.com>
Fri, 5 Mar 2010 21:16:09 +0000 (13:16 -0800)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 12 Apr 2010 15:07:30 +0000 (08:07 -0700)
Change-Id: I7d94577883ad0805281bcac0003df964bfd05cdc

Makefile

index c8c7b2941c2820908be44657c2b2731729e9c118..aea43348b082023ee005478821a795a2e4948d6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ PYTHON = python
 SETUP = $(PYTHON) setup.py
 PYDOCTOR ?= pydoctor
 TESTRUNNER = $(shell which nosetests)
+TESTFLAGS =
 
 all: build
 
@@ -19,13 +20,13 @@ install::
 
 check:: build
        PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
-       which git > /dev/null && PYTHONPATH=. $(PYTHON) $(TESTRUNNER) -i compat
+       which git > /dev/null && PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
 
 check-noextensions:: clean
-       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) dulwich
 
 check-compat:: build
-       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) -i compat
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
 
 clean::
        $(SETUP) clean --all