- verboser log, faster start
[oweals/gnunet.git] / src / arm / test_gnunet_service_arm.c
index 9fa313d24b3250b9bd183b60932d6a9a8a23c9cc..d367bc6fef46e5170120555b97b518abe9d8bd24 100644 (file)
@@ -20,8 +20,9 @@
 /**
  * @file arm/test_gnunet_service_arm.c 
  * @brief testcase for gnunet-service-arm.c; tests ARM by making it start the resolver
+ * @author Safey
+ * @author Christian Grothoff
  */
-
 #include "platform.h"
 #include "gnunet_arm_service.h"
 #include "gnunet_resolver_service.h"
@@ -106,6 +107,20 @@ static void
 run (void *cls, char *const *args, const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *c)
 {
+  char *armconfig;
+
+  if (NULL != cfgfile)
+  {
+    if (GNUNET_OK !=
+        GNUNET_CONFIGURATION_get_value_filename (c, "arm", "CONFIG",
+                                              &armconfig))
+    {
+      GNUNET_CONFIGURATION_set_value_string (c, "arm", "CONFIG",
+                                             cfgfile);
+    }
+    else
+      GNUNET_free (armconfig);
+  }
   arm = GNUNET_ARM_connect (c, NULL);
   GNUNET_ARM_start_service (arm, "arm",
                            GNUNET_OS_INHERIT_STD_OUT_AND_ERR, START_TIMEOUT,