diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-08 16:01:21 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-08 16:01:21 +0200 |
commit | e4895ec7c1a1808a13195c346a828c271ca86c78 (patch) | |
tree | 7f8f6e1c67d82000bfc5db33ad07c683574915b8 /src/reclaim/test_reclaim_revoke.sh | |
parent | 1b80ff9ee79b3fbe2028a8c22a01e45e9131cda2 (diff) | |
download | gnunet-e4895ec7c1a1808a13195c346a828c271ca86c78.tar.gz gnunet-e4895ec7c1a1808a13195c346a828c271ca86c78.zip |
RECLAIM: Fix shutdown; tests
Diffstat (limited to 'src/reclaim/test_reclaim_revoke.sh')
-rwxr-xr-x | src/reclaim/test_reclaim_revoke.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/reclaim/test_reclaim_revoke.sh b/src/reclaim/test_reclaim_revoke.sh index 595752fd8..b20a27d12 100755 --- a/src/reclaim/test_reclaim_revoke.sh +++ b/src/reclaim/test_reclaim_revoke.sh | |||
@@ -30,22 +30,21 @@ gnunet-identity -C eve -c test_reclaim.conf | |||
30 | ALICE_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep alice | awk '{print $3}') | 30 | ALICE_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep alice | awk '{print $3}') |
31 | BOB_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep bob | awk '{print $3}') | 31 | BOB_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep bob | awk '{print $3}') |
32 | EVE_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep eve | awk '{print $3}') | 32 | EVE_KEY=$(gnunet-identity -d -c test_reclaim.conf | grep eve | awk '{print $3}') |
33 | 33 | gnunet-reclaim -e alice -E 15s -a email -V john@doe.gnu -c test_reclaim.conf | |
34 | gnunet-reclaim -e alice -E 15s -a email -V john@doe.gnu -c test_reclaim.conf | ||
35 | gnunet-reclaim -e alice -E 15s -a name -V John -c test_reclaim.conf | 34 | gnunet-reclaim -e alice -E 15s -a name -V John -c test_reclaim.conf |
36 | TICKET_BOB=$(gnunet-reclaim -e alice -i "email,name" -r $BOB_KEY -c test_reclaim.conf | awk '{print $1}') | 35 | TICKET_BOB=$(gnunet-reclaim -e alice -i "email,name" -r $BOB_KEY -c test_reclaim.conf | awk '{print $1}') |
37 | #gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf | 36 | #gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf |
38 | TICKET_EVE=$(gnunet-reclaim -e alice -i "email" -r $EVE_KEY -c test_reclaim.conf | awk '{print $1}') | 37 | TICKET_EVE=$(gnunet-reclaim -e alice -i "email" -r $EVE_KEY -c test_reclaim.conf | awk '{print $1}') |
39 | 38 | gnunet-namestore -z alice -D | |
40 | #echo "Consuming $TICKET" | 39 | echo "Revoking $TICKET" |
41 | #gnunet-reclaim -e eve -C $TICKET_EVE -c test_reclaim.conf | ||
42 | gnunet-reclaim -e alice -R $TICKET_EVE -c test_reclaim.conf | 40 | gnunet-reclaim -e alice -R $TICKET_EVE -c test_reclaim.conf |
41 | gnunet-namestore -z alice -D | ||
42 | sleep 16 | ||
43 | echo "Consuming $TICKET" | ||
43 | 44 | ||
44 | #sleep 6 | 45 | gnunet-reclaim -e eve -C $TICKET_EVE -c test_reclaim.conf |
45 | |||
46 | gnunet-reclaim -e eve -C $TICKET_EVE -c test_reclaim.conf 2&>1 >/dev/null | ||
47 | if test $? == 0 | 46 | if test $? == 0 |
48 | then | 47 | then |
49 | echo "Eve can still resolve attributes..." | 48 | echo "Eve can still resolve attributes..." |
50 | gnunet-arm -e -c test_reclaim.conf | 49 | gnunet-arm -e -c test_reclaim.conf |
51 | exit 1 | 50 | exit 1 |
@@ -54,7 +53,8 @@ fi | |||
54 | gnunet-arm -e -c test_reclaim.conf | 53 | gnunet-arm -e -c test_reclaim.conf |
55 | gnunet-arm -s -c test_reclaim.conf 2&>1 > /dev/null | 54 | gnunet-arm -s -c test_reclaim.conf 2&>1 > /dev/null |
56 | 55 | ||
57 | gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf 2&>1 >/dev/null | 56 | gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf |
57 | #gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf 2&>1 >/dev/null | ||
58 | if test $? != 0 | 58 | if test $? != 0 |
59 | then | 59 | then |
60 | echo "Bob cannot resolve attributes..." | 60 | echo "Bob cannot resolve attributes..." |