void testURIDali() { // Dali file types test_uri("hpcc://mydali/path/to/file", true, URIScheme_hpcc, "mydali", "path/to/file"); test_uri("hpcc://mydali/path/to/superfile?super", true, URIScheme_hpcc, "mydali", "path/to/superfile?super"); test_uri("hpcc://mydali/path/to/superfile?super#subname", true, URIScheme_hpcc, "mydali", "path/to/superfile?super#subname"); test_uri("hpcc://mydali/path/to/streamfile?stream", true, URIScheme_hpcc, "mydali", "path/to/streamfile?stream"); test_uri("hpcc://mydali/path/to/streamfile?stream#047", true, URIScheme_hpcc, "mydali", "path/to/streamfile?stream#47"); // Variations in Dali location test_uri("hpcc://*****:*****@mydali:7070/path/to/file", true, URIScheme_hpcc, "user@mydali:7070", "path/to/file"); test_uri("hpcc://user@mydali/path/to/file", true, URIScheme_hpcc, "user@mydali", "path/to/file"); test_uri("hpcc://*****:*****@mydali:7070/path/to/file", true, URIScheme_hpcc, "user:passwd@mydali:7070", "path/to/file"); test_uri("hpcc://*****:*****@mydali/path/to/file", true, URIScheme_hpcc, "user:passwd@mydali", "path/to/file"); }
int main() #endif { #if RUN_TEST_LOOP for(;;) #endif { tnet_startup(); /* Print copyright information */ printf("Doubango Project\nCopyright (C) 2009 - 2010 Mamadou Diop \n\n"); #if RUN_TEST_ALL || RUN_TEST_URI test_uri(); #endif #if RUN_TEST_ALL || RUN_TEST_PARSER test_parser(); #endif #if RUN_TEST_ALL || RUN_TEST_SESSION test_session(); #endif tnet_cleanup(); } }
int main() { axutil_env_t *env = cut_setup_env("Uri"); CUT_ASSERT(env != NULL); if (env) { test_uri(env); axutil_env_free(env); } CUT_RETURN_ON_FAILURE(-1); return 0; }
int main() { int status = AXIS2_SUCCESS; axutil_env_t *env = NULL; env = create_environment(); status = test_uri(env); if(status == AXIS2_FAILURE) { printf("The Test failed"); } axutil_env_free(env); return 0; }
int main() #endif { tnet_startup(); #if RUN_TEST_LOOP for(;;) #endif { /* Print copyright information */ printf("Doubango Project\nCopyright (C) 2009 - 2010 Mamadou Diop \n\n"); #if RUN_TEST_ALL || RUN_TEST_MESSAGES test_messages(); #endif #if RUN_TEST_ALL || RUN_TEST_URI test_uri(); #endif #if RUN_TEST_ALL ||RUN_TEST_TRANSAC test_transac(); #endif #if RUN_TEST_ALL || RUN_TEST_STACK test_stack(); #endif #if RUN_TEST_ALL || RUN_TEST_IMS_AKA test_imsaka(); #endif } tnet_cleanup(); return 0; }
void testURILocal() { test_uri("file:///opt/HPCCSystems/examples/IMDB/ActorsInMovies.ecl", true, URIScheme_file, "", "/opt/HPCCSystems/examples/IMDB/ActorsInMovies.ecl"); }
void testURIUnknwon() { test_uri("ftp://www.hpccsystems.com/", true); test_uri("gopher://www.hpccsystems.com/", true); test_uri("https://www.hpccsystems.com:443/", true); test_uri("http://*****:*****@www.hpccsystems.com:8080/my/path?is=full#of-stuff", true); }
void testURIError() { test_uri("You, shall not, pass!", false); test_uri("http://almost there...", false); }