shithub: aubio

Download patch

ref: 9a1df7f7457238eaaf82600d763c0104799a7c57
parent: 8ff31fb5372002d6f184217eb02bde14bb31ce77
author: Paul Brossier <piem@piem.org>
date: Fri Nov 2 14:00:04 EDT 2018

[build] use pytest to run tests

--- a/Makefile
+++ b/Makefile
@@ -35,8 +35,8 @@
 DATAROOTDIR?=$(PREFIX)/share
 MANDIR?=$(DATAROOTDIR)/man
 
-# default nose2 command
-NOSE2?=nose2 -N 4 --verbose
+# default python test command
+PYTEST?=pytest --verbose
 
 SOX=sox
 
@@ -138,7 +138,7 @@
 test_python: export PYTHONPATH=$(PYDESTDIR)/$(LIBDIR)
 test_python: local_dylib
 	# run test with installed package
-	$(NOSE2)
+	$(PYTEST)
 
 clean_python:
 	./setup.py clean
@@ -240,7 +240,7 @@
 	clean_python clean distclean build local_dylib
 	lcov --capture --no-external --directory . --output-file build/coverage_lib.info
 	pip install -v -e .
-	coverage run `which nose2`
+	coverage run `which pytest`
 	lcov --capture --no-external --directory . --output-file build/coverage_python.info
 	lcov -a build/coverage_python.info -a build/coverage_lib.info -o build/coverage.info