[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: -fix test
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: -fix test |
Date: |
Fri, 05 Jan 2018 10:46:35 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 38afd1173 -fix test
38afd1173 is described below
commit 38afd11738315087eecd71b4d4a3d088ce8e3a30
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Jan 5 10:46:32 2018 +0100
-fix test
---
src/credential/test_credential_verify_simple.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/credential/test_credential_verify_simple.sh
b/src/credential/test_credential_verify_simple.sh
index c4fd8c7a3..bcb3f9877 100755
--- a/src/credential/test_credential_verify_simple.sh
+++ b/src/credential/test_credential_verify_simple.sh
@@ -31,17 +31,19 @@ CRED=`$DO_TIMEOUT gnunet-credential --issue
--ego=testissuer --subject=$SUBJECT_
TEST_CREDENTIAL="t1"
gnunet-namestore -p -z testsubject -a -n $TEST_CREDENTIAL -t CRED -V "$CRED"
-e 5m -c test_credential_lookup.conf
+CREDS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY
--attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste
-d, -s`
+
+
#TODO2 Add -z swich like in gnunet-gns
#RES_CRED=`$DO_TIMEOUT gnunet-credential --verify --issuer=$ISSUER_KEY
--attribute="$TEST_ATTR" --subject=$SUBJECT_KEY --credential=$TEST_CREDENTIAL
-c test_credential_lookup.conf`
-RES_CRED=`gnunet-credential --verify --issuer=$ISSUER_KEY
--attribute=$TEST_ATTR --subject=$SUBJECT_KEY --credential=$TEST_CREDENTIAL -c
test_credential_lookup.conf`
+RES_CRED=`gnunet-credential --verify --issuer=$ISSUER_KEY
--attribute=$TEST_ATTR --subject=$SUBJECT_KEY --credential="$CREDS" -c
test_credential_lookup.conf`
#TODO cleanup properly
gnunet-namestore -z testsubject -d -n $TEST_CREDENTIAL -t CRED -e never -c
test_credential_lookup.conf
gnunet-identity -D testsubject -c test_credential_lookup.conf
gnunet-arm -e -c test_credential_lookup.conf
-echo $RES_CRED
#TODO3 proper test
-if [ "$RES_CRED" == "Successful." ]
+if [ "$RES_CRED" != "Failed." ]
then
exit 0
else
--
To stop receiving notification emails like this one, please contact
address@hidden