gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r30226 - gnunet/src/namestore


From: gnunet
Subject: [GNUnet-SVN] r30226 - gnunet/src/namestore
Date: Wed, 16 Oct 2013 19:26:31 +0200

Author: grothoff
Date: 2013-10-16 19:26:30 +0200 (Wed, 16 Oct 2013)
New Revision: 30226

Modified:
   gnunet/src/namestore/test_namestore_api.conf
   gnunet/src/namestore/test_namestore_api_cache_block.c
   gnunet/src/namestore/test_namestore_api_store_update.c
   gnunet/src/namestore/test_namestore_api_zone_iteration.c
   gnunet/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
   gnunet/src/namestore/test_namestore_api_zone_iteration_stop.c
Log:
-start tests with fresh/empty database

Modified: gnunet/src/namestore/test_namestore_api.conf
===================================================================
--- gnunet/src/namestore/test_namestore_api.conf        2013-10-16 17:24:57 UTC 
(rev 30225)
+++ gnunet/src/namestore/test_namestore_api.conf        2013-10-16 17:26:30 UTC 
(rev 30226)
@@ -1,3 +1,6 @@
+[PATHS]
+GNUNET_TEST_HOME = /tmp/test-gnunet-namestore/
+
 [arm]
 PORT = 12000
 DEFAULTSERVICES = namestore

Modified: gnunet/src/namestore/test_namestore_api_cache_block.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_cache_block.c       2013-10-16 
17:24:57 UTC (rev 30225)
+++ gnunet/src/namestore/test_namestore_api_cache_block.c       2013-10-16 
17:26:30 UTC (rev 30226)
@@ -223,6 +223,7 @@
 int
 main (int argc, char *argv[])
 {
+  GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore/");
   res = 1;
   if (0 !=
       GNUNET_TESTING_service_run ("test-namestore-api",
@@ -235,4 +236,4 @@
 }
 
 
-/* end of test_namestore_api.c */
+/* end of test_namestore_api_cache_block.c */

Modified: gnunet/src/namestore/test_namestore_api_store_update.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_store_update.c      2013-10-16 
17:24:57 UTC (rev 30225)
+++ gnunet/src/namestore/test_namestore_api_store_update.c      2013-10-16 
17:26:30 UTC (rev 30226)
@@ -254,6 +254,7 @@
 int
 main (int argc, char *argv[])
 {
+  GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore/");
   res = 1;
   if (0 !=
       GNUNET_TESTING_service_run ("test-namestore-api-store-update",

Modified: gnunet/src/namestore/test_namestore_api_zone_iteration.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_zone_iteration.c    2013-10-16 
17:24:57 UTC (rev 30225)
+++ gnunet/src/namestore/test_namestore_api_zone_iteration.c    2013-10-16 
17:26:30 UTC (rev 30226)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009 Christian Grothoff (and other contributing authors)
+     (C) 2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published

Modified: gnunet/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_zone_iteration_specific_zone.c      
2013-10-16 17:24:57 UTC (rev 30225)
+++ gnunet/src/namestore/test_namestore_api_zone_iteration_specific_zone.c      
2013-10-16 17:26:30 UTC (rev 30226)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009 Christian Grothoff (and other contributing authors)
+     (C) 2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -400,8 +400,9 @@
   nsh = GNUNET_NAMESTORE_connect (cfg);
   GNUNET_break (NULL != nsh);
   /* first, iterate over empty namestore */
-  zi = GNUNET_NAMESTORE_zone_iteration_start(nsh,
-                                            NULL, &empty_zone_proc, nsh);
+  zi = GNUNET_NAMESTORE_zone_iteration_start (nsh,
+                                              NULL,
+                                              &empty_zone_proc, nsh);
   if (NULL == zi)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone iterator\n");
@@ -415,6 +416,7 @@
 int
 main (int argc, char *argv[])
 {
+  GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore/");
   res = 1;
   if (0 !=
       GNUNET_TESTING_service_run ("test-namestore-api-zone-iteration",

Modified: gnunet/src/namestore/test_namestore_api_zone_iteration_stop.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_zone_iteration_stop.c       
2013-10-16 17:24:57 UTC (rev 30225)
+++ gnunet/src/namestore/test_namestore_api_zone_iteration_stop.c       
2013-10-16 17:26:30 UTC (rev 30226)
@@ -449,6 +449,7 @@
 int
 main (int argc, char *argv[])
 {
+  GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore/");
   res = 1;
   if (0 !=
       GNUNET_TESTING_service_run ("test-namestore-api-zone-iteration-stop",




reply via email to

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