[Piglit] [PATCH 04/11] Add CL build test for specified include directories
Aaron Watry
awatry at gmail.com
Wed Oct 10 16:44:05 PDT 2012
---
tests/all_cl.tests | 1 +
tests/cl/program/build/include-directories.cl | 15 +++++++++++++++
tests/cl/program/build/include_test.h | 1 +
3 files changed, 17 insertions(+)
create mode 100644 tests/cl/program/build/include-directories.cl
create mode 100644 tests/cl/program/build/include_test.h
diff --git a/tests/all_cl.tests b/tests/all_cl.tests
index e3c506e..66de424 100644
--- a/tests/all_cl.tests
+++ b/tests/all_cl.tests
@@ -100,6 +100,7 @@ add_plain_program_tester_test(program_build, 'Scalar and vector operators', 'bu
add_plain_program_tester_test(program_build, 'Macro Definitions', 'build/macro-definitions.cl')
add_plain_program_tester_test(program_build, 'Macro definitions with values', 'build/macro-definitions-with-values.cl')
add_plain_program_tester_test(program_build, 'Mixed macro definitions', 'build/mixed-macro-definitions.cl')
+add_plain_program_tester_test(program_build, 'Include Directories', 'build/include-directories.cl')
add_plain_program_tester_test(program_build_fail, 'Increment operator on float', 'build/fail/increment-float.cl')
add_plain_program_tester_test(program_build_fail, 'Add different size vector', 'build/fail/add-different-size-vector.cl')
# Execute
diff --git a/tests/cl/program/build/include-directories.cl b/tests/cl/program/build/include-directories.cl
new file mode 100644
index 0000000..2b2f69b
--- /dev/null
+++ b/tests/cl/program/build/include-directories.cl
@@ -0,0 +1,15 @@
+/*!
+[config]
+name: Include Directories
+clc_version_min: 10
+build_options: -I . -I tests/cl/program/build
+!*/
+
+#include "include_test.h"
+
+void dummy_function() {}
+
+kernel void dummy_kernel() {
+ dummy_function();
+ int test = BUILD_OPT;
+}
diff --git a/tests/cl/program/build/include_test.h b/tests/cl/program/build/include_test.h
new file mode 100644
index 0000000..aa88e76
--- /dev/null
+++ b/tests/cl/program/build/include_test.h
@@ -0,0 +1 @@
+#define BUILD_OPT 1
--
1.7.9.5
More information about the Piglit
mailing list