You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
#include<stdio.h>
|
|
#include<CL/cl.h>
|
|
#include<platform/icd_test_log.h>
|
|
#include "param_struct.h"
|
|
|
|
extern int test_create_calls();
|
|
extern int test_platforms();
|
|
extern int test_cl_runtime();
|
|
extern int test_kernel();
|
|
extern int test_buffer_object();
|
|
extern int test_program_objects();
|
|
extern int test_image_objects();
|
|
extern int test_sampler_objects();
|
|
extern int initialize_log();
|
|
extern int test_icd_match();
|
|
|
|
extern int test_OpenGL_share();
|
|
extern int test_Direct3D10_share();
|
|
|
|
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;
|
|
}
|
|
}
|
|
|