diff --git a/sonar-project.properties b/sonar-project.properties index e93d62b..7836fe0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -16,7 +16,7 @@ sonar.links.scm=https://cta-gitlab.irap.omp.eu/ctools/ctools sonar.sources=. # Path to include directories -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 +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 sonar.cxx.missingIncludeWarnings=False # Exclusions diff --git a/test/test_ctlike.py b/test/test_ctlike.py index 84729a3..77c3e68 100755 --- a/test/test_ctlike.py +++ b/test/test_ctlike.py @@ -119,6 +119,14 @@ class Test(test): # Check result file self._check_result_file('ctlike_py1.xml') + # Retrieve observation container, save and check model file + obs = like.obs() + obs.models().save('ctlike_py2.xml') + self._check_result_file('ctlike_py2.xml') + + # Retrieve optimizer + opt = like.opt() + # Return return diff --git a/test/test_examples.py.in b/test/test_examples.py.in index b6c2cf3..9cd1534 100755 --- a/test/test_examples.py.in +++ b/test/test_examples.py.in @@ -123,13 +123,13 @@ class Test(gammalib.GPythonTestSuite): self.append(self.test_show_pull_histogram, 'Test show_pull_histogram.py') self.append(self.test_show_response, - 'Test test_show_response.py') + 'Test show_response.py') self.append(self.test_show_sensitivity, - 'Test test_show_sensitivity.py') + 'Test show_sensitivity.py') self.append(self.test_show_spectrum, - 'Test test_show_spectrum.py') + 'Test show_spectrum.py') self.append(self.test_show_ts_distribution, - 'Test show_ts_distribution.py') + 'Test ts_distribution.py') self.append(self.test_show_obs, 'Test show_obs.py')