GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
/**
- * Do testing here.
+ * This function is called after all testbed management is done and the
+ * testbed peers are ready for the actual test logic.
+ * Use struct test_peers[i] to control the peers.
*/
}
/**
* Testbed operation for connecting to the services.
*/
-static struct GNUNET_TESTBED_Operation *testbed_to_svc[2];
+static struct GNUNET_TESTBED_Operation *testbed_to_svc[REQUESTED_PEERS];
/**
* Testbed operation for requesting peer information.
*/
-static struct GNUNET_TESTBED_Operation *testbed_info_req[2];
+static struct GNUNET_TESTBED_Operation *testbed_info_req[REQUESTED_PEERS];
/**
* Port name kown by the two peers.
*/
struct GNUNET_CADET_Handle *cadet;
-} test_peers[2];
+} test_peers[REQUESTED_PEERS];
/************************** TESBED MANAGEMENT *****************************/
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
+ // FIXME: check, if all peers are ready, then continue with the
+ // test logic.
if (GNUNET_OK)
run_test();
}
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
- GNUNET_assert (0 == links_failed);
+ GNUNET_assert (GNUNET_NO == links_failed);
for (int i=0; i<num_peers; i++)
{