aboutsummaryrefslogtreecommitdiff
path: root/src/gns
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns')
-rw-r--r--src/gns/test_dns2gns.conf2
-rw-r--r--src/gns/test_gns_lookup.conf2
-rw-r--r--src/gns/test_gns_lookup_peer1.conf2
-rw-r--r--src/gns/test_gns_lookup_peer2.conf2
-rw-r--r--src/gns/test_gns_proxy.conf2
-rwxr-xr-xsrc/gns/test_proxy.sh17
6 files changed, 15 insertions, 12 deletions
diff --git a/src/gns/test_dns2gns.conf b/src/gns/test_dns2gns.conf
index 3b034f8d5..f484d4114 100644
--- a/src/gns/test_dns2gns.conf
+++ b/src/gns/test_dns2gns.conf
@@ -22,7 +22,7 @@ DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
22 22
23[namestore] 23[namestore]
24IMMEDIATE_START = YES 24IMMEDIATE_START = YES
25#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log 25#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=$GNUNET_TMP/ns_log
26 26
27[revocation] 27[revocation]
28WORKBITS = 1 28WORKBITS = 1
diff --git a/src/gns/test_gns_lookup.conf b/src/gns/test_gns_lookup.conf
index db0b4bfbe..01f94cf2d 100644
--- a/src/gns/test_gns_lookup.conf
+++ b/src/gns/test_gns_lookup.conf
@@ -20,7 +20,7 @@ ZONE_PUBLISH_TIME_WINDOW = 1 h
20DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 20DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
21 21
22[namestore] 22[namestore]
23#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log 23#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=$GNUNET_TMP/ns_log
24 24
25[revocation] 25[revocation]
26WORKBITS = 2 26WORKBITS = 2
diff --git a/src/gns/test_gns_lookup_peer1.conf b/src/gns/test_gns_lookup_peer1.conf
index 1cf0ba628..69e2f0973 100644
--- a/src/gns/test_gns_lookup_peer1.conf
+++ b/src/gns/test_gns_lookup_peer1.conf
@@ -24,7 +24,7 @@ DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
24 24
25[namestore] 25[namestore]
26IMMEDIATE_START = YES 26IMMEDIATE_START = YES
27#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log 27#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=$GNUNET_TMP/ns_log
28 28
29[revocation] 29[revocation]
30WORKBITS = 1 30WORKBITS = 1
diff --git a/src/gns/test_gns_lookup_peer2.conf b/src/gns/test_gns_lookup_peer2.conf
index 2e861ff0a..3de81d7f3 100644
--- a/src/gns/test_gns_lookup_peer2.conf
+++ b/src/gns/test_gns_lookup_peer2.conf
@@ -29,7 +29,7 @@ DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
29 29
30[namestore] 30[namestore]
31IMMEDIATE_START = YES 31IMMEDIATE_START = YES
32#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=/tmp/ns_log 32#PREFIX = valgrind --leak-check=full --track-origins=yes --log-file=$GNUNET_TMP/ns_log
33 33
34[revocation] 34[revocation]
35WORKBITS = 1 35WORKBITS = 1
diff --git a/src/gns/test_gns_proxy.conf b/src/gns/test_gns_proxy.conf
index 3b21f1d90..db6cb6a4c 100644
--- a/src/gns/test_gns_proxy.conf
+++ b/src/gns/test_gns_proxy.conf
@@ -15,7 +15,7 @@ DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0
15 15
16 16
17[gns-proxy] 17[gns-proxy]
18PROXY_CACERT = /tmp/proxy_cacert.pem 18PROXY_CACERT = $GNUNET_TMP/proxy_cacert.pem
19PROXY_UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-gns-proxy.sock 19PROXY_UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-gns-proxy.sock
20 20
21[namestore] 21[namestore]
diff --git a/src/gns/test_proxy.sh b/src/gns/test_proxy.sh
index ee288413f..720fe643d 100755
--- a/src/gns/test_proxy.sh
+++ b/src/gns/test_proxy.sh
@@ -1,9 +1,11 @@
1#!/bin/bash 1#!/bin/bash
2# This file is in the public domain. 2# This file is in the public domain.
3TEST_DOMAIN="www.test" 3TEST_DOMAIN="www.test"
4GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)"
5PROXY_CACERT="$(gnunet-config -f -c test_gnunet_proxy.conf -s gns-proxy -o PROXY_CACERT)"
4 6
5# Delete old files before starting test 7# Delete old files before starting test
6rm -rf /tmp/gnunet/test-gnunet-gns-testing/ 8rm -rf "$GNUNET_TMP/test-gnunet-gns-testing/"
7gnunet-arm -s -c test_gns_proxy.conf 9gnunet-arm -s -c test_gns_proxy.conf
8gnunet-gns-proxy-setup-ca -c test_gns_proxy.conf 10gnunet-gns-proxy-setup-ca -c test_gns_proxy.conf
9 11
@@ -27,8 +29,9 @@ HEXCERT=`xxd -p local.der | tr -d '\n'`
27#echo "This is the certificate the server does use: $HEXCERT" 29#echo "This is the certificate the server does use: $HEXCERT"
28BOXVALUE="6 8443 52 3 0 0 $HEXCERT" 30BOXVALUE="6 8443 52 3 0 0 $HEXCERT"
29 31
30cat local.crt > /tmp/server_cacert.pem 32SERVER_CACERT="$GNUNET_TMP/server_cacert.pem"
31cat local.key >> /tmp/server_cacert.pem 33cat local.crt > "$SERVER_CACERT"
34cat local.key >> "$SERVER_CACERT"
32 35
33gnunet-identity -C test -c test_gns_proxy.conf 36gnunet-identity -C test -c test_gns_proxy.conf
34gnunet-namestore -p -z "test" -a -n www -t A -V 127.0.0.1 -e never -c test_gns_proxy.conf 37gnunet-namestore -p -z "test" -a -n www -t A -V 127.0.0.1 -e never -c test_gns_proxy.conf
@@ -38,13 +41,13 @@ gnunet-namestore -p -z "test" -a -n www -t BOX -V "$BOXVALUE" -e never -c test_g
38 41
39gnunet-arm -i gns-proxy -c test_gns_proxy.conf 42gnunet-arm -i gns-proxy -c test_gns_proxy.conf
40 43
41#gnurl --socks5-hostname 127.0.0.1:7777 https://www.test -v --cacert /tmp/proxy_cacert.pem 44#gnurl --socks5-hostname 127.0.0.1:7777 "https://$TEST_DOMAIN" -v --cacert "$PROXY_CACERT"
42./test_gns_proxy -A /tmp/proxy_cacert.pem -S /tmp/server_cacert.pem -p 8443 -c test_gns_proxy.conf 45./test_gns_proxy -A "$PROXY_CACERT" -S "$SERVER_CACERT" -p 8443 -c test_gns_proxy.conf
43 46
44RES=$? 47RES=$?
45 48
46rm /tmp/proxy_cacert.pem 49rm "$PROXY_CACERT"
47rm /tmp/server_cacert.pem 50rm "$SERVER_CACERT"
48 51
49gnunet-arm -e test_gns_proxy.conf 52gnunet-arm -e test_gns_proxy.conf
50 53