aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing-main.c')
-rw-r--r--src/transport/transport-testing-main.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/transport/transport-testing-main.c b/src/transport/transport-testing-main.c
new file mode 100644
index 000000000..9cda749fe
--- /dev/null
+++ b/src/transport/transport-testing-main.c
@@ -0,0 +1,48 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2016 GNUnet e.V.
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., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20/**
21 * @file transport-testing-main.c
22 * @brief convenience main function for tests
23 * @author Christian Grothoff
24 */
25#include "transport-testing.h"
26
27
28/**
29 * Setup testcase. Calls @a check with the data the test needs.
30 *
31 * @param argv0 binary name (argv[0])
32 * @param filename source file name (__FILE__)
33 * @param num_peers number of peers to start
34 * @param check main function to run
35 * @param check_cls closure for @a check
36 * @return #GNUNET_OK on success
37 */
38int
39GNUNET_TRANSPORT_TESTING_main_ (const char *argv0,
40 const char *filename,
41 unsigned int num_peers,
42 GNUNET_TRANSPORT_TESTING_CheckCallback check,
43 void *check_cls)
44{
45 return GNUNET_SYSERR;
46}
47
48/* end of transport-testing-main.c */