Skip to content

Commit

Permalink
Add TESTFLAGS variable to Makefile to make running nosetests easier.
Browse files Browse the repository at this point in the history
Change-Id: I7d94577883ad0805281bcac0003df964bfd05cdc
  • Loading branch information
dborowitz authored and jelmer committed Apr 12, 2010
1 parent 286a4e5 commit 9e43488
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PYTHON = python
SETUP = $(PYTHON) setup.py
PYDOCTOR ?= pydoctor
TESTRUNNER = $(shell which nosetests)
TESTFLAGS =

all: build

Expand All @@ -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
Expand Down

0 comments on commit 9e43488

Please sign in to comment.