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