aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-set-profiler.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-06-25 15:13:03 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-06-25 15:13:03 +0000
commitf57b66b0a8bd21a7c0ad1baeb867d0021f48589f (patch)
tree9b783b774caf869ce580f140e7fe1f1bcac21b3e /src/set/gnunet-set-profiler.c
parentd8e10eda1f8dcf1bd81847b0e7bac188ddd357d8 (diff)
downloadgnunet-f57b66b0a8bd21a7c0ad1baeb867d0021f48589f.tar.gz
gnunet-f57b66b0a8bd21a7c0ad1baeb867d0021f48589f.zip
mesh bug for bart
Diffstat (limited to 'src/set/gnunet-set-profiler.c')
-rw-r--r--src/set/gnunet-set-profiler.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/src/set/gnunet-set-profiler.c b/src/set/gnunet-set-profiler.c
index bbaef7c43..0a2c2779b 100644
--- a/src/set/gnunet-set-profiler.c
+++ b/src/set/gnunet-set-profiler.c
@@ -183,18 +183,9 @@ set_insert_iterator (void *cls,
183} 183}
184 184
185 185
186/**
187 * Signature of the 'main' function for a (single-peer) testcase that
188 * is run using 'GNUNET_TESTING_peer_run'.
189 *
190 * @param cls closure
191 * @param cfg configuration of the peer that was started
192 * @param peer identity of the peer that was created
193 */
194static void 186static void
195test_main (void *cls, 187run (void *cls, char *const *args, const char *cfgfile,
196 const struct GNUNET_CONFIGURATION_Handle *cfg, 188 const struct GNUNET_CONFIGURATION_Handle *cfg)
197 struct GNUNET_TESTING_Peer *peer)
198{ 189{
199 unsigned int i; 190 unsigned int i;
200 struct GNUNET_HashCode hash; 191 struct GNUNET_HashCode hash;
@@ -283,16 +274,6 @@ test_main (void *cls,
283 GNUNET_SET_commit (set_oh1, set_a); 274 GNUNET_SET_commit (set_oh1, set_a);
284} 275}
285 276
286static void
287run (void *cls, char *const *args, const char *cfgfile,
288 const struct GNUNET_CONFIGURATION_Handle *cfg)
289{
290
291 ret = GNUNET_TESTING_peer_run ("test_set_api",
292 "test_set.conf",
293 &test_main, NULL);
294}
295
296 277
297int 278int
298main (int argc, char **argv) 279main (int argc, char **argv)
@@ -304,7 +285,7 @@ main (int argc, char **argv)
304 { 'B', "num-second", NULL, 285 { 'B', "num-second", NULL,
305 gettext_noop ("number of values"), 286 gettext_noop ("number of values"),
306 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_b }, 287 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_b },
307 { 'B', "num-common", NULL, 288 { 'C', "num-common", NULL,
308 gettext_noop ("number of values"), 289 gettext_noop ("number of values"),
309 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_c }, 290 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_c },
310 { 'x', "operation", NULL, 291 { 'x', "operation", NULL,
@@ -312,9 +293,9 @@ main (int argc, char **argv)
312 GNUNET_YES, &GNUNET_GETOPT_set_string, &op_str }, 293 GNUNET_YES, &GNUNET_GETOPT_set_string, &op_str },
313 GNUNET_GETOPT_OPTION_END 294 GNUNET_GETOPT_OPTION_END
314 }; 295 };
315 GNUNET_PROGRAM_run2 (argc, argv, "gnunet-consensus", 296 GNUNET_PROGRAM_run (argc, argv, "gnunet-set-profiler",
316 "help", 297 "help",
317 options, &run, NULL, GNUNET_YES); 298 options, &run, NULL);
318 return ret; 299 return ret;
319} 300}
320 301