diff --git a/test/test_ctbin.py b/test/test_ctbin.py
new file mode 100755
index 0000000..25dafec
--- /dev/null
+++ b/test/test_ctbin.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctbin tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctbin tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctbin")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctbin functionality")
+
+ # Return
+ return
+
+ # Test ctbin functionnality
+ def test_functional(self):
+ """
+ Test ctbin functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctcubemask.py b/test/test_ctcubemask.py
new file mode 100755
index 0000000..6c27030
--- /dev/null
+++ b/test/test_ctcubemask.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctcubemask tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctcubemask tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctcubemask")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctcubemask functionality")
+
+ # Return
+ return
+
+ # Test ctcubemask functionnality
+ def test_functional(self):
+ """
+ Test ctcubemask functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctexpcube.py b/test/test_ctexpcube.py
new file mode 100755
index 0000000..4f6b991
--- /dev/null
+++ b/test/test_ctexpcube.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctexpcube tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctexpcube tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctexpcube")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctexpcube functionality")
+
+ # Return
+ return
+
+ # Test ctexpcube functionnality
+ def test_functional(self):
+ """
+ Test ctexpcube functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctlike.py b/test/test_ctlike.py
new file mode 100755
index 0000000..6ce4ae2
--- /dev/null
+++ b/test/test_ctlike.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctlike tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctlike tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctlike")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctlike functionality")
+
+ # Return
+ return
+
+ # Test ctlike functionnality
+ def test_functional(self):
+ """
+ Test ctlike functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctmodel.py b/test/test_ctmodel.py
new file mode 100755
index 0000000..22188a7
--- /dev/null
+++ b/test/test_ctmodel.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctmodel tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctmodel tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctmodel")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctmodel functionality")
+
+ # Return
+ return
+
+ # Test ctmodel functionnality
+ def test_functional(self):
+ """
+ Test ctmodel functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctpsfcube.py b/test/test_ctpsfcube.py
new file mode 100755
index 0000000..612e64a
--- /dev/null
+++ b/test/test_ctpsfcube.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctpsfcube tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctpsfcube tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctpsfcube")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctpsfcube functionality")
+
+ # Return
+ return
+
+ # Test ctpsfcube functionnality
+ def test_functional(self):
+ """
+ Test ctpsfcube functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctselect.py b/test/test_ctselect.py
new file mode 100755
index 0000000..b3345f0
--- /dev/null
+++ b/test/test_ctselect.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctselect tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctselect tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctselect")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctselect functionality")
+
+ # Return
+ return
+
+ # Test ctselect functionnality
+ def test_functional(self):
+ """
+ Test ctselect functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_ctskymap.py b/test/test_ctskymap.py
new file mode 100755
index 0000000..bc9d81e
--- /dev/null
+++ b/test/test_ctskymap.py
@@ -0,0 +1,65 @@
+#! /usr/bin/env python
+# ==========================================================================
+# This scripts performs unit tests for the ctskymap tool.
+#
+# Copyright (C) 2014 Juergen Knoedlseder
+#
+# 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 .
+#
+# ==========================================================================
+import gammalib
+import ctools
+
+
+# ============================ #
+# Test class for ctobssim tool #
+# ============================ #
+class Test(gammalib.GPythonTestSuite):
+ """
+ Test class for ctskymap tool.
+ """
+ # Constructor
+ def __init__(self):
+ """
+ Constructor.
+ """
+ # Call base class constructor
+ gammalib.GPythonTestSuite.__init__(self)
+
+ # Set members
+
+ # Return
+ return
+
+ # Set test functions
+ def set(self):
+ """
+ Set all test functions.
+ """
+ # Set test name
+ self.name("ctskymap")
+
+ # Append tests
+ self.append(self.test_functional, "Test ctskymap functionality")
+
+ # Return
+ return
+
+ # Test ctskymap functionnality
+ def test_functional(self):
+ """
+ Test ctskymap functionnality.
+ """
+ # Return
+ return
diff --git a/test/test_python.py b/test/test_python.py
index e385d72..4d1de1c 100755
--- a/test/test_python.py
+++ b/test/test_python.py
@@ -23,6 +23,14 @@ import ctools
import sys
import os
import test_ctobssim
+import test_ctselect
+import test_ctbin
+import test_ctlike
+import test_ctmodel
+import test_ctskymap
+import test_ctcubemask
+import test_ctexpcube
+import test_ctpsfcube
import test_pipelines
@@ -37,15 +45,39 @@ if __name__ == '__main__':
suites = gammalib.GTestSuites("ctools unit testing")
# Allocate test suites and append them to the container
- suite_ctobssim = test_ctobssim.Test()
- suite_pipelines = test_pipelines.Test()
+ suite_ctobssim = test_ctobssim.Test()
+ suite_ctselect = test_ctselect.Test()
+ suite_ctbin = test_ctbin.Test()
+ suite_ctlike = test_ctlike.Test()
+ suite_ctmodel = test_ctmodel.Test()
+ suite_ctskymap = test_ctskymap.Test()
+ suite_ctcubemask = test_ctcubemask.Test()
+ suite_ctexpcube = test_ctexpcube.Test()
+ suite_ctpsfcube = test_ctpsfcube.Test()
+ suite_pipelines = test_pipelines.Test()
# Setup unit tests
suite_ctobssim.set()
+ suite_ctselect.set()
+ suite_ctbin.set()
+ suite_ctlike.set()
+ suite_ctmodel.set()
+ suite_ctskymap.set()
+ suite_ctcubemask.set()
+ suite_ctexpcube.set()
+ suite_ctpsfcube.set()
suite_pipelines.set()
# Append tests to container
suites.append(suite_ctobssim)
+ suites.append(suite_ctselect)
+ suites.append(suite_ctbin)
+ suites.append(suite_ctlike)
+ suites.append(suite_ctmodel)
+ suites.append(suite_ctskymap)
+ suites.append(suite_ctcubemask)
+ suites.append(suite_ctexpcube)
+ suites.append(suite_ctpsfcube)
suites.append(suite_pipelines)
# Set PFILES environment variable