예제 #1
0
int main(int argc, char **argv)
{
    test_icd_initialize_app_log();
    test_icd_initialize_stub_log();

    test_create_calls();
    test_platforms();
    test_cl_runtime();
    test_kernel();
    test_buffer_object();
    test_program_objects();
    test_image_objects();
    test_sampler_objects();
    test_OpenGL_share();

//    test_Direct3D10_share();
    test_release_calls();
    test_icd_close_app_log();
    test_icd_close_stub_log();
    
    if (test_icd_match()) {
        printf("ICD Loader Test FAILED\n");
        return 1;
    } else {
        printf("ICD Loader Test PASSED\n");
        return 0;
    }
}
예제 #2
0
int main(int argc, char** argv)
{
	if(argc == 2 && !strncmp(argv[1], "-v", 2)) verbose = 1;
	test_platforms();
	return 0;
}