Tests managed by setuptools
authorVivien Maisonneuve <v.maisonneuve@gmail.com>
Sat, 23 Aug 2014 07:33:15 +0000 (09:33 +0200)
committerVivien Maisonneuve <v.maisonneuve@gmail.com>
Sat, 23 Aug 2014 07:33:15 +0000 (09:33 +0200)
Makefile
setup.py

index 735d08a..8da4079 100644 (file)
--- 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:
index a7d10e2..2aff11f 100755 (executable)
--- 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'
 )