1 #include "piglit-framework-cl-custom.h"
4 * This is a file for Custom tests.
5 * This type of test should be used for tests that don't quite fit
6 * in other OpenCL tests (api and program tests in the time of writing).
7 * For each test uncomment the appropriate options and delete the rest.
8 * Empty template is in template_custom.c
11 /* Function prototypes for config.init_func and config.clean_func */
12 void init(const int argc
, const char** argv
, void* config
);
13 void clean(const int argc
, const char** argv
,void* config
);
15 /* Test configuration */
16 PIGLIT_CL_CUSTOM_TEST_CONFIG_BEGIN
19 config
.name
= "Test name"; // Name of the test
20 config
.run_per_platform
= true; // Run piglit_cl_test per each platform
21 config
.run_per_device
= true; // Run piglit_cl_test per each device
22 config
.platform_regex
= ".*Gallium.*"; // Only run on platforms that match this POSIX
23 // regex (if run_per_platform or run_per_device is true)
24 config
.device_regex
= ".*RV300.*"; // Only run on device that match this POSIX
25 // regex (if run_per_device is true)
26 config
.require_platform_extensions
= "ext1 ext2" //Space-delimited required platform extensions
27 config
.require_device_extensions
= "ext1 ext2" //Space-delimited required device extensions
28 init_func
= init
; // Function called before all the test calls
29 clean_func
= clean
; // Function called after all the test calls
31 PIGLIT_CL_CUSTOM_TEST_CONFIG_END
36 piglit_cl_test(const int argc
,
38 const struct piglit_cl_custom_test_config
* config
,
39 const struct piglit_cl_custom_test_env
* env
) // look at piglit-framework-cl-custom.h
41 enum piglit_result result
= PIGLIT_PASS
;