trying to fix #3576
[oweals/gnunet.git] / src / fs / test_fs_download.c
index c069875cfb082322fc8f761630ca92af7383657f..8dee2491267d7b0b8cc50a5701eecd83910cd7a5 100644 (file)
@@ -139,6 +139,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                (unsigned long long) event->value.publish.specifics.
                progress.offset);
     break;
+  case GNUNET_FS_STATUS_PUBLISH_PROGRESS_DIRECTORY:
+    break;
   case GNUNET_FS_STATUS_PUBLISH_COMPLETED:
     fprintf (stdout,
             "Publishing complete, %llu kb/s.\n",
@@ -146,8 +148,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                                   (1 +
                                    GNUNET_TIME_absolute_get_duration
                                    (start).rel_value_us) / 1024LL));
-    GAUGER ("FS", 
-           (GNUNET_YES == indexed) 
+    GAUGER ("FS",
+           (GNUNET_YES == indexed)
            ? "Publishing speed (indexing)"
             : "Publishing speed (insertion)",
            (unsigned long long) (FILESIZE * 1000000LL /
@@ -160,7 +162,7 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
         GNUNET_FS_download_start (fs,
                                   event->value.publish.specifics.
                                   completed.chk_uri, NULL, fn, NULL, 0,
-                                  FILESIZE, anonymity_level, 
+                                  FILESIZE, anonymity_level,
                                  GNUNET_FS_DOWNLOAD_OPTION_NONE,
                                   "download", NULL);
     GNUNET_assert (download != NULL);
@@ -173,8 +175,8 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *event)
                                    GNUNET_TIME_absolute_get_duration
                                    (start).rel_value_us) / 1024LL));
     GAUGER ("FS",
-           (GNUNET_YES == indexed) 
-           ? "Local download speed (indexed)"  
+           (GNUNET_YES == indexed)
+           ? "Local download speed (indexed)"
            : "Local download speed (inserted)",
             (unsigned long long) (FILESIZE * 1000000LL /
                                   (1 +
@@ -329,10 +331,10 @@ main (int argc, char *argv[])
     binary_name = "test-fs-download-indexed";
     config_name = "test_fs_download_indexed.conf";
   }
-  if (NULL != strstr (argv[0], "mesh"))
+  if (NULL != strstr (argv[0], "cadet"))
   {
-    binary_name = "test-fs-download-mesh";
-    config_name = "test_fs_download_mesh.conf";
+    binary_name = "test-fs-download-cadet";
+    config_name = "test_fs_download_cadet.conf";
   }
   if (0 != GNUNET_TESTING_peer_run (binary_name,
                                    config_name,