gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30870 - gnunet/src/revocation


From: gnunet
Subject: [GNUnet-SVN] r30870 - gnunet/src/revocation
Date: Tue, 26 Nov 2013 13:51:44 +0100

Author: wachs
Date: 2013-11-26 13:51:44 +0100 (Tue, 26 Nov 2013)
New Revision: 30870

Modified:
   gnunet/src/revocation/test_local_revocation.sh
   gnunet/src/revocation/test_revocation.conf
Log:
evalutation


Modified: gnunet/src/revocation/test_local_revocation.sh
===================================================================
--- gnunet/src/revocation/test_local_revocation.sh      2013-11-26 12:09:21 UTC 
(rev 30869)
+++ gnunet/src/revocation/test_local_revocation.sh      2013-11-26 12:51:44 UTC 
(rev 30870)
@@ -9,19 +9,35 @@
 rm -rf `gnunet-config -c test_revocation.conf -s PATHS -o GNUNET_HOME -f`
 
 # Start 
+RES=0
 gnunet-arm -s -c $TEST_CONFIGURATION
 gnunet-identity -C $TEST_REVOCATION_EGO -c $TEST_CONFIGURATION
 TEST_REVOCATION_KEY=$(gnunet-identity -d | awk '{split($0,a," "); print a[3]}')
 
 echo Testing key $TEST_REVOCATION_KEY
-OUTPUT_NOT_REVOKED=$(gnunet-revocation -t $TEST_REVOCATION_KEY -c 
$TEST_CONFIGURATION )
+OUTPUT_NOT_REVOKED=$(gnunet-revocation -t $TEST_REVOCATION_KEY -c 
$TEST_CONFIGURATION)
+if grep -q valid <<<$OUTPUT_NOT_REVOKED; 
+then
+               echo "Key was valid" 
+else
+    RES=1
+fi
 
 echo Revoking key $TEST_REVOCATION_KEY
 gnunet-revocation -R $TEST_REVOCATION_EGO -p -c $TEST_CONFIGURATION 1> 
/dev/null 2> /dev/null
 
 echo Testing revoked key $TEST_REVOCATION_KEY
 OUTPUT_REVOKED=$(gnunet-revocation -t $TEST_REVOCATION_KEY -c 
$TEST_CONFIGURATION)
+if grep -q revoked <<<$OUTPUT_REVOKED; 
+then
+    echo "Key was revoked"
+else
+    RES=1
+fi
 
+
 #clean up
-gnunet-arm -e -c test_revocation.conf
+gnunet-arm -e -c $TEST_CONFIGURATION
 rm -rf `gnunet-config -c test_revocation.conf -s PATHS -o GNUNET_HOME -f`
+
+exit $RES
\ No newline at end of file

Modified: gnunet/src/revocation/test_revocation.conf
===================================================================
--- gnunet/src/revocation/test_revocation.conf  2013-11-26 12:09:21 UTC (rev 
30869)
+++ gnunet/src/revocation/test_revocation.conf  2013-11-26 12:51:44 UTC (rev 
30870)
@@ -11,4 +11,11 @@
 SUBSYSTEM_CFG = $SERVICEHOME/s.conf
 
 [hostlist]
-SERVER = dummy
\ No newline at end of file
+AUTOSTART = NO
+SERVERS = dummy
+
+[transport-udp]
+BROADCAST = NO
+
+[peerinfo]
+USE_INCLUDED_HELLOS = NO
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]