diff options
Diffstat (limited to 'silx/opencl/test/__init__.py')
-rw-r--r-- | silx/opencl/test/__init__.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/silx/opencl/test/__init__.py b/silx/opencl/test/__init__.py index 24aa06e..f6aadcd 100644 --- a/silx/opencl/test/__init__.py +++ b/silx/opencl/test/__init__.py @@ -24,18 +24,31 @@ __authors__ = ["J. Kieffer"] __license__ = "MIT" -__date__ = "15/03/2017" +__date__ = "01/09/2017" +import os import unittest from . import test_addition from . import test_medfilt -from ..sift import test as test_sift - +from . import test_backprojection +from . import test_projection +from . import test_linalg +from . import test_array_utils def suite(): test_suite = unittest.TestSuite() test_suite.addTests(test_addition.suite()) test_suite.addTests(test_medfilt.suite()) - test_suite.addTests(test_sift.suite()) + test_suite.addTests(test_backprojection.suite()) + test_suite.addTests(test_projection.suite()) + test_suite.addTests(test_linalg.suite()) + test_suite.addTests(test_array_utils.suite()) + + # Allow to remove sift from the project + test_base_dir = os.path.dirname(__file__) + sift_dir = os.path.join(test_base_dir, "..", "sift") + if os.path.exists(sift_dir): + from ..sift import test as test_sift + test_suite.addTests(test_sift.suite()) return test_suite |