diff options
author | Timothy Arceri <tarceri@itsqueeze.com> | 2019-08-12 22:41:00 +1000 |
---|---|---|
committer | Timothy Arceri <tarceri@itsqueeze.com> | 2019-09-04 15:57:35 +1000 |
commit | 77dbfefe1fac79879350822aeabf857480715130 (patch) | |
tree | 6199a63e9094410a6c7c64074ba859e52ac5f9b6 | |
parent | e9799d6d00dad888c50ba19e7bf7ffe6c05cad53 (diff) |
arb_shading_language_include: add compile tests for relative path
3 files changed, 48 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_include/compile/relative_path.frag b/tests/spec/arb_shading_language_include/compile/relative_path.frag new file mode 100644 index 000000000..1f288a85b --- /dev/null +++ b/tests/spec/arb_shading_language_include/compile/relative_path.frag @@ -0,0 +1,15 @@ +// [config] +// expect_result: pass +// glsl_version: 1.10 +// require_extensions: GL_ARB_shading_language_include +// dummy_shader_include: True +// shader_include_path: /dummy/path_to +// [end config] + +#extension GL_ARB_shading_language_include: enable + +#include <shader_include> + +void main() +{ +} diff --git a/tests/spec/arb_shading_language_include/compile/relative_path_no_string_associated.frag b/tests/spec/arb_shading_language_include/compile/relative_path_no_string_associated.frag new file mode 100644 index 000000000..7cbc67607 --- /dev/null +++ b/tests/spec/arb_shading_language_include/compile/relative_path_no_string_associated.frag @@ -0,0 +1,17 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// require_extensions: GL_ARB_shading_language_include +// dummy_shader_include: True +// shader_include_path: /dummy +// [end config] + +#extension GL_ARB_shading_language_include: enable + +// This path exists but there will be no string +// is associated with it. +#include <path_to> + +void main() +{ +} diff --git a/tests/spec/arb_shading_language_include/compile/relative_path_not_in_tree.frag b/tests/spec/arb_shading_language_include/compile/relative_path_not_in_tree.frag new file mode 100644 index 000000000..d5eb60b25 --- /dev/null +++ b/tests/spec/arb_shading_language_include/compile/relative_path_not_in_tree.frag @@ -0,0 +1,16 @@ +// [config] +// expect_result: fail +// glsl_version: 1.10 +// require_extensions: GL_ARB_shading_language_include +// dummy_shader_include: True +// shader_include_path: /dummy/path_to +// [end config] + +#extension GL_ARB_shading_language_include: enable + +// This path does not exist +#include <shader_not_include> + +void main() +{ +} |