Add support for testing file-based HLSL source code in GTest.

This commit is contained in:
Lei Zhang
2016-05-16 12:50:30 -04:00
parent 4678ca9dac
commit d6f0ed2c81
8 changed files with 142 additions and 38 deletions

View File

@@ -44,7 +44,8 @@ using CompileToAstTest = GlslangTest<::testing::TestWithParam<std::string>>;
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 @@ INSTANTIATE_TEST_CASE_P(
"nonVulkan.frag",
"spv.atomic.comp",
})),
FileNameAsCustomTestName
FileNameAsCustomTestSuffix
);
// clang-format on