aboutsummaryrefslogtreecommitdiff
path: root/src/ats/perf_ats.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-08-05 12:49:28 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-08-05 12:49:28 +0000
commit72947853f7e945a53b8d8902b0caaaf5f2f8c98a (patch)
treec6a9bfd5188883ec42067f04d824559779325839 /src/ats/perf_ats.c
parent6311b1d73410f4a95c1fa634de11e1b22019e38d (diff)
downloadgnunet-72947853f7e945a53b8d8902b0caaaf5f2f8c98a.tar.gz
gnunet-72947853f7e945a53b8d8902b0caaaf5f2f8c98a.zip
basics for generic ats benchmark
Diffstat (limited to 'src/ats/perf_ats.c')
-rw-r--r--src/ats/perf_ats.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/ats/perf_ats.c b/src/ats/perf_ats.c
new file mode 100644
index 000000000..1576361b7
--- /dev/null
+++ b/src/ats/perf_ats.c
@@ -0,0 +1,64 @@
1/*
2 This file is part of GNUnet.
3 (C) 2010,2011 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20/**
21 * @file ats/test_ats.c
22 * @brief ats benchmark
23 * @author Christian Grothoff
24 * @author Matthias Wachs
25 */
26#include "platform.h"
27#include "gnunet_util_lib.h"
28
29static int ret;
30
31static void
32check (void *cls, char *const *args, const char *cfgfile,
33 const struct GNUNET_CONFIGURATION_Handle *cfg)
34{
35 ret = 0;
36}
37
38
39int
40main (int argc, char *argv[])
41{
42
43 static char *const argv2[] = { "perf_ats",
44 "-c",
45 "perf_ats.conf",
46 "-L", "WARNING",
47 NULL
48 };
49
50 ret = 1;
51
52 static struct GNUNET_GETOPT_CommandLineOption options[] = {
53 GNUNET_GETOPT_OPTION_END
54 };
55
56 GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
57 "perf_ats", "nohelp", options,
58 &check, NULL);
59
60
61 return ret;
62}
63
64/* end of file perf_ats.c */