diff options
Diffstat (limited to 'src/credential/test_credential_bi_and3.sh')
-rwxr-xr-x | src/credential/test_credential_bi_and3.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/credential/test_credential_bi_and3.sh b/src/credential/test_credential_bi_and3.sh index f88c23d46..e2f167622 100755 --- a/src/credential/test_credential_bi_and3.sh +++ b/src/credential/test_credential_bi_and3.sh | |||
@@ -17,7 +17,6 @@ rm -rf `gnunet-config -c test_credential_lookup.conf -s PATHS -o GNUNET_HOME -f` | |||
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | |||
21 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 10" | 20 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 10" |
22 | gnunet-arm -s -c test_credential_lookup.conf | 21 | gnunet-arm -s -c test_credential_lookup.conf |
23 | 22 | ||
@@ -38,6 +37,7 @@ FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print | |||
38 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') | 37 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') |
39 | HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') | 38 | HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') |
40 | 39 | ||
40 | gnunet-identity -d | ||
41 | # (1) (A.a) <- B.b | 41 | # (1) (A.a) <- B.b |
42 | # (2) (B.b) <- C.c AND G.g | 42 | # (2) (B.b) <- C.c AND G.g |
43 | # (3) C.c <- (D.d) | 43 | # (3) C.c <- (D.d) |
@@ -75,7 +75,7 @@ echo $DELS | |||
75 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' -c test_credential_lookup.conf | 75 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' -c test_credential_lookup.conf |
76 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" -c test_credential_lookup.conf | 76 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" -c test_credential_lookup.conf |
77 | 77 | ||
78 | RES = $? | 78 | RES=$? |
79 | 79 | ||
80 | # Cleanup properly | 80 | # Cleanup properly |
81 | gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf | 81 | gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf |
@@ -87,7 +87,7 @@ gnunet-namestore -z h -d -n "@" -t DEL -c test_credential_lookup.conf | |||
87 | 87 | ||
88 | gnunet-arm -e -c test_credential_lookup.conf | 88 | gnunet-arm -e -c test_credential_lookup.conf |
89 | 89 | ||
90 | if [ $RES == 0 ] | 90 | if [ "$RES" == 0 ] |
91 | then | 91 | then |
92 | exit 0 | 92 | exit 0 |
93 | else | 93 | else |