Commit dea67fa561b44f672442d8a85f4adaefa6e47a29

Authored by Jürgen Knödlseder
1 parent e598adfa

Add instrument and optimizer tests.

Add the Python paths to the instrument test directories so that the test script can import the instrument test scripts.

Add GOptimizer test to the test suites.
Showing 1 changed file with 17 additions and 7 deletions
test/Makefile.am
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 if WITH_INST_MWL 8 if WITH_INST_MWL
9 INST_MWL = test_MWL 9 INST_MWL = test_MWL
10 INCL_MWL = -I$(top_srcdir)/inst/mwl/include 10 INCL_MWL = -I$(top_srcdir)/inst/mwl/include
  11 + TEST_MWL = :$(top_srcdir)/inst/mwl/test
11 test_MWL_SOURCES = $(top_srcdir)/inst/mwl/test/test_MWL.cpp 12 test_MWL_SOURCES = $(top_srcdir)/inst/mwl/test/test_MWL.cpp
12 test_MWL_LDFLAGS = @LDFLAGS@ 13 test_MWL_LDFLAGS = @LDFLAGS@
13 test_MWL_CPPFLAGS = @CPPFLAGS@ 14 test_MWL_CPPFLAGS = @CPPFLAGS@
@@ -16,6 +17,7 @@ endif @@ -16,6 +17,7 @@ endif
16 if WITH_INST_CTA 17 if WITH_INST_CTA
17 INST_CTA = test_CTA 18 INST_CTA = test_CTA
18 INCL_CTA = -I$(top_srcdir)/inst/cta/include 19 INCL_CTA = -I$(top_srcdir)/inst/cta/include
  20 + TEST_CTA = :$(top_srcdir)/inst/cta/test
19 test_CTA_SOURCES = $(top_srcdir)/inst/cta/test/test_CTA.cpp 21 test_CTA_SOURCES = $(top_srcdir)/inst/cta/test/test_CTA.cpp
20 test_CTA_LDFLAGS = @LDFLAGS@ 22 test_CTA_LDFLAGS = @LDFLAGS@
21 test_CTA_CPPFLAGS = @CPPFLAGS@ 23 test_CTA_CPPFLAGS = @CPPFLAGS@
@@ -24,6 +26,7 @@ endif @@ -24,6 +26,7 @@ endif
24 if WITH_INST_LAT 26 if WITH_INST_LAT
25 INST_LAT = test_LAT 27 INST_LAT = test_LAT
26 INCL_LAT = -I$(top_srcdir)/inst/lat/include 28 INCL_LAT = -I$(top_srcdir)/inst/lat/include
  29 + TEST_LAT = :$(top_srcdir)/inst/lat/test
27 test_LAT_SOURCES = $(top_srcdir)/inst/lat/test/test_LAT.cpp 30 test_LAT_SOURCES = $(top_srcdir)/inst/lat/test/test_LAT.cpp
28 test_LAT_LDFLAGS = @LDFLAGS@ 31 test_LAT_LDFLAGS = @LDFLAGS@
29 test_LAT_CPPFLAGS = @CPPFLAGS@ 32 test_LAT_CPPFLAGS = @CPPFLAGS@
@@ -33,7 +36,7 @@ endif @@ -33,7 +36,7 @@ endif
33 # Optional python bindings 36 # Optional python bindings
34 if WITH_PYTHON 37 if WITH_PYTHON
35 TEST_PYTHON_SCRIPT = test_python.py 38 TEST_PYTHON_SCRIPT = test_python.py
36 - TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext:$(PYTHONPATH) 39 + TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext$(TEST_MWL)$(TEST_CTA)$(TEST_LAT):$(PYTHONPATH)
37 endif 40 endif
38 41
39 # Darwin support 42 # Darwin support
@@ -60,7 +63,8 @@ check_PROGRAMS = test_GSupport \ @@ -60,7 +63,8 @@ check_PROGRAMS = test_GSupport \
60 test_GApplication \ 63 test_GApplication \
61 test_GModel \ 64 test_GModel \
62 test_GSky \ 65 test_GSky \
63 - test_GObservations \ 66 + test_GOptimizer \
  67 + test_GObservation \
64 $(INST_MWL) $(INST_CTA) $(INST_LAT) 68 $(INST_MWL) $(INST_CTA) $(INST_LAT)
65 69
66 # Set test environment (needed for linking with cfitsio and readline) 70 # Set test environment (needed for linking with cfitsio and readline)
@@ -79,7 +83,8 @@ TESTS = test_GSupport \ @@ -79,7 +83,8 @@ TESTS = test_GSupport \
79 test_GApplication \ 83 test_GApplication \
80 test_GModel \ 84 test_GModel \
81 test_GSky \ 85 test_GSky \
82 - test_GObservations \ 86 + test_GOptimizer \
  87 + test_GObservation \
83 $(INST_MWL) $(INST_CTA) $(INST_LAT) \ 88 $(INST_MWL) $(INST_CTA) $(INST_LAT) \
84 $(TEST_PYTHON_SCRIPT) 89 $(TEST_PYTHON_SCRIPT)
85 90
@@ -139,10 +144,15 @@ test_GSky_LDFLAGS = @LDFLAGS@ @@ -139,10 +144,15 @@ test_GSky_LDFLAGS = @LDFLAGS@
139 test_GSky_CPPFLAGS = @CPPFLAGS@ 144 test_GSky_CPPFLAGS = @CPPFLAGS@
140 test_GSky_LDADD = $(top_srcdir)/src/libgamma.la 145 test_GSky_LDADD = $(top_srcdir)/src/libgamma.la
141 # 146 #
142 -test_GObservations_SOURCES = test_GObservations.cpp  
143 -test_GObservations_LDFLAGS = @LDFLAGS@  
144 -test_GObservations_CPPFLAGS = @CPPFLAGS@  
145 -test_GObservations_LDADD = $(top_srcdir)/src/libgamma.la 147 +test_GOptimizer_SOURCES = test_GOptimizer.cpp
  148 +test_GOptimizer_LDFLAGS = @LDFLAGS@
  149 +test_GOptimizer_CPPFLAGS = @CPPFLAGS@
  150 +test_GOptimizer_LDADD = $(top_srcdir)/src/libgamma.la
  151 +#
  152 +test_GObservation_SOURCES = test_GObservation.cpp
  153 +test_GObservation_LDFLAGS = @LDFLAGS@
  154 +test_GObservation_CPPFLAGS = @CPPFLAGS@
  155 +test_GObservation_LDADD = $(top_srcdir)/src/libgamma.la
146 156
147 # Add Valgrind rule 157 # Add Valgrind rule
148 valgrind: 158 valgrind: