regex profiler fixes
[oweals/gnunet.git] / src / mesh / test_mesh_regex.c
index 878ca2f6847438c2834e0c12688ec8ffbf7cd3d8..8e65324dffe7be2a2bf2ebbd350efd96bef35df1 100644 (file)
@@ -29,7 +29,7 @@
 
 #define VERBOSE GNUNET_YES
 #define REMOVE_DIR GNUNET_YES
-#define MESH_REGEX_PEERS 3
+#define MESH_REGEX_PEERS 4
 
 /**
  * How long until we give up on connecting the peers?
  */
 #define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 
-/**
- * Initial regex padding.
- */
-#define REGEX_INITIAL_PADDING "PADPADPADPADPADP"
-
 /**
  * Which strings have been found & connected.
  */
@@ -130,7 +125,9 @@ static char *regexes[MESH_REGEX_PEERS] = {"(0|1)"
 
                                           "0123456789A*BC",
 
-                                          "0*123456789ABC*"};
+                                          "0*123456789ABC*",
+
+                                          "GNUNETVPN0001000IPEX401110011101100100000111(0|1)*"};
 
 
 /**
@@ -140,7 +137,9 @@ static char *strings[MESH_REGEX_PEERS] = {"1123456789ABC",
 
                                           "0123456789AABC",
 
-                                          "00123456789ABCCCC"};
+                                          "00123456789ABCCCC",
+
+                                          "GNUNETVPN0001000IPEX401110011101100100000111"};
 
 /**
  * Check whether peers successfully shut down.
@@ -448,7 +447,7 @@ peergroup_ready (void *cls, const char *emsg)
                                  &app);
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 "Announce REGEX %u: %s\n", i, regexes[i]);
-    GNUNET_MESH_announce_regex (h2[i], regexes[i]);
+    GNUNET_MESH_announce_regex (h2[i], regexes[i], 1);
   }
 
   for (i = 0; i < MESH_REGEX_PEERS; i++)