From 8b60d961a48351edb4d23d5f13a36276405f54d1 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Thu, 24 Jul 2014 21:56:12 +0000 Subject: [PATCH] social,psycstore: fix tests linking/debug --- src/psycstore/test_psycstore.c | 8 +++----- src/social/Makefile.am | 8 ++++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c index 72415215d..8ecc7a96f 100644 --- a/src/psycstore/test_psycstore.c +++ b/src/psycstore/test_psycstore.c @@ -31,9 +31,7 @@ #include "gnunet_testing_lib.h" #include "gnunet_psycstore_service.h" -#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) - -#define DEBUG_SERVICE 0 +#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) /** @@ -483,7 +481,7 @@ membership_store_result (void *cls, int64_t result, const char *err_msg) * @param peer handle to access more of the peer (not used) */ static void -#if DEBUG_SERVICE +#if DEBUG_TEST_PSYCSTORE run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) #else @@ -513,7 +511,7 @@ int main (int argc, char *argv[]) { res = 1; -#if DEBUG_SERVICE +#if DEBUG_TEST_PSYCSTORE const struct GNUNET_GETOPT_CommandLineOption opts[] = { GNUNET_GETOPT_OPTION_END }; diff --git a/src/social/Makefile.am b/src/social/Makefile.am index bc81cea40..a1dff3c58 100644 --- a/src/social/Makefile.am +++ b/src/social/Makefile.am @@ -80,13 +80,17 @@ test_social_LDADD = \ $(top_builddir)/src/testing/libgnunettesting.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/env/libgnunetenv.la \ - $(top_builddir)/src/psyc/libgnunetpsycutil.la + $(top_builddir)/src/psyc/libgnunetpsycutil.la \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/identity/libgnunetidentity.la test_social_DEPENDENCIES = \ libgnunetsocial.la \ $(top_builddir)/src/testing/libgnunettesting.la \ $(top_builddir)/src/util/libgnunetutil.la \ $(top_builddir)/src/env/libgnunetenv.la \ - $(top_builddir)/src/psyc/libgnunetpsycutil.la + $(top_builddir)/src/psyc/libgnunetpsycutil.la \ + $(top_builddir)/src/core/libgnunetcore.la \ + $(top_builddir)/src/identity/libgnunetidentity.la EXTRA_DIST = \ test_social.conf -- 2.25.1