Commit 38ec2443ce33ce805a1a4fb2494d8130425058b2
1 parent
918c92ae
Add dummy test.
Showing
3 changed files
with
195 additions
and
0 deletions
inst/cta/test/test_CTA.py
0 → 100755
| 1 | +# ========================================================================== | |
| 2 | +# This module performs unit tests for the GammaLib CTA module. | |
| 3 | +# | |
| 4 | +# Copyright (C) 2012 Juergen Knoedlseder | |
| 5 | +# | |
| 6 | +# This program is free software: you can redistribute it and/or modify | |
| 7 | +# it under the terms of the GNU General Public License as published by | |
| 8 | +# the Free Software Foundation, either version 3 of the License, or | |
| 9 | +# (at your option) any later version. | |
| 10 | +# | |
| 11 | +# This program is distributed in the hope that it will be useful, | |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | +# GNU General Public License for more details. | |
| 15 | +# | |
| 16 | +# You should have received a copy of the GNU General Public License | |
| 17 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | +# | |
| 19 | +# ========================================================================== | |
| 20 | +from gammalib import * | |
| 21 | +from math import * | |
| 22 | +import os | |
| 23 | + | |
| 24 | + | |
| 25 | +# ================================== # | |
| 26 | +# Test class for GammaLib CTA module # | |
| 27 | +# ================================== # | |
| 28 | +class Test(GPythonTestSuite): | |
| 29 | + """ | |
| 30 | + Test class for GammaLib CTA module. | |
| 31 | + """ | |
| 32 | + # Constructor | |
| 33 | + def __init__(self): | |
| 34 | + """ | |
| 35 | + Constructor. | |
| 36 | + """ | |
| 37 | + # Call base class constructor | |
| 38 | + GPythonTestSuite.__init__(self) | |
| 39 | + | |
| 40 | + # Return | |
| 41 | + return | |
| 42 | + | |
| 43 | + | |
| 44 | + # Set test functions | |
| 45 | + def set(self): | |
| 46 | + """ | |
| 47 | + Set all test functions. | |
| 48 | + """ | |
| 49 | + # Set test name | |
| 50 | + self.name("CTA") | |
| 51 | + | |
| 52 | + # Append tests | |
| 53 | + self.append(self.test, "CTA dummy test") | |
| 54 | + | |
| 55 | + # Return | |
| 56 | + return | |
| 57 | + | |
| 58 | + | |
| 59 | + # Test function | |
| 60 | + def test(self): | |
| 61 | + """ | |
| 62 | + Test function. | |
| 63 | + """ | |
| 64 | + # Return | |
| 65 | + return | ... | ... |
inst/lat/test/test_LAT.py
0 → 100755
| 1 | +# ========================================================================== | |
| 2 | +# This module performs unit tests for the GammaLib LAT module. | |
| 3 | +# | |
| 4 | +# Copyright (C) 2012 Juergen Knoedlseder | |
| 5 | +# | |
| 6 | +# This program is free software: you can redistribute it and/or modify | |
| 7 | +# it under the terms of the GNU General Public License as published by | |
| 8 | +# the Free Software Foundation, either version 3 of the License, or | |
| 9 | +# (at your option) any later version. | |
| 10 | +# | |
| 11 | +# This program is distributed in the hope that it will be useful, | |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | +# GNU General Public License for more details. | |
| 15 | +# | |
| 16 | +# You should have received a copy of the GNU General Public License | |
| 17 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | +# | |
| 19 | +# ========================================================================== | |
| 20 | +from gammalib import * | |
| 21 | +from math import * | |
| 22 | +import os | |
| 23 | + | |
| 24 | + | |
| 25 | +# ================================== # | |
| 26 | +# Test class for GammaLib LAT module # | |
| 27 | +# ================================== # | |
| 28 | +class Test(GPythonTestSuite): | |
| 29 | + """ | |
| 30 | + Test class for GammaLib LAT module. | |
| 31 | + """ | |
| 32 | + # Constructor | |
| 33 | + def __init__(self): | |
| 34 | + """ | |
| 35 | + Constructor. | |
| 36 | + """ | |
| 37 | + # Call base class constructor | |
| 38 | + GPythonTestSuite.__init__(self) | |
| 39 | + | |
| 40 | + # Return | |
| 41 | + return | |
| 42 | + | |
| 43 | + | |
| 44 | + # Set test functions | |
| 45 | + def set(self): | |
| 46 | + """ | |
| 47 | + Set all test functions. | |
| 48 | + """ | |
| 49 | + # Set test name | |
| 50 | + self.name("LAT") | |
| 51 | + | |
| 52 | + # Append tests | |
| 53 | + self.append(self.test, "LAT dummy test") | |
| 54 | + | |
| 55 | + # Return | |
| 56 | + return | |
| 57 | + | |
| 58 | + | |
| 59 | + # Test function | |
| 60 | + def test(self): | |
| 61 | + """ | |
| 62 | + Test function. | |
| 63 | + """ | |
| 64 | + # Return | |
| 65 | + return | ... | ... |
inst/mwl/test/test_MWL.py
0 → 100755
| 1 | +# ========================================================================== | |
| 2 | +# This module performs unit tests for the GammaLib MWL module. | |
| 3 | +# | |
| 4 | +# Copyright (C) 2012 Juergen Knoedlseder | |
| 5 | +# | |
| 6 | +# This program is free software: you can redistribute it and/or modify | |
| 7 | +# it under the terms of the GNU General Public License as published by | |
| 8 | +# the Free Software Foundation, either version 3 of the License, or | |
| 9 | +# (at your option) any later version. | |
| 10 | +# | |
| 11 | +# This program is distributed in the hope that it will be useful, | |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | +# GNU General Public License for more details. | |
| 15 | +# | |
| 16 | +# You should have received a copy of the GNU General Public License | |
| 17 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 18 | +# | |
| 19 | +# ========================================================================== | |
| 20 | +from gammalib import * | |
| 21 | +from math import * | |
| 22 | +import os | |
| 23 | + | |
| 24 | + | |
| 25 | +# ================================== # | |
| 26 | +# Test class for GammaLib MWL module # | |
| 27 | +# ================================== # | |
| 28 | +class Test(GPythonTestSuite): | |
| 29 | + """ | |
| 30 | + Test class for GammaLib MWL module. | |
| 31 | + """ | |
| 32 | + # Constructor | |
| 33 | + def __init__(self): | |
| 34 | + """ | |
| 35 | + Constructor. | |
| 36 | + """ | |
| 37 | + # Call base class constructor | |
| 38 | + GPythonTestSuite.__init__(self) | |
| 39 | + | |
| 40 | + # Return | |
| 41 | + return | |
| 42 | + | |
| 43 | + | |
| 44 | + # Set test functions | |
| 45 | + def set(self): | |
| 46 | + """ | |
| 47 | + Set all test functions. | |
| 48 | + """ | |
| 49 | + # Set test name | |
| 50 | + self.name("MWL") | |
| 51 | + | |
| 52 | + # Append tests | |
| 53 | + self.append(self.test, "MWL dummy test") | |
| 54 | + | |
| 55 | + # Return | |
| 56 | + return | |
| 57 | + | |
| 58 | + | |
| 59 | + # Test function | |
| 60 | + def test(self): | |
| 61 | + """ | |
| 62 | + Test function. | |
| 63 | + """ | |
| 64 | + # Return | |
| 65 | + return | ... | ... |