summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_bi_and3.sh
diff options
context:
space:
mode:
authorAndreas Ebner <a.e.bner@web.de>2019-09-20 10:49:02 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-07 12:18:20 +0200
commit3099a7c25cf6b11b0f1909e5a2651d65c0e921c7 (patch)
treec8f10fe3551b35e40d6adcb5e1c68771a12a104e /src/credential/test_credential_bi_and3.sh
parent5be14856a356b087ad97b479efd9b06172fdfd2f (diff)
downloadgnunet-3099a7c25cf6b11b0f1909e5a2651d65c0e921c7.tar.gz
gnunet-3099a7c25cf6b11b0f1909e5a2651d65c0e921c7.zip
Cleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:
- removed and/or implemented all remaining TODOs - fixed a bug in cleanup_handle() which caused to not cleanup correctly when a solution was prematurely found - delegation_chain_bw/fw_resolution_start() not has a return value to indicate whether a solution was prematurely found - cleaned up the test_... files (an additional cleanup commit might follow)
Diffstat (limited to 'src/credential/test_credential_bi_and3.sh')
-rwxr-xr-xsrc/credential/test_credential_bi_and3.sh6
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
21which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 10" 20which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 10"
22gnunet-arm -s -c test_credential_lookup.conf 21gnunet-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
38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 38HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
40 39
40gnunet-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
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
76gnunet-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 77
78RES = $? 78RES=$?
79 79
80# Cleanup properly 80# Cleanup properly
81gnunet-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
@@ -87,7 +87,7 @@ gnunet-namestore -z h -d -n "@" -t DEL -c test_credential_lookup.conf
87 87
88gnunet-arm -e -c test_credential_lookup.conf 88gnunet-arm -e -c test_credential_lookup.conf
89 89
90if [ $RES == 0 ] 90if [ "$RES" == 0 ]
91then 91then
92 exit 0 92 exit 0
93else 93else