Commit d6fa46a1acc76721937c43031268ee15d9be0410

Authored by Jürgen Knödlseder
1 parent 16cdf0a7

Adjust for SonarQube analysis

sonar-project.properties
... ... @@ -16,7 +16,7 @@ sonar.links.scm=https://cta-gitlab.irap.omp.eu/ctools/ctools
16 16 sonar.sources=.
17 17  
18 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 20 sonar.cxx.missingIncludeWarnings=False
21 21  
22 22 # Exclusions
... ...
test/test_ctlike.py
... ... @@ -119,6 +119,14 @@ class Test(test):
119 119 # Check result file
120 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 130 # Return
123 131 return
124 132  
... ...
test/test_examples.py.in
... ... @@ -123,13 +123,13 @@ class Test(gammalib.GPythonTestSuite):
123 123 self.append(self.test_show_pull_histogram,
124 124 'Test show_pull_histogram.py')
125 125 self.append(self.test_show_response,
126   - 'Test test_show_response.py')
  126 + 'Test show_response.py')
127 127 self.append(self.test_show_sensitivity,
128   - 'Test test_show_sensitivity.py')
  128 + 'Test show_sensitivity.py')
129 129 self.append(self.test_show_spectrum,
130   - 'Test test_show_spectrum.py')
  130 + 'Test show_spectrum.py')
131 131 self.append(self.test_show_ts_distribution,
132   - 'Test show_ts_distribution.py')
  132 + 'Test ts_distribution.py')
133 133 self.append(self.test_show_obs,
134 134 'Test show_obs.py')
135 135  
... ...