summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_bi_bw_link2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/test_credential_bi_bw_link2.sh')
-rwxr-xr-xsrc/credential/test_credential_bi_bw_link2.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/credential/test_credential_bi_bw_link2.sh b/src/credential/test_credential_bi_bw_link2.sh
index de4eec213..1c0d370db 100755
--- a/src/credential/test_credential_bi_bw_link2.sh
+++ b/src/credential/test_credential_bi_bw_link2.sh
@@ -68,7 +68,9 @@ echo "+++ Starting to Resolve +++"
68DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -` 68DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -`
69echo $DELS 69echo $DELS
70echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf 70echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf
71RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf` 71gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf
72
73RES = $?
72 74
73# Cleanup properly 75# Cleanup properly
74gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf 76gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf
@@ -80,13 +82,11 @@ gnunet-namestore -z f -d -n "@" -t DEL -c test_credential_lookup.conf
80 82
81gnunet-arm -e -c test_credential_lookup.conf 83gnunet-arm -e -c test_credential_lookup.conf
82 84
83if [ "$RES_DELS" != "Failed." ] 85if [ $RES == 0 ]
84then 86then
85 # TODO: replace echo -e bashism
86 echo -e "${RES_DELS}"
87 exit 0 87 exit 0
88else 88else
89 echo "FAIL: Failed to verify credential $RES_DELS." 89 echo "FAIL: Failed to verify credential."
90 exit 1 90 exit 1
91fi 91fi
92 92