X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=29ed270ed84fa791186a88dde2eaebe9a00b36ff;hp=16358591d760b3f33e0740171d1f3d81871cc722;hb=2c4f7c6b6549f8b95845f1838dd0dc710c9e8304;hpb=c657583832cbf675516a105c1f7bbc6bebea6e34 diff --git a/tests/Makefile.am b/tests/Makefile.am index 16358591..29ed270e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,3 +1,9 @@ +CLEANFILES= + +include $(top_srcdir)/rules/check.mak + +SUPPRESSIONS=valgrind.supp dlopen.supp + AM_CPPFLAGS = \ -I$(top_srcdir) \ $(EMPATHY_CFLAGS) \ @@ -8,8 +14,29 @@ LDADD = \ $(top_builddir)/libempathy/libempathy.la \ $(EMPATHY_LIBS) -noinst_PROGRAMS = \ +bin_PROGRAMS = \ contact-manager contact_manager_SOURCES = contact-manager.c +if HAVE_CHECK +check_PROGRAMS = check-main +TESTS = check-main +check_main_SOURCES = \ + check-main.c \ + check-helpers.c \ + check-helpers.h \ + check-libempathy.h \ + check-empathy-utils.c + +check_main_LDADD = \ + @CHECK_LIBS@ \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la \ + $(top_builddir)/libempathy/libempathy.la \ + $(AM_LDFLAGS) + +check_main_CFLAGS = \ + @CHECK_CFLAGS@ \ + $(AM_CFLAGS) + +endif