aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-24 21:56:12 +0000
committerGabor X Toth <*@tg-x.net>2014-07-24 21:56:12 +0000
commit8b60d961a48351edb4d23d5f13a36276405f54d1 (patch)
tree19d9a79c72e2ee77cf046f8dcfa65ecd9d561bd5 /src
parente6fcba3026918611e9c1018d0369ca42974c913f (diff)
downloadgnunet-8b60d961a48351edb4d23d5f13a36276405f54d1.tar.gz
gnunet-8b60d961a48351edb4d23d5f13a36276405f54d1.zip
social,psycstore: fix tests linking/debug
Diffstat (limited to 'src')
-rw-r--r--src/psycstore/test_psycstore.c8
-rw-r--r--src/social/Makefile.am8
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 @@
31#include "gnunet_testing_lib.h" 31#include "gnunet_testing_lib.h"
32#include "gnunet_psycstore_service.h" 32#include "gnunet_psycstore_service.h"
33 33
34#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) 34#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
35
36#define DEBUG_SERVICE 0
37 35
38 36
39/** 37/**
@@ -483,7 +481,7 @@ membership_store_result (void *cls, int64_t result, const char *err_msg)
483 * @param peer handle to access more of the peer (not used) 481 * @param peer handle to access more of the peer (not used)
484 */ 482 */
485static void 483static void
486#if DEBUG_SERVICE 484#if DEBUG_TEST_PSYCSTORE
487run (void *cls, char *const *args, const char *cfgfile, 485run (void *cls, char *const *args, const char *cfgfile,
488 const struct GNUNET_CONFIGURATION_Handle *cfg) 486 const struct GNUNET_CONFIGURATION_Handle *cfg)
489#else 487#else
@@ -513,7 +511,7 @@ int
513main (int argc, char *argv[]) 511main (int argc, char *argv[])
514{ 512{
515 res = 1; 513 res = 1;
516#if DEBUG_SERVICE 514#if DEBUG_TEST_PSYCSTORE
517 const struct GNUNET_GETOPT_CommandLineOption opts[] = { 515 const struct GNUNET_GETOPT_CommandLineOption opts[] = {
518 GNUNET_GETOPT_OPTION_END 516 GNUNET_GETOPT_OPTION_END
519 }; 517 };
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 = \
80 $(top_builddir)/src/testing/libgnunettesting.la \ 80 $(top_builddir)/src/testing/libgnunettesting.la \
81 $(top_builddir)/src/util/libgnunetutil.la \ 81 $(top_builddir)/src/util/libgnunetutil.la \
82 $(top_builddir)/src/env/libgnunetenv.la \ 82 $(top_builddir)/src/env/libgnunetenv.la \
83 $(top_builddir)/src/psyc/libgnunetpsycutil.la 83 $(top_builddir)/src/psyc/libgnunetpsycutil.la \
84 $(top_builddir)/src/core/libgnunetcore.la \
85 $(top_builddir)/src/identity/libgnunetidentity.la
84test_social_DEPENDENCIES = \ 86test_social_DEPENDENCIES = \
85 libgnunetsocial.la \ 87 libgnunetsocial.la \
86 $(top_builddir)/src/testing/libgnunettesting.la \ 88 $(top_builddir)/src/testing/libgnunettesting.la \
87 $(top_builddir)/src/util/libgnunetutil.la \ 89 $(top_builddir)/src/util/libgnunetutil.la \
88 $(top_builddir)/src/env/libgnunetenv.la \ 90 $(top_builddir)/src/env/libgnunetenv.la \
89 $(top_builddir)/src/psyc/libgnunetpsycutil.la 91 $(top_builddir)/src/psyc/libgnunetpsycutil.la \
92 $(top_builddir)/src/core/libgnunetcore.la \
93 $(top_builddir)/src/identity/libgnunetidentity.la
90 94
91EXTRA_DIST = \ 95EXTRA_DIST = \
92 test_social.conf 96 test_social.conf