Commit ea6791ee49793bac203770e4565ba4b8dc4fb6b0

Authored by Jürgen Knödlseder
1 parent 607bf92e

Bug fix: include cscripts command line tests in coverage report (#1827)

.gitignore
@@ -85,6 +85,7 @@ test/*.eps @@ -85,6 +85,7 @@ test/*.eps
85 test/*.jpg 85 test/*.jpg
86 test/test_cscripts.sh 86 test/test_cscripts.sh
87 test/test_examples.py 87 test/test_examples.py
  88 +test/testing.py
88 test/reports/*.xml 89 test/reports/*.xml
89 test/butterfly.txt 90 test/butterfly.txt
90 test/.coverage 91 test/.coverage
configure.ac
@@ -1034,6 +1034,7 @@ AC_CONFIG_FILES([Makefile @@ -1034,6 +1034,7 @@ AC_CONFIG_FILES([Makefile
1034 test/test_python_ctools.sh 1034 test/test_python_ctools.sh
1035 test/test_python_cscripts.sh 1035 test/test_python_cscripts.sh
1036 test/test_examples.py 1036 test/test_examples.py
  1037 + test/testing.py
1037 pyext/Makefile 1038 pyext/Makefile
1038 pyext/setup.py 1039 pyext/setup.py
1039 pyext/ctools/__init__.py 1040 pyext/ctools/__init__.py
test/testing.py renamed to test/testing.py.in
@@ -60,7 +60,8 @@ class test(gammalib.GPythonTestSuite): @@ -60,7 +60,8 @@ class test(gammalib.GPythonTestSuite):
60 # not. If the software is not installed the 'TEST_BUILDDIR' environment 60 # not. If the software is not installed the 'TEST_BUILDDIR' environment
61 # variable will exist 61 # variable will exist
62 if 'TEST_BUILDDIR' in os.environ: 62 if 'TEST_BUILDDIR' in os.environ:
63 - script = os.environ['TEST_BUILDDIR'] + '/cscripts/'+name+'.py' 63 + script = '@PYTHON_COVERAGE@' + os.environ['TEST_BUILDDIR'] + \
  64 + '/cscripts/'+name+'.py'
64 else: 65 else:
65 script = name 66 script = name
66 67