Add support for testing file-based HLSL source code in GTest.
diff --git a/gtests/AST.FromFile.cpp b/gtests/AST.FromFile.cpp
index 5e0b31e..3f4819a 100644
--- a/gtests/AST.FromFile.cpp
+++ b/gtests/AST.FromFile.cpp
@@ -44,7 +44,8 @@
TEST_P(CompileToAstTest, FromFile)
{
loadFileCompileAndCheck(GLSLANG_TEST_DIRECTORY, GetParam(),
- Semantics::OpenGL, Target::AST);
+ Source::GLSL, Semantics::OpenGL,
+ Target::AST);
}
// clang-format off
@@ -183,7 +184,7 @@
"nonVulkan.frag",
"spv.atomic.comp",
})),
- FileNameAsCustomTestName
+ FileNameAsCustomTestSuffix
);
// clang-format on