From e9edace5958076df71291b81a03c04f545392afd Mon Sep 17 00:00:00 2001
From: Vivien Maisonneuve <v.maisonneuve@gmail.com>
Date: Sat, 23 Aug 2014 09:33:15 +0200
Subject: [PATCH] Tests managed by setuptools

---
 Makefile | 4 ++--
 setup.py | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

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'
 )
-- 
2.20.1