add test to Makefile.am
authorxrs <xrs@mail36.net>
Wed, 8 Jan 2020 20:05:49 +0000 (21:05 +0100)
committerxrs <xrs@mail36.net>
Wed, 8 Jan 2020 20:05:49 +0000 (21:05 +0100)
src/cadet/Makefile.am
src/cadet/test_cadet.c

index d63ff6818b36527c5134b9fec59a8f5401e86d2a..b197e8a007cdb2006ba0482ba52884f39041fff5 100644 (file)
@@ -212,6 +212,9 @@ test_cadet_5_reopen_SOURCES = \
   test_cadet.c
 test_cadet_5_reopen_LDADD = $(ld_cadet_test_lib)
 
+test_cadet_2_destroy_SOURCES = \
+  test_cadet.c
+test_cadet_2_destroy_LDADD = $(ld_cadet_test_lib)
 
 if ENABLE_TEST_RUN
 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
index 4b7c16ec528c9cf2ff5af67dbed5b91e9a64d4b2..bfad940c2c9bcf3310d6925b893ed9b36cbe3963 100644 (file)
@@ -967,8 +967,9 @@ connect_handler (void *cls,
               channel);
   ok++;
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              " ok: %d\n",
-              ok);
+              " ok: (%d\n",
+              ok,
+              ok_goal);
   if (peer == peers_requested - 1)
   {
     if (NULL != incoming_ch)
@@ -1343,6 +1344,11 @@ main (int argc, char *argv[])
     // */
     ok_goal = 6;
   }
+  else if (strstr (argv[0], "_destroy") != NULL)
+  {
+    test = DESTROY;
+    test_name = "destroy";
+  }
   else
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "UNKNOWN\n");