[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27011 - gnunet/src/stream
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27011 - gnunet/src/stream |
Date: |
Tue, 30 Apr 2013 14:19:36 +0200 |
Author: harsha
Date: 2013-04-30 14:19:35 +0200 (Tue, 30 Apr 2013)
New Revision: 27011
Added:
gnunet/src/stream/mesh-test.c
Modified:
gnunet/src/stream/Makefile.am
Log:
- mesh test case to show it doesn't respond to shutdown
Modified: gnunet/src/stream/Makefile.am
===================================================================
--- gnunet/src/stream/Makefile.am 2013-04-30 12:05:16 UTC (rev 27010)
+++ gnunet/src/stream/Makefile.am 2013-04-30 12:19:35 UTC (rev 27011)
@@ -33,6 +33,7 @@
test_stream_local \
test_stream_big \
test_stream_sequence_wraparound \
+ mesh-test \
$(STREAM_BENCHMARKS)
EXTRA_DIST = test_stream_local.conf
@@ -89,4 +90,9 @@
$(top_builddir)/src/stream/libgnunetstream.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testing/libgnunettesting.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la
\ No newline at end of file
+ $(top_builddir)/src/testbed/libgnunettestbed.la
+
+mesh_test_SOURCES = mesh-test.c
+mesh_test_LDADD = \
+ $(top_builddir)/src/mesh/libgnunetmesh.la \
+ $(top_builddir)/src/util/libgnunetutil.la
\ No newline at end of file
Added: gnunet/src/stream/mesh-test.c
===================================================================
--- gnunet/src/stream/mesh-test.c (rev 0)
+++ gnunet/src/stream/mesh-test.c 2013-04-30 12:19:35 UTC (rev 27011)
@@ -0,0 +1,31 @@
+#include "platform.h"
+#include "gnunet_common.h"
+#include "gnunet_util_lib.h"
+#include "gnunet_mesh_service.h"
+
+static void
+run (void *cls, char *const *args,
+ const char *cfgfile,
+ const struct GNUNET_CONFIGURATION_Handle *cfg)
+{
+ struct GNUNET_MESH_Handle *m;
+
+ m = GNUNET_MESH_connect (cfg, /* the configuration handle */
+ socket, /* cls */
+ NULL, /* No inbound tunnel handler */
+ NULL, /* No in-tunnel cleaner */
+ NULL,
+ NULL); /* We don't get inbound tunnels */
+}
+
+int
+main (int argc, char **argv)
+{
+ static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_OPTION_END
+ };
+ GNUNET_PROGRAM_run (argc, argv, "mesh-test",
+ "help",
+ options, &run, NULL);
+ return 0;
+}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27011 - gnunet/src/stream,
gnunet <=