diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-30 09:10:24 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-30 09:10:24 +0900 |
commit | 3cf47c04e2de3e3f275398f4dbc223fdaeea6aff (patch) | |
tree | 3a03535bd8df114714fc78f89a44dbac4f10eedc /src/identity/test_identity_messages.sh | |
parent | daad78b8cb65dd5ef1b5e38fe8b3e78f6fb322d9 (diff) | |
download | gnunet-3cf47c04e2de3e3f275398f4dbc223fdaeea6aff.tar.gz gnunet-3cf47c04e2de3e3f275398f4dbc223fdaeea6aff.zip |
-bugfixes
Diffstat (limited to 'src/identity/test_identity_messages.sh')
-rwxr-xr-x | src/identity/test_identity_messages.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/identity/test_identity_messages.sh b/src/identity/test_identity_messages.sh index 0879061e4..d29d14acc 100755 --- a/src/identity/test_identity_messages.sh +++ b/src/identity/test_identity_messages.sh | |||
@@ -20,13 +20,14 @@ which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 30" | |||
20 | TEST_MSG="This is a test message. 123" | 20 | TEST_MSG="This is a test message. 123" |
21 | gnunet-arm -s -c test_identity.conf | 21 | gnunet-arm -s -c test_identity.conf |
22 | gnunet-identity -C recipientego -c test_identity.conf | 22 | gnunet-identity -C recipientego -c test_identity.conf |
23 | RECIPIENT_KEY=$(gnunet-identity -d -e recipientego -q -c test_identity.conf) | 23 | RECIPIENT_KEY=`gnunet-identity -d -e recipientego -q -c test_identity.conf` |
24 | MSG_ENC=$(gnunet-identity -W "$TEST_MSG" -k $RECIPIENT_KEY -c test_identity.conf) | 24 | MSG_ENC=`gnunet-identity -W "$TEST_MSG" -k $RECIPIENT_KEY -c test_identity.conf` |
25 | MSG_DEC=$(gnunet-identity -R "$MSG_ENC" -e recipientego -c test_identity.conf) | 25 | MSG_DEC=`gnunet-identity -R "$MSG_ENC" -e recipientego -c test_identity.conf` |
26 | gnunet-identity -D recipientego -c test_identity.conf | 26 | gnunet-identity -D recipientego -c test_identity.conf |
27 | gnunet-arm -e -c test_identity.conf | 27 | gnunet-arm -e -c test_identity.conf |
28 | if [ "$TEST_MSG" != "$MSG_DEC" ] | 28 | if [ "$TEST_MSG" != "$MSG_DEC" ] |
29 | then | 29 | then |
30 | diff <(echo "$TEST_MSG" ) <(echo "$MSG_DEC") | ||
30 | echo "Failed - \"$TEST_MSG\" != \"$MSG_DEC\"" | 31 | echo "Failed - \"$TEST_MSG\" != \"$MSG_DEC\"" |
31 | exit 1 | 32 | exit 1 |
32 | fi | 33 | fi |