From ab46b2ff297ac0260aa85047b207a586b3e0fd57 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 1 Apr 2016 21:32:55 +0200 Subject: [PATCH] Add installation of missing test files. --- cscripts/Makefile.am | 7 ++++++- test/test_cscaldb.py | 2 +- test/test_python_cscripts.py | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index e3bfde7..5d3aebb 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -42,13 +42,18 @@ testscripts = tests/__init__.py \ # Test data to be distributed in $(pyexecdir)/cscripts/tests/data testdata = ../test/data/crab.xml \ ../test/data/obs_unbinned.xml \ + ../test/data/obs_stacked.xml \ ../test/data/crab_events.fits.gz \ ../test/data/crab_cntmap.fits.gz \ + ../test/data/crab_expcube.fits.gz \ + ../test/data/crab_psfcube.fits.gz \ + ../test/data/crab_bkgcube.fits.gz \ ../test/data/exclusion.reg \ ../test/data/pntdef.dat \ ../test/data/models.txt \ ../test/data/model_cube_background.xml \ - ../test/data/model_cube_background2.xml + ../test/data/model_cube_background2.xml \ + ../test/data/crab_bkgcube.xml # Test data to be distributed in $(pyexecdir)/cscripts/tests/iactdata testiactdata = ../test/iactdata/hdu-index.fits.gz \ diff --git a/test/test_cscaldb.py b/test/test_cscaldb.py index 6ca278b..6f73c08 100755 --- a/test/test_cscaldb.py +++ b/test/test_cscaldb.py @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite): if os.path.isfile("README"): cscaldb = "../cscripts/cscaldb.py" else: - cscaldb = "csfindobs" + cscaldb = "cscaldb" # Setup cscaldb command cmd = cscaldb+' logfile="cscaldb_cmd1.log" chatter=1' diff --git a/test/test_python_cscripts.py b/test/test_python_cscripts.py index 2cd6a78..415ca2e 100755 --- a/test/test_python_cscripts.py +++ b/test/test_python_cscripts.py @@ -59,8 +59,9 @@ def test(installed=False, debug=False): dirname = os.path.dirname(testdir) # Copy over test data and irf - os.system("cp -r %s %s" % (dirname+"/data", "data")) - os.system("cp -r %s %s" % (dirname+"/irf", "irf")) + os.system("cp -r %s %s" % (dirname+"/data", "data")) + os.system("cp -r %s %s" % (dirname+"/iactdata", "iactdata")) + os.system("cp -r %s %s" % (dirname+"/irf", "irf")) # ... otherwise set the calibration database else: -- libgit2 0.21.4