1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project: Fast Azimuthal Integration
# https://github.com/pyFAI/pyFAI
#
# Copyright (C) European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
Test suite for all pyFAI modules.
"""
__authors__ = ["Jérôme Kieffer"]
__contact__ = "jerome.kieffer@esrf.eu"
__license__ = "GPLv3+"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__data__ = "2014-10-06"
import sys
import unittest
from utilstest import UtilsTest, getLogger
logger = getLogger("test_all")
from test_geometry_refinement import test_suite_all_GeometryRefinement
from test_azimuthal_integrator import test_suite_all_AzimuthalIntegration
from test_histogram import test_suite_all_Histogram
from test_peak_picking import test_suite_all_PeakPicking
from test_geometry import test_suite_all_Geometry
from test_mask import test_suite_all_Mask
from test_openCL import test_suite_all_OpenCL
from test_export import test_suite_all_Export
from test_saxs import test_suite_all_Saxs
from test_integrate import test_suite_all_Integrate1d
from test_bilinear import test_suite_all_bilinear
from test_distortion import test_suite_all_distortion
from test_flat import test_suite_all_Flat
from test_utils import test_suite_all_Utils
from test_polarization import test_suite_all_polarization
from test_detector import test_suite_all_detectors
from test_convolution import test_suite_all_convolution
from test_sparse import test_suite_all_sparse
from test_csr import test_suite_all_OpenCL_CSR
from test_blob_detection import test_suite_all_blob_detection
from test_marchingsquares import test_suite_all_marchingsquares
from test_io import test_suite_all_io
from test_calibrant import test_suite_all_calibrant
from test_split_pixel import test_suite_all_split
def test_suite_all():
testSuite = unittest.TestSuite()
testSuite.addTest(test_suite_all_Histogram())
testSuite.addTest(test_suite_all_GeometryRefinement())
testSuite.addTest(test_suite_all_AzimuthalIntegration())
testSuite.addTest(test_suite_all_PeakPicking())
testSuite.addTest(test_suite_all_Geometry())
testSuite.addTest(test_suite_all_Mask())
testSuite.addTest(test_suite_all_OpenCL())
testSuite.addTest(test_suite_all_Export())
testSuite.addTest(test_suite_all_Saxs())
testSuite.addTest(test_suite_all_Integrate1d())
testSuite.addTest(test_suite_all_bilinear())
testSuite.addTest(test_suite_all_distortion())
testSuite.addTest(test_suite_all_Flat())
testSuite.addTest(test_suite_all_Utils())
testSuite.addTest(test_suite_all_detectors())
testSuite.addTest(test_suite_all_convolution())
testSuite.addTest(test_suite_all_sparse())
testSuite.addTest(test_suite_all_OpenCL_CSR())
testSuite.addTest(test_suite_all_blob_detection())
testSuite.addTest(test_suite_all_marchingsquares())
testSuite.addTest(test_suite_all_io())
testSuite.addTest(test_suite_all_calibrant())
testSuite.addTest(test_suite_all_polarization())
testSuite.addTest(test_suite_all_split())
return testSuite
if __name__ == '__main__':
mysuite = test_suite_all()
runner = unittest.TextTestRunner()
if not runner.run(mysuite).wasSuccessful():
sys.exit(1)
|