check_PROGRAMS = \
test_gnunet_daemon_hostlist \
+ test_gnunet_hostlist \
test_gnunet_daemon_hostlist_learning
if HAVE_MHD
-TESTS = test_gnunet_daemon_hostlist \
- test_gnunet_daemon_hostlist_learning
+TESTS = \
+ test_gnunet_daemon_hostlist \
+ test_gnunet_daemon_hostlist_learning \
+ test_gnunet_hostlist
endif
test_gnunet_daemon_hostlist_SOURCES = \
$(top_builddir)/src/arm/libgnunetarm.la \
$(top_builddir)/src/util/libgnunetutil.la
+test_gnunet_hostlist_SOURCES = \
+ test_gnunet_hostlist.c
+test_gnunet_hostlist_LDADD = \
+ $(top_builddir)/src/transport/libgnunettransport.la \
+ $(top_builddir)/src/arm/libgnunetarm.la \
+ $(top_builddir)/src/core/libgnunetcore.la \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(top_builddir)/src/util/libgnunetutil.la
+
test_gnunet_daemon_hostlist_learning_SOURCES = \
test_gnunet_daemon_hostlist_learning.c
test_gnunet_daemon_hostlist_learning_LDADD = \
/**
* How long until wait until testcases fails
*/
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 240)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
#define CHECK_INTERVALL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
static int timeout;
static void shutdown_testcase()
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown testcase....\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping Timeout Task.\n");
if (timeout_task != GNUNET_SCHEDULER_NO_TASK)
{
GNUNET_SCHEDULER_cancel (sched,
GNUNET_SCHEDULER_add_now (sched,
&waitpid_task, &adv_peer);
GNUNET_SCHEDULER_shutdown (sched);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown complete....\n");
}
/**