diff options
author | xrs <xrs@mail36.net> | 2020-02-29 19:12:19 +0100 |
---|---|---|
committer | xrs <xrs@mail36.net> | 2020-05-21 22:46:48 +0200 |
commit | 4fa906387acd7e77d7521300602268927ddd9699 (patch) | |
tree | 5ae4ad50b09e7f4805370a54edd94b6c09ea9cc1 /src/cadet/test_cadeT_util.h | |
parent | 2679c684b9f48935debb3ae5456bd2c064fa7ad0 (diff) | |
download | gnunet-4fa906387acd7e77d7521300602268927ddd9699.tar.gz gnunet-4fa906387acd7e77d7521300602268927ddd9699.zip |
separate testbed management from test logic
Diffstat (limited to 'src/cadet/test_cadeT_util.h')
-rw-r--r-- | src/cadet/test_cadeT_util.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/cadet/test_cadeT_util.h b/src/cadet/test_cadeT_util.h new file mode 100644 index 000000000..361c10a26 --- /dev/null +++ b/src/cadet/test_cadeT_util.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2009 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your 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 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file cadet/test_cadeT_util.h | ||
22 | * @brief testcase for cadet.c | ||
23 | * @author xrs | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "gnunet_testbed_service.h" | ||
28 | #include "cadet.h" | ||
29 | |||
30 | #define REQUESTED_PEERS 2 | ||
31 | #define TIMEOUT_IN_SEC 5 | ||
32 | #define PORTNAME "cadet_port" | ||
33 | |||
34 | int test_result; | ||
35 | |||
36 | void connect_to_peers (); | ||
37 | |||
38 | void run_test (); | ||