Commit ab46b2ff297ac0260aa85047b207a586b3e0fd57

Authored by Jürgen Knödlseder
1 parent e77f96b3

Add installation of missing test files.

cscripts/Makefile.am
... ... @@ -42,13 +42,18 @@ testscripts = tests/__init__.py \
42 42 # Test data to be distributed in $(pyexecdir)/cscripts/tests/data
43 43 testdata = ../test/data/crab.xml \
44 44 ../test/data/obs_unbinned.xml \
  45 + ../test/data/obs_stacked.xml \
45 46 ../test/data/crab_events.fits.gz \
46 47 ../test/data/crab_cntmap.fits.gz \
  48 + ../test/data/crab_expcube.fits.gz \
  49 + ../test/data/crab_psfcube.fits.gz \
  50 + ../test/data/crab_bkgcube.fits.gz \
47 51 ../test/data/exclusion.reg \
48 52 ../test/data/pntdef.dat \
49 53 ../test/data/models.txt \
50 54 ../test/data/model_cube_background.xml \
51   - ../test/data/model_cube_background2.xml
  55 + ../test/data/model_cube_background2.xml \
  56 + ../test/data/crab_bkgcube.xml
52 57  
53 58 # Test data to be distributed in $(pyexecdir)/cscripts/tests/iactdata
54 59 testiactdata = ../test/iactdata/hdu-index.fits.gz \
... ...
test/test_cscaldb.py
... ... @@ -69,7 +69,7 @@ class Test(gammalib.GPythonTestSuite):
69 69 if os.path.isfile("README"):
70 70 cscaldb = "../cscripts/cscaldb.py"
71 71 else:
72   - cscaldb = "csfindobs"
  72 + cscaldb = "cscaldb"
73 73  
74 74 # Setup cscaldb command
75 75 cmd = cscaldb+' logfile="cscaldb_cmd1.log" chatter=1'
... ...
test/test_python_cscripts.py
... ... @@ -59,8 +59,9 @@ def test(installed=False, debug=False):
59 59 dirname = os.path.dirname(testdir)
60 60  
61 61 # Copy over test data and irf
62   - os.system("cp -r %s %s" % (dirname+"/data", "data"))
63   - os.system("cp -r %s %s" % (dirname+"/irf", "irf"))
  62 + os.system("cp -r %s %s" % (dirname+"/data", "data"))
  63 + os.system("cp -r %s %s" % (dirname+"/iactdata", "iactdata"))
  64 + os.system("cp -r %s %s" % (dirname+"/irf", "irf"))
64 65  
65 66 # ... otherwise set the calibration database
66 67 else:
... ...