Пример #1
0
int
main (int argc, char *argv[])
{
  if (0 !=
      GNUNET_TESTING_service_run ("test-gnunet-peerstore", "peerstore",
                                  "test_peerstore_api_data.conf", &run, NULL))
    return 1;
  return ok;
}
Пример #2
0
int
main (int argc, char *argv[])
{
  global_ret = 3;
  if (0 != GNUNET_TESTING_service_run ("test-gnunet-peerinfo",
				       "peerinfo",
				       "test_peerinfo_api_data.conf",
				       &run, NULL))
    return 1;
  return global_ret;
}
int
main (int argc, char *argv[])
{
  res_cb_w_fo = GNUNET_NO;
  res_cb_wo_fo = GNUNET_NO;
  global_ret = 3;
  if (0
      != GNUNET_TESTING_service_run ("test-peerinfo-api-friend-only",
          "peerinfo", "test_peerinfo_api_data.conf", &run, NULL ))
    return 1;
  return global_ret;
}
Пример #4
0
int
main (int argc, char *argv[])
{
  res = 1;
  if (0 != 
      GNUNET_TESTING_service_run ("test-namestore-api",
				  "namestore",
				  "test_namestore_api.conf",
				  &run,
				  NULL))
    return 1;
  return res;
}
Пример #5
0
int
main (int argc, char *argv[])
{
  GNUNET_DISK_directory_remove ("/tmp/test-identity-service");
  res = 1;
  if (0 !=
      GNUNET_TESTING_service_run ("test-identity",
				  "identity",
				  "test_identity.conf",
				  &run,
				  NULL))
    return 1;
  return res;
}