aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_put_stdin.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_put_stdin.sh')
-rwxr-xr-xsrc/namestore/test_namestore_put_stdin.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_put_stdin.sh b/src/namestore/test_namestore_put_stdin.sh
index 8fdcaa23f..deb7bc4cb 100755
--- a/src/namestore/test_namestore_put_stdin.sh
+++ b/src/namestore/test_namestore_put_stdin.sh
@@ -26,17 +26,20 @@ function start_peer
26{ 26{
27 gnunet-arm -s -c $CONFIGURATION 27 gnunet-arm -s -c $CONFIGURATION
28 gnunet-identity -C testego -c $CONFIGURATION 28 gnunet-identity -C testego -c $CONFIGURATION
29 gnunet-identity -C testego2 -c $CONFIGURATION
29} 30}
30 31
31function stop_peer 32function stop_peer
32{ 33{
33 gnunet-identity -D testego -c $CONFIGURATION 34 gnunet-identity -D testego -c $CONFIGURATION
35 gnunet-identity -D testego2 -c $CONFIGURATION
34 gnunet-arm -e -c $CONFIGURATION 36 gnunet-arm -e -c $CONFIGURATION
35} 37}
36 38
37 39
38start_peer 40start_peer
39# Create a public record 41# Create a public record
42EGOKEY=`gnunet-identity -d | grep testego2 | cut -d' ' -f3`
40gnunet-namestore -a -c $CONFIGURATION -S <<EOF 43gnunet-namestore -a -c $CONFIGURATION -S <<EOF
41$TEST_RECORD_NAME.testego: 44$TEST_RECORD_NAME.testego:
42 A 3600000000 [pr] $TEST_IP 45 A 3600000000 [pr] $TEST_IP
@@ -48,9 +51,12 @@ $TEST_RECORD_NAME2.testego:
48 AAAA 324241223 [prS] ::dead:beef 51 AAAA 324241223 [prS] ::dead:beef
49 A 111324241223000000 [pC] 1.1.1.1 52 A 111324241223000000 [pC] 1.1.1.1
50 53
54www7.$EGOKEY:
55 A 3600000000 [pr] $TEST_IP
56
51EOF 57EOF
52NAMESTORE_RES=$? 58NAMESTORE_RES=$?
53gnunet-namestore -z testego -D -r -c $CONFIGURATION 59gnunet-namestore -D -r -c $CONFIGURATION
54stop_peer 60stop_peer
55 61
56if [ $NAMESTORE_RES = 0 ] 62if [ $NAMESTORE_RES = 0 ]