diff --git a/configure.ac b/configure.ac index 536a3a0..42a2644 100644 --- a/configure.ac +++ b/configure.ac @@ -327,6 +327,7 @@ AC_CONFIG_FILES([Makefile src/ctbin/Makefile src/ctlike/Makefile src/ctobssim/Makefile + src/ctskymap/Makefile src/ctools-setup test/Makefile test/test_cscripts.sh diff --git a/src/Makefile.am b/src/Makefile.am index 4be73c3..2a4d483 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,7 +4,8 @@ SUBDIRS = ctselect \ ctbin \ ctlike \ - ctobssim + ctobssim \ + ctskymap # Scripts to be distributed scripts = ctools-setup \ @@ -19,7 +20,8 @@ libctools_la_SOURCES = libctools_la_LIBADD = ctbin/libctbin.la \ ctselect/libctselect.la \ ctlike/libctlike.la \ - ctobssim/libctobssim.la + ctobssim/libctobssim.la \ + ctskymap/libctskymap.la # Distribute scripts EXTRA_DIST = $(scripts) diff --git a/test/Makefile.am b/test/Makefile.am index 9466778..f8b44d5 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -9,7 +9,11 @@ endif # Set test environment TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(prefix)/lib:$(LD_LIBRARY_PATH) \ - PATH=$(top_builddir)/src/ctobssim:$(top_builddir)/src/ctbin:$(top_builddir)/src/ctselect:$(top_builddir)/src/ctlike:$(PATH) \ + PATH=$(top_builddir)/src/ctobssim:$(PATH) \ + PATH=$(top_builddir)/src/ctbin:$(PATH) \ + PATH=$(top_builddir)/src/ctselect:$(PATH) \ + PATH=$(top_builddir)/src/ctlike:$(PATH) \ + PATH=$(top_builddir)/src/ctskymap:$(PATH) \ $(TEST_PYTHON_ENV) # Tests (these are the tests to be executed) diff --git a/test/test_ctools.sh b/test/test_ctools.sh index e1157d6..45a4c67 100755 --- a/test/test_ctools.sh +++ b/test/test_ctools.sh @@ -69,6 +69,32 @@ echo " ok" # +# Test ctskymap +# ============= +echo -n "Test ctskymap: " +ctskymap evfile="events.fits" \ + outfile="skymap.fits" \ + emin=0.1 \ + emax=100.0 \ + nxpix=200 \ + nypix=200 \ + binsz=0.02 \ + coordsys="CEL" \ + xref=83.63 \ + yref=22.01 \ + proj="CAR" +echo -n "." +if [ -s "skymap.fits" ] +then + echo -n "." +else + echo " skymap.fits file is not valid" + exit 1 +fi +echo " ok" + + +# # Test ctbin # ========== echo -n "Test ctbin: "