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