static void
run (void *cls,
     const struct GNUNET_CONFIGURATION_Handle *cfg,
     struct GNUNET_TESTING_Peer *peer)
{
    fs = GNUNET_FS_start (cfg, "test-fs-namespace", &progress_cb, NULL,
                          GNUNET_FS_FLAGS_NONE, GNUNET_FS_OPTIONS_END);
    testNamespace ();
}
Ejemplo n.º 2
0
int CTest::testEntitiesAndNamespaces(int argc, char* argv[])
{
    AutoPtr<IXmlPullParser> parser = newPullParser();
    parser->SetFeature(String("http://xmlpull.org/v1/doc/features.html#process-namespaces"), true);
    AutoPtr<IStringReader> sr;
    CStringReader::New(String("<foo:a xmlns:foo='http://foo' xmlns:bar='http://bar'><bar:b/></foo:a>"), (IStringReader**)&sr);
    parser->SetInput(sr);
    testNamespace(parser);
    return 0;
}
Ejemplo n.º 3
0
int
main (int argc, char *argv[])
{
  int failureCount = 0;
  int i;

  GNUNET_log_setup ("test_fs_uri",
                    "WARNING",
                    NULL);
  failureCount += testKeyword ();
  failureCount += testLocation ();
  for (i = 0; i < 255; i++)
  {
    /* FPRINTF (stderr, "%s",  "."); */
    failureCount += testNamespace (i);
    failureCount += testFile (i);
  }
  /* FPRINTF (stderr, "%s",  "\n"); */
  GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-uri");
  if (failureCount != 0)
    return 1;
  return 0;
}