From: Vivien Maisonneuve Date: Sat, 23 Aug 2014 07:33:15 +0000 (+0200) Subject: Tests managed by setuptools X-Git-Tag: 1.0.1~4 X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/commitdiff_plain/e9edace5958076df71291b81a03c04f545392afd?ds=inline Tests managed by setuptools --- diff --git a/Makefile b/Makefile index 735d08a..8da4079 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ build: $(SETUP) build_ext --inplace .PHONY: test -test: build - $(PYTHON) -m unittest -v +test: + $(SETUP) test .PHONY: doc doc: diff --git a/setup.py b/setup.py index a7d10e2..2aff11f 100755 --- a/setup.py +++ b/setup.py @@ -35,9 +35,10 @@ setup( author='MINES ParisTech', url='https://scm.cri.mines-paristech.fr/git/linpy.git', packages=['linpy'], - ext_modules = [ + ext_modules=[ Extension('linpy._islhelper', sources=['linpy/_islhelper.c'], libraries=['isl']) - ] + ], + test_suite='linpy.tests' )