コード例 #1
0
    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");
    }
コード例 #2
0
ファイル: test.c プロジェクト: NewComerBH/doubango
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();
	}
}
コード例 #3
0
ファイル: uri_test.c プロジェクト: alexis-gruet/axis2c-trunk
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;
}
コード例 #4
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;
}
コード例 #5
0
ファイル: test.c プロジェクト: NewComerBH/doubango
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;
}
コード例 #6
0
 void testURILocal() {
     test_uri("file:///opt/HPCCSystems/examples/IMDB/ActorsInMovies.ecl", true, URIScheme_file, "", "/opt/HPCCSystems/examples/IMDB/ActorsInMovies.ecl");
 }
コード例 #7
0
 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);
 }
コード例 #8
0
 void testURIError() {
     test_uri("You, shall not, pass!", false);
     test_uri("http://almost there...", false);
 }