gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37434 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r37434 - gnunet/src/rps
Date: Sat, 2 Jul 2016 01:38:40 +0200

Author: ch3
Date: 2016-07-02 01:38:39 +0200 (Sat, 02 Jul 2016)
New Revision: 37434

Modified:
   gnunet/src/rps/test_rps.conf
   gnunet/src/rps/test_service_rps_peers.c
Log:
-rps test _peers: disable storage of valid peers

Modified: gnunet/src/rps/test_rps.conf
===================================================================
--- gnunet/src/rps/test_rps.conf        2016-07-01 23:38:35 UTC (rev 37433)
+++ gnunet/src/rps/test_rps.conf        2016-07-01 23:38:39 UTC (rev 37434)
@@ -1,3 +1,6 @@
+[PATHS]
+GNUNET_TEST_HOME = /tmp/rps-test/
+
 [rps]
 #PREFIX = valgrind --leak-check=full --show-leak-kinds=all 
--log-file=/tmp/rps/valgrind!gnunet-service-rps!%p
 #BINARY = gnunet-service-rps
@@ -12,7 +15,7 @@
 
 # This is the timeinterval between the rounds
 ROUNDINTERVAL = 2 s
-FILENAME_VALID_PEERS = $GNUNET_DATA_HOME/rps/valid_peers.txt
+FILENAME_VALID_PEERS = $GNUNET_TEST_HOME/rps/valid_peers.txt
 
 # This is the 'estimate' in the beginning.
 # This determines the size of the peers we keep in memory
@@ -55,9 +58,6 @@
 DISABLE_TRY_CONNECT = YES
 #OPTIONS=-l /tmp/rps_profiler_logs/cadet-[]-%Y-%m-%d.log
 
-[PATHS]
-GNUNET_TEST_HOME = /tmp/rps-test/
-
 #[arm]
 #GLOBAL_POSTFIX=-l /tmp/rps_profiler_logs/other-[]-%Y-%m-%d.log
 

Modified: gnunet/src/rps/test_service_rps_peers.c
===================================================================
--- gnunet/src/rps/test_service_rps_peers.c     2016-07-01 23:38:35 UTC (rev 
37433)
+++ gnunet/src/rps/test_service_rps_peers.c     2016-07-01 23:38:39 UTC (rev 
37434)
@@ -27,6 +27,7 @@
 #define ABORT() { fprintf(stderr, "Error at %s:%d\n", __FILE__, __LINE__); 
Peers_terminate (); return 1; }
 #define CHECK(c) { if (! (c)) ABORT(); }
 
+#define FN_VALID_PEERS "DISABLE"
 
 /**
  * @brief Dummy implementation of #PeerOp (Operation on peer)
@@ -48,7 +49,6 @@
 void
 peer_op (void *cls, const struct GNUNET_PeerIdentity *peer);
 
-
 static int
 check ()
 {
@@ -59,18 +59,18 @@
   memset (&own_id, 1, sizeof (own_id));
 
   /* Do nothing */
-  Peers_initialise ("", NULL, &own_id);
+  Peers_initialise (FN_VALID_PEERS, NULL, &own_id);
   Peers_terminate ();
 
 
   /* Create peer */
-  Peers_initialise ("", NULL, &own_id);
+  Peers_initialise (FN_VALID_PEERS, NULL, &own_id);
   CHECK (GNUNET_YES == Peers_insert_peer (&k1));
   Peers_terminate ();
 
 
   /* Create peer */
-  Peers_initialise ("", NULL, &own_id);
+  Peers_initialise (FN_VALID_PEERS, NULL, &own_id);
   CHECK (GNUNET_YES == Peers_insert_peer (&k1));
   CHECK (GNUNET_YES == Peers_remove_peer (&k1));
   Peers_terminate ();
@@ -77,7 +77,7 @@
 
 
   /* Insertion and Removal */
-  Peers_initialise ("", NULL, &own_id);
+  Peers_initialise (FN_VALID_PEERS, NULL, &own_id);
   CHECK (GNUNET_NO  == Peers_check_peer_known (&k1));
 
   CHECK (GNUNET_YES == Peers_insert_peer (&k1));




reply via email to

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