Makefile: add NOSE2= to redefine nose2 command
authorPaul Brossier <piem@piem.org>
Sat, 16 Sep 2017 10:09:27 +0000 (12:09 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 16 Sep 2017 10:09:27 +0000 (12:09 +0200)
Makefile

index 7e9226e..37550c8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,9 @@ INCLUDEDIR?=$(PREFIX)/include
 DATAROOTDIR?=$(PREFIX)/share
 MANDIR?=$(DATAROOTDIR)/man
 
 DATAROOTDIR?=$(PREFIX)/share
 MANDIR?=$(DATAROOTDIR)/man
 
+# default nose2 command
+NOSE2?=nose2 -N 4
+
 SOX=sox
 
 TESTSOUNDS := python/tests/sounds
 SOX=sox
 
 TESTSOUNDS := python/tests/sounds
@@ -137,7 +140,7 @@ test_python: local_dylib
        # run test with installed package
        ./python/tests/run_all_tests --verbose
        # also run with nose, multiple processes
        # run test with installed package
        ./python/tests/run_all_tests --verbose
        # also run with nose, multiple processes
-       nose2 -N 4
+       $(NOSE2)
 
 clean_python:
        ./setup.py clean
 
 clean_python:
        ./setup.py clean