From 94555b797918b40e4ea57531d046bf0ad3bd9fb0 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 6 Nov 2015 15:26:33 +0100 Subject: [PATCH] Added small test cubes to test/data and adjusted unit test case --- test/data/crab_bkgcube.fits.gz | Bin 0 -> 49703 bytes test/data/crab_bkgcube.xml | 21 +++++++++++++++++++++ test/data/crab_expcube.fits.gz | Bin 0 -> 50647 bytes test/data/crab_psfcube.fits.gz | Bin 0 -> 6654 bytes test/test_cscripts.sh.in | 12 ++++++------ 5 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 test/data/crab_bkgcube.fits.gz create mode 100644 test/data/crab_bkgcube.xml create mode 100644 test/data/crab_expcube.fits.gz create mode 100644 test/data/crab_psfcube.fits.gz diff --git a/test/data/crab_bkgcube.fits.gz b/test/data/crab_bkgcube.fits.gz new file mode 100644 index 0000000..5ffb71d Binary files /dev/null and b/test/data/crab_bkgcube.fits.gz differ diff --git a/test/data/crab_bkgcube.xml b/test/data/crab_bkgcube.xml new file mode 100644 index 0000000..d1c6b9f --- /dev/null +++ b/test/data/crab_bkgcube.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/test/data/crab_expcube.fits.gz b/test/data/crab_expcube.fits.gz new file mode 100644 index 0000000..83510b2 Binary files /dev/null and b/test/data/crab_expcube.fits.gz differ diff --git a/test/data/crab_psfcube.fits.gz b/test/data/crab_psfcube.fits.gz new file mode 100644 index 0000000..27336cb Binary files /dev/null and b/test/data/crab_psfcube.fits.gz differ diff --git a/test/test_cscripts.sh.in b/test/test_cscripts.sh.in index 252659e..7f13dbb 100755 --- a/test/test_cscripts.sh.in +++ b/test/test_cscripts.sh.in @@ -36,7 +36,7 @@ $ECHO "*****************" # # Remove any existing result files # ================================ -rm -rf spectrum*.fits lightcurve*.fits resmap*.fits obs.xml *.dat +rm -rf *.fits *.xml *.dat # @@ -227,11 +227,11 @@ $ECHO " ok" $ECHO -n "Test csspec (binned): " chmod +x @abs_top_srcdir@/cscripts/csspec.py @abs_top_srcdir@/cscripts/csspec.py \ - inobs="cntmap2.fits" \ - expcube="expcube2.fits" \ - psfcube="psfcube2.fits" \ - bkgcube="bkgcube2.fits" \ - inmodel="bkgcube2.xml" \ + inobs="data/crab_cntmap_small.fits.gz" \ + expcube="data/crab_expcube.fits.gz" \ + psfcube="data/crab_psfcube.fits.gz" \ + bkgcube="data/crab_bkgcube.fits.gz" \ + inmodel="data/crab_bkgcube.xml" \ enumbins=2 \ emin=0.1 \ emax=100.0 \ -- libgit2 0.21.4