Add "check" framework support. Fixes bug #505622 (Guillaume Desmottes).
[empathy.git] / tests / Makefile.am
1 CLEANFILES=
2
3 include $(top_srcdir)/rules/check.mak
4
5 SUPPRESSIONS=valgrind.supp dlopen.supp
6
7 AM_CPPFLAGS =                                           \
8         -I$(top_srcdir)                                 \
9         $(EMPATHY_CFLAGS)                               \
10         $(WARN_CFLAGS)
11
12 LDADD =                                                         \
13         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
14         $(top_builddir)/libempathy/libempathy.la                \
15         $(EMPATHY_LIBS)
16
17 bin_PROGRAMS =                  \
18         contact-manager
19
20 contact_manager_SOURCES = contact-manager.c
21
22 if HAVE_CHECK
23 check_PROGRAMS = check-main
24 TESTS = check-main
25 check_main_SOURCES =                             \
26     check-main.c                                 \
27     check-helpers.c                              \
28     check-helpers.h                              \
29     check-libempathy.h                           \
30     check-empathy-utils.c
31
32 check_main_LDADD = \
33     @CHECK_LIBS@ \
34     $(top_builddir)/libempathy-gtk/libempathy-gtk.la    \
35     $(top_builddir)/libempathy/libempathy.la            \
36     $(AM_LDFLAGS)
37
38 check_main_CFLAGS = \
39     @CHECK_CFLAGS@ \
40     $(AM_CFLAGS)
41
42 endif