[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29159 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29159 - gnunet/src/gns |
Date: |
Tue, 10 Sep 2013 14:17:18 +0200 |
Author: schanzen
Date: 2013-09-10 14:17:18 +0200 (Tue, 10 Sep 2013)
New Revision: 29159
Added:
gnunet/src/gns/test_gns_lookup.conf
gnunet/src/gns/test_gns_lookup.sh
Log:
-begin new test cases
Added: gnunet/src/gns/test_gns_lookup.conf
===================================================================
--- gnunet/src/gns/test_gns_lookup.conf (rev 0)
+++ gnunet/src/gns/test_gns_lookup.conf 2013-09-10 12:17:18 UTC (rev 29159)
@@ -0,0 +1,100 @@
address@hidden@ test_gns_defaults.conf
+[fs]
+AUTOSTART = NO
+
+[resolver]
+AUTOSTART = YES
+HOSTNAME = localhost
+
+[dht]
+AUTOSTART = YES
+ACCEPT_FROM6 = ::1;
+ACCEPT_FROM = 127.0.0.1;
+HOSTNAME = localhost
+PORT = 12100
+BINARY = gnunet-service-dht
+
+[dhtcache]
+QUOTA = 1 MB
+DATABASE = heap
+
+[transport]
+PLUGINS = tcp
+ACCEPT_FROM6 = ::1;
+ACCEPT_FROM = 127.0.0.1;
+NEIGHBOUR_LIMIT = 50
+PORT = 12365
+
+[ats]
+WAN_QUOTA_IN = 1 GB
+WAN_QUOTA_OUT = 1 GB
+
+[core]
+PORT = 12092
+
+[arm]
+DEFAULTSERVICES = core dht namestore gns
+PORT = 12366
+
+[transport-tcp]
+TIMEOUT = 300 s
+PORT = 12368
+BINDTO = 127.0.0.1
+
+[PATHS]
+SERVICEHOME = /tmp/test-gnunetd-gns-peer-1/
+
+
+[nat]
+DISABLEV6 = YES
+ENABLE_UPNP = NO
+BEHIND_NAT = NO
+ALLOW_NAT = NO
+INTERNAL_ADDRESS = 127.0.0.1
+EXTERNAL_ADDRESS = 127.0.0.1
+USE_LOCALADDR = NO
+
+[dns]
+AUTOSTART = YES
+DNS_EXIT = 8.8.8.8
+
+[gns]
+#PREFIX = valgrind --leak-check=full --track-origins=yes
+AUTOSTART = YES
+BINARY = gnunet-service-gns
+ZONEKEY = zonefiles/test_zonekey
+PRIVATE_ZONE = private
+PRIVATE_ZONEKEY =
zonefiles/OEFL7A4VEF1B40QLEMTG5D8G1CN6EN16QUSG5R2DT71GRJN34LSG.zkey
+SHORTEN_ZONE = short
+SHORTEN_ZONEKEY =
zonefiles/188JSUMKEF25GVU8TTV0PBNNN8JVCPUEDFV1UHJJU884JD25V0T0.zkey
+#ZONEKEY = $SERVICEHOME/gns/zonekey.zkey
+HIJACK_DNS = NO
+UNIXPATH = /tmp/gnunet-service-gns.sock
+HOME = $SERVICEHOME
+AUTO_IMPORT_PKEY = YES
+MAX_PARALLEL_BACKGROUND_QUERIES = 10
+DEFAULT_LOOKUP_TIMEOUT = 15 s
+RECORD_PUT_INTERVAL = 1 h
+
+[nse]
+AUTOSTART = NO
+
+[statistics]
+AUTOSTART = NO
+
+[namestore]
+PORT = 22371
+AUTOSTART = YES
+UNIXPATH = /tmp/gnunet-service-namestore-default.sock
+UNIX_MATCH_UID = YES
+UNIX_MATCH_GID = YES
+HOSTNAME = localhost
+HOME = $SERVICEHOME
+BINARY = gnunet-service-namestore
+ACCEPT_FROM = 127.0.0.1;
+ACCEPT_FROM6 = ::1;
+DATABASE = sqlite
+ZONEFILE_DIRECTORY = $SERVICEHOME
+
+[namestore-sqlite]
+FILENAME = $SERVICEHOME/sqlite-default.db
Added: gnunet/src/gns/test_gns_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_lookup.sh (rev 0)
+++ gnunet/src/gns/test_gns_lookup.sh 2013-09-10 12:17:18 UTC (rev 29159)
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+TEST_IP="127.0.0.1"
+
+gnunet-arm -s -c test_gns_lookup.conf
+
+gnunet-identity -C testego -c test_gns_lookup.conf
+
+gnunet-namestore -z testego -a -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
+
+RES_IP=$(gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf)
+
+gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
+
+gnunet-arm -e -c test_gns_lookup.conf
+
+if [ "$RES_IP" == "$TEST_IP" ]
+then
+ echo "OK"
+ exit 0
+else
+ echo "Result $RES_IP NOTOK"
+ exit 1
+fi
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29159 - gnunet/src/gns,
gnunet <=