aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_simple_get_authority.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_simple_get_authority.c')
-rw-r--r--src/gns/test_gns_simple_get_authority.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/gns/test_gns_simple_get_authority.c b/src/gns/test_gns_simple_get_authority.c
index 4a5406e98..66d93d6a2 100644
--- a/src/gns/test_gns_simple_get_authority.c
+++ b/src/gns/test_gns_simple_get_authority.c
@@ -18,7 +18,7 @@
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20/** 20/**
21 * @file gns/test_gns_simple_shorten.c 21 * @file gns/test_gns_simple_get_authority.c
22 * @brief basic shorten test for gns api 22 * @brief basic shorten test for gns api
23 * 23 *
24 */ 24 */
@@ -32,15 +32,9 @@
32#include "gnunet_dnsparser_lib.h" 32#include "gnunet_dnsparser_lib.h"
33#include "gnunet_gns_service.h" 33#include "gnunet_gns_service.h"
34 34
35/* DEFINES */
36#define VERBOSE GNUNET_YES
37
38/* Timeout for entire testcase */ 35/* Timeout for entire testcase */
39#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 20) 36#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 20)
40 37
41/* If number of peers not in config file, use this number */
42#define DEFAULT_NUM_PEERS 2
43
44/* test records to resolve */ 38/* test records to resolve */
45#define TEST_DOMAIN "www.alice.bob.gads" 39#define TEST_DOMAIN "www.alice.bob.gads"
46#define TEST_IP "127.0.0.1" 40#define TEST_IP "127.0.0.1"
@@ -309,21 +303,17 @@ void do_check (void *cls,
309 GNUNET_CRYPTO_rsa_key_free (our_key); 303 GNUNET_CRYPTO_rsa_key_free (our_key);
310} 304}
311 305
306
312int 307int
313main (int argc, char *argv[]) 308main (int argc, char *argv[])
314{ 309{
315 ok = 1; 310 ok = 1;
316
317 GNUNET_log_setup ("test-gns-simple-get-authority", 311 GNUNET_log_setup ("test-gns-simple-get-authority",
318#if VERBOSE
319 "DEBUG",
320#else
321 "WARNING", 312 "WARNING",
322#endif
323 NULL); 313 NULL);
324 314 GNUNET_TESTING_peer_run ("test-gns-simple-get-authority",
325 GNUNET_TESTING_peer_run ("test-gns-simple-get-authority", "test_gns_simple_lookup.conf", &do_check, NULL); 315 "test_gns_simple_lookup.conf",
326 316 &do_check, NULL);
327 return ok; 317 return ok;
328} 318}
329 319