summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_bi_and3.sh
diff options
context:
space:
mode:
authorAndreas Ebner <a.e.bner@web.de>2019-09-14 16:58:39 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-07 12:17:29 +0200
commit5be14856a356b087ad97b479efd9b06172fdfd2f (patch)
tree724a52f386be772cd8605224c47017f3b4d64e20 /src/credential/test_credential_bi_and3.sh
parentd4790594a33a4688641f66841f05533b3c0956b9 (diff)
downloadgnunet-5be14856a356b087ad97b479efd9b06172fdfd2f.tar.gz
gnunet-5be14856a356b087ad97b479efd9b06172fdfd2f.zip
Bugfixes, changed test reporting behavior, modified intermediate result reporting:
- fixed a memory error when serializing the delegations - all tests now handle the returned error code from the gnunet-credential.c via "ret" variable - intermediate reporting excluded during collect message - intermediate reporting now contains the direction (bw/fw)
Diffstat (limited to 'src/credential/test_credential_bi_and3.sh')
-rwxr-xr-xsrc/credential/test_credential_bi_and3.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/credential/test_credential_bi_and3.sh b/src/credential/test_credential_bi_and3.sh
index 83f2374a5..f88c23d46 100755
--- a/src/credential/test_credential_bi_and3.sh
+++ b/src/credential/test_credential_bi_and3.sh
@@ -73,7 +73,9 @@ echo "+++ Starting to Resolve +++"
73DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f -c test_credential_lookup.conf | paste -d, -s - -` 73DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f -c test_credential_lookup.conf | paste -d, -s - -`
74echo $DELS 74echo $DELS
75echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' -c test_credential_lookup.conf 75echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' -c test_credential_lookup.conf
76RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" -c test_credential_lookup.conf` 76gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" -c test_credential_lookup.conf
77
78RES = $?
77 79
78# Cleanup properly 80# Cleanup properly
79gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf 81gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf
@@ -85,13 +87,10 @@ gnunet-namestore -z h -d -n "@" -t DEL -c test_credential_lookup.conf
85 87
86gnunet-arm -e -c test_credential_lookup.conf 88gnunet-arm -e -c test_credential_lookup.conf
87 89
88if [ "$RES_DELS" != "Failed." ] 90if [ $RES == 0 ]
89then 91then
90 # TODO: replace echo -e bashism
91 echo -e "${RES_DELS}"
92 exit 0 92 exit 0
93else 93else
94 echo "FAIL: Failed to verify credential $RES_DELS." 94 echo "FAIL: Failed to verify credential."
95 exit 1 95 exit 1
96fi 96fi
97