[binoclars-ng] added the tth_azimuth projection for mars.
[hkl.git] / tests / Makefile.am
bloba7fcaf43bdab6e17e5c815a91065acb0e02bf688
1 SUBDIRS = tap .
2 if HAVE_INTROSPECTION
3 SUBDIRS += bindings
4 endif
6 all_tests = \
7         hkl-unit-t \
8         hkl-bench-t \
9         hkl-axis-t \
10         hkl-quaternion-t \
11         hkl-interval-t \
12         hkl-sample-t \
13         hkl-lattice-t \
14         hkl-source-t \
15         hkl-detector-t \
16         hkl-matrix-t \
17         hkl-vector-t \
18         hkl-geometry-t \
19         hkl-parameter-t \
20         hkl-pseudoaxis-t \
21         hkl-pseudoaxis-e4cv-t \
22         hkl-pseudoaxis-e4ch-t \
23         hkl-pseudoaxis-e6c-t \
24         hkl-pseudoaxis-k4cv-t \
25         hkl-pseudoaxis-k6c-t \
26         hkl-pseudoaxis-soleil-nanoscopium-robot-t \
27         hkl-pseudoaxis-soleil-sirius-kappa-t \
28         hkl-pseudoaxis-soleil-sixs-med-t \
29         hkl-pseudoaxis-zaxis-t
31 AM_CPPFLAGS = -Wextra -D_DEFAULT_SOURCE \
32         -I$(top_srcdir) \
33         -I$(top_srcdir)/hkl \
34         -I$(top_srcdir)/tests \
35         $(DATATYPE99_CFLAGS) \
36         $(GLIB_CFLAGS) \
37         $(GOBJECT_CFLAGS) \
38         $(GSL_CFLAGS)
40 AM_LDFLAGS = -Wl,--whole-archive,$(top_builddir)/hkl/.libs/libhkl.a,--no-whole-archive
42 LDADD = $(top_builddir)/hkl/libhkl.la \
43         $(top_builddir)/hkl/api2/libhkl2.la \
44         $(top_builddir)/tests/tap/libtap.a \
45         $(GLIB_LIBS) \
46         $(GOBJECT_LIBS) \
47         $(GSL_LIBS)
49 if BINOCULARS
51 all_tests += hkl-binoculars-t
53 AM_CPPFLAGS += -I$(top_srcdir)/binoculars-ng/binoculars
55 LDADD += $(top_builddir)/binoculars-ng/binoculars/libhkl-binoculars.la
57 endif
60 if HKL3D
62 all_tests += hkl3d-test-t
64 # force linkage with g++
65 nodist_EXTRA_hkl3d_test_t_SOURCES = dummy.cxx
67 AM_CPPFLAGS += -I$(top_srcdir)/hkl3d \
68         $(G3D_CFLAGS) \
69         $(BULLET_CFLAGS)
71 LDADD += $(top_builddir)/hkl3d/libhkl3d.la \
72         $(BULLET_LIBS)
74 endif
76 check_PROGRAMS = runtests $(all_tests)
78 ## tap tests
80 check-local: $(check_PROGRAMS)
81         ./runtests -v -s $(abs_top_srcdir) $(all_tests)
83 valgrind:
84         G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes .libs/hkl-bench-t
86 # Support for GNU Flymake, in Emacs.
87 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
88 check-syntax:
89         test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)
91 .PHONY: check-syntax valgrind