diff options
author | Andreas Ebner <a.e.bner@web.de> | 2019-09-20 11:32:00 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-10-07 12:18:20 +0200 |
commit | 4d4a16e000683046ebb19e6efe15e11d60c2178d (patch) | |
tree | 291ce657e2eabe7bf89b4ca3c929f2331da16f23 /src/credential/test_credential_bi_bw_link2.sh | |
parent | 3099a7c25cf6b11b0f1909e5a2651d65c0e921c7 (diff) | |
download | gnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.tar.gz gnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.zip |
Test cleanup/fix:
- added missing "- -" to collect for macOS
- replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
Diffstat (limited to 'src/credential/test_credential_bi_bw_link2.sh')
-rwxr-xr-x | src/credential/test_credential_bi_bw_link2.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/credential/test_credential_bi_bw_link2.sh b/src/credential/test_credential_bi_bw_link2.sh index ccb71b880..f6055a7bb 100755 --- a/src/credential/test_credential_bi_bw_link2.sh +++ b/src/credential/test_credential_bi_bw_link2.sh | |||
@@ -35,6 +35,7 @@ DKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep d | awk '{print | |||
35 | EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') | 35 | EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') |
36 | FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') | 36 | FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') |
37 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') | 37 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') |
38 | gnunet-identity -d | ||
38 | 39 | ||
39 | # (1) (A.a) <- B.b | 40 | # (1) (A.a) <- B.b |
40 | # (2) (B.b) <- G.g.c | 41 | # (2) (B.b) <- G.g.c |
@@ -50,16 +51,16 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$GKEY g. | |||
50 | gnunet-namestore -D -z b | 51 | gnunet-namestore -D -z b |
51 | 52 | ||
52 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$CKEY" --ttl="2019-12-12 10:00:00"` | 53 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$CKEY" --ttl="2019-12-12 10:00:00"` |
53 | gnunet-credential --createSubjectSide --ego=c --import "$SIGNED" | 54 | gnunet-credential --createSubjectSide --ego=c --import="$SIGNED" |
54 | gnunet-namestore -D -z c | 55 | gnunet-namestore -D -z c |
55 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` | 56 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` |
56 | gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" | 57 | gnunet-credential --createSubjectSide --ego=d --import="$SIGNED" |
57 | gnunet-namestore -D -z d | 58 | gnunet-namestore -D -z d |
58 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` | 59 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` |
59 | gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" | 60 | gnunet-credential --createSubjectSide --ego=e --import="$SIGNED" |
60 | gnunet-namestore -D -z e | 61 | gnunet-namestore -D -z e |
61 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` | 62 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` |
62 | gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private | 63 | gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private |
63 | gnunet-namestore -D -z f | 64 | gnunet-namestore -D -z f |
64 | 65 | ||
65 | # Starting to resolve | 66 | # Starting to resolve |