Commit d6fa46a1acc76721937c43031268ee15d9be0410
1 parent
16cdf0a7
Adjust for SonarQube analysis
Showing
3 changed files
with
13 additions
and
5 deletions
sonar-project.properties
| @@ -16,7 +16,7 @@ sonar.links.scm=https://cta-gitlab.irap.omp.eu/ctools/ctools | @@ -16,7 +16,7 @@ sonar.links.scm=https://cta-gitlab.irap.omp.eu/ctools/ctools | ||
| 16 | sonar.sources=. | 16 | sonar.sources=. |
| 17 | 17 | ||
| 18 | # Path to include directories | 18 | # Path to include directories |
| 19 | -sonar.cxx.includeDirectories=pyext,src/*/,/home/jenkins/gcc/gcc492/include/c++/4.9.2,/home/jenkins/gcc/gcc492/include/c++/4.9.2/tr1,/home/jenkins/gcc/gcc492/include/c++/4.9.2/ext,/home/jenkins/gcc/gcc492/include/c++/4.9.2/x86_64-unknown-linux-gnu,/home/jenkins/gcc/gcc492/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include,/usr/include,/usr/include/bits,/usr/include/gnu,/usr/include/linux | 19 | +sonar.cxx.includeDirectories=/home/jenkins/gcc/gcc492/include/c++/4.9.2,/home/jenkins/gcc/gcc492/include/c++/4.9.2/tr1,/home/jenkins/gcc/gcc492/include/c++/4.9.2/ext,/home/jenkins/gcc/gcc492/include/c++/4.9.2/x86_64-unknown-linux-gnu,/home/jenkins/gcc/gcc492/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include,/usr/include,/usr/include/bits,/usr/include/gnu,/usr/include/linux |
| 20 | sonar.cxx.missingIncludeWarnings=False | 20 | sonar.cxx.missingIncludeWarnings=False |
| 21 | 21 | ||
| 22 | # Exclusions | 22 | # Exclusions |
test/test_ctlike.py
| @@ -119,6 +119,14 @@ class Test(test): | @@ -119,6 +119,14 @@ class Test(test): | ||
| 119 | # Check result file | 119 | # Check result file |
| 120 | self._check_result_file('ctlike_py1.xml') | 120 | self._check_result_file('ctlike_py1.xml') |
| 121 | 121 | ||
| 122 | + # Retrieve observation container, save and check model file | ||
| 123 | + obs = like.obs() | ||
| 124 | + obs.models().save('ctlike_py2.xml') | ||
| 125 | + self._check_result_file('ctlike_py2.xml') | ||
| 126 | + | ||
| 127 | + # Retrieve optimizer | ||
| 128 | + opt = like.opt() | ||
| 129 | + | ||
| 122 | # Return | 130 | # Return |
| 123 | return | 131 | return |
| 124 | 132 |
test/test_examples.py.in
| @@ -123,13 +123,13 @@ class Test(gammalib.GPythonTestSuite): | @@ -123,13 +123,13 @@ class Test(gammalib.GPythonTestSuite): | ||
| 123 | self.append(self.test_show_pull_histogram, | 123 | self.append(self.test_show_pull_histogram, |
| 124 | 'Test show_pull_histogram.py') | 124 | 'Test show_pull_histogram.py') |
| 125 | self.append(self.test_show_response, | 125 | self.append(self.test_show_response, |
| 126 | - 'Test test_show_response.py') | 126 | + 'Test show_response.py') |
| 127 | self.append(self.test_show_sensitivity, | 127 | self.append(self.test_show_sensitivity, |
| 128 | - 'Test test_show_sensitivity.py') | 128 | + 'Test show_sensitivity.py') |
| 129 | self.append(self.test_show_spectrum, | 129 | self.append(self.test_show_spectrum, |
| 130 | - 'Test test_show_spectrum.py') | 130 | + 'Test show_spectrum.py') |
| 131 | self.append(self.test_show_ts_distribution, | 131 | self.append(self.test_show_ts_distribution, |
| 132 | - 'Test show_ts_distribution.py') | 132 | + 'Test ts_distribution.py') |
| 133 | self.append(self.test_show_obs, | 133 | self.append(self.test_show_obs, |
| 134 | 'Test show_obs.py') | 134 | 'Test show_obs.py') |
| 135 | 135 |