Source

trac-ticketlinks / Makefile

Diff from to
 
   [db=...]            variable for selecting database backend
   [test=...]          variable for selecting a single test file
-  [coverageopts=...]  variable containing extra optios for coverage
+  [testopts=...]      variable containing extra options for running tests
+  [coverageopts=...]  variable containing extra options for coverage
 
  ---------------- Standalone test server
 
 
 ifdef test
 all: status
-	python $(test)
+	python $(test) $(testopts)
 else
 all: help
 endif
 test: unit-test functional-test
 
 unit-test: Trac.egg-info
-	python ./trac/test.py --skip-functional-tests
+	python ./trac/test.py --skip-functional-tests $(testopts)
 
 functional-test: Trac.egg-info
-	python trac/tests/functional/__init__.py -v
+	python trac/tests/functional/__init__.py -v $(testopts)
 
 test-wiki:
-	python trac/tests/allwiki.py
+	python trac/tests/allwiki.py $(testopts)
 
 # ----------------------------------------------------------------------------
 #
 
 ifdef test
 test-coverage:
-	coverage run $(test)
+	coverage run $(test) $(testopts)
 else
 test-coverage: unit-test-coverage functional-test-coverage
 endif