diff options
author | Andreas Ebner <a.e.bner@web.de> | 2019-09-14 16:58:39 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:17:29 +0200 |
commit | 5be14856a356b087ad97b479efd9b06172fdfd2f (patch) | |
tree | 724a52f386be772cd8605224c47017f3b4d64e20 /src/credential/test_credential_bi_bw_link2.sh | |
parent | d4790594a33a4688641f66841f05533b3c0956b9 (diff) | |
download | gnunet-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_bw_link2.sh')
-rwxr-xr-x | src/credential/test_credential_bi_bw_link2.sh | 10 |
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 +++" | |||
68 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -` | 68 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --forward --backward -c test_credential_lookup.conf | paste -d, -s - -` |
69 | echo $DELS | 69 | echo $DELS |
70 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf | 70 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --forward --backward -c test_credential_lookup.conf |
71 | RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf` | 71 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --forward --backward -c test_credential_lookup.conf |
72 | |||
73 | RES = $? | ||
72 | 74 | ||
73 | # Cleanup properly | 75 | # Cleanup properly |
74 | gnunet-namestore -z a -d -n "a" -t ATTR -c test_credential_lookup.conf | 76 | gnunet-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 | ||
81 | gnunet-arm -e -c test_credential_lookup.conf | 83 | gnunet-arm -e -c test_credential_lookup.conf |
82 | 84 | ||
83 | if [ "$RES_DELS" != "Failed." ] | 85 | if [ $RES == 0 ] |
84 | then | 86 | then |
85 | # TODO: replace echo -e bashism | ||
86 | echo -e "${RES_DELS}" | ||
87 | exit 0 | 87 | exit 0 |
88 | else | 88 | else |
89 | echo "FAIL: Failed to verify credential $RES_DELS." | 89 | echo "FAIL: Failed to verify credential." |
90 | exit 1 | 90 | exit 1 |
91 | fi | 91 | fi |
92 | 92 | ||