aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_simple_shorten.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_simple_shorten.c')
-rw-r--r--src/gns/test_gns_simple_shorten.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c
index 23305c889..649dea59b 100644
--- a/src/gns/test_gns_simple_shorten.c
+++ b/src/gns/test_gns_simple_shorten.c
@@ -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"
@@ -332,21 +326,18 @@ void do_check (void *cls,
332 326
333} 327}
334 328
329
335int 330int
336main (int argc, char *argv[]) 331main (int argc, char *argv[])
337{ 332{
338 ok = 1; 333 ok = 1;
339
340 GNUNET_log_setup ("test-gns-simple-shorten", 334 GNUNET_log_setup ("test-gns-simple-shorten",
341#if VERBOSE
342 "DEBUG",
343#else
344 "WARNING", 335 "WARNING",
345#endif
346 NULL); 336 NULL);
347 337 GNUNET_TESTING_peer_run ("test-gns-simple-shorten",
348 GNUNET_TESTING_peer_run ("test-gns-simple-shorten", "test_gns_simple_lookup.conf", &do_check, NULL); 338 "test_gns_simple_lookup.conf",
339 &do_check, NULL);
349 return ok; 340 return ok;
350} 341}
351 342
352/* end of test_gns_twopeer.c */ 343/* end of test_gns_simple_shorten.c */