test_multicast_multipeer
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;
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@}; export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; unset XDG_DATA_HOME; unset XDG_CONFIG_HOME; export GNUNET_FORCE_LOG=';;;;INFO'
TESTS = $(check_PROGRAMS)
endif
static void
client_send_ack (struct GNUNET_HashCode *pub_key_hash)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Sending message ACK to client.\n");
+
static struct GNUNET_MessageHeader *msg = NULL;
if (NULL == msg)
{
else
{
chn->msgs_pending++;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "%p Queuing message. Pending messages: %u\n",
+ chn, chn->msgs_pending);
}
}
int window_size)
{
struct Channel *chn = cls;
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "%p Window size changed to %d. Pending messages: %u\n",
+ chn, window_size, chn->msgs_pending);
+
chn->is_connected = GNUNET_YES;
chn->window_size = (int32_t) window_size;
if (0 < chn->msgs_pending)
{
client_send_ack (&chn->group_pub_hash);
- --chn->msgs_pending;
+ chn->msgs_pending--;
}
else
{
}
client_send_all (&grp->pub_key_hash, &out->header);
- if (0 == cadet_send_children (&grp->pub_key_hash, &out->header))
- {
- client_send_ack (&grp->pub_key_hash);
- }
+ cadet_send_children (&grp->pub_key_hash, &out->header);
+ client_send_ack (&grp->pub_key_hash);
GNUNET_free (out);
GNUNET_SERVICE_client_continue (client);
switch (test)
{
+ case TEST_ORIGIN_TO_ALL:
+ test = TEST_ORIGIN_TO_ALL_RECV;
+ break;
+
case TEST_ORIGIN_TO_ALL_RECV:
// Test 6 starts here
member_to_origin ();
test = TEST_ORIGIN_TO_ALL_RECV;
break;
+ case TEST_ORIGIN_TO_ALL_RECV:
+ // Test 6 starts here
+ member_to_origin ();
+ break;
+
default:
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Invalid test #%d in origin_recv_message()\n", test);