post release commit
[hkl.git] / tests / Makefile.am
blob162baa0e62c0555357b4fdf1ca030b0d78e61d02
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-pseudoaxis-t \
11         hkl-quaternion-t \
12         hkl-interval-t \
13         hkl-pseudoaxis-e4cv-t \
14         hkl-pseudoaxis-e4ch-t \
15         hkl-sample-t \
16         hkl-lattice-t \
17         hkl-pseudoaxis-e6c-t \
18         hkl-source-t \
19         hkl-detector-t \
20         hkl-matrix-t \
21         hkl-pseudoaxis-k4cv-t \
22         hkl-vector-t \
23         hkl-geometry-t \
24         hkl-parameter-t \
25         hkl-pseudoaxis-k6c-t \
26         hkl-pseudoaxis-zaxis-t \
27         hkl-pseudoaxis-soleil-sixs-med-t
29 AM_CPPFLAGS = -Wextra -D_BSD_SOURCE \
30         -I$(top_srcdir) \
31         -I$(top_srcdir)/hkl \
32         -I$(top_srcdir)/tests \
33         $(GLIB_CFLAGS) \
34         $(GSL_CFLAGS)
36 LDADD = $(top_builddir)/hkl/libhkl.la \
37         $(top_builddir)/tests/tap/libtap.a \
38         $(GLIB_LIBS) \
39         $(GSL_LIBS)
41 if HKL3D
43 all_tests += hkl3d-test-t
45 # force linkage with g++
46 nodist_EXTRA_hkl3d_test_t_SOURCES = dummy.cxx
48 AM_CPPFLAGS += -I$(top_srcdir)/hkl3d \
49         $(G3D_CFLAGS) \
50         $(BULLET_CFLAGS)
52 LDADD += $(top_builddir)/hkl3d/libhkl3d.la \
53         $(BULLET_LIBS)
55 endif
57 check_PROGRAMS = runtests $(all_tests)
59 ## tap tests
61 check-local: $(check_PROGRAMS)
62         ./runtests -v -s $(abs_top_srcdir) $(all_tests)
64 # Support for GNU Flymake, in Emacs.
65 check-syntax: AM_CFLAGS += -fsyntax-only -pipe
66 check-syntax:
67         test -z "$(CHK_SOURCES)" || $(COMPILE) $(CHK_SOURCES)
69 .PHONY: check-syntax