Diego Novillo f43df42fe6 Revert "Fix erroneous parse error when declaring variables using struct names" (#4002) 5 天之前
..
AST.FromFile.cpp 2e24222cd9 Error for in/out structs containing booleans (#3973) 2 周之前
BuiltInResource.FromFile.cpp a88f674124 Fix issues with MaxDualSourceDrawBuffersEXT 2 年之前
CMakeLists.txt f43df42fe6 Revert "Fix erroneous parse error when declaring variables using struct names" (#4002) 5 天之前
Common.cpp fa6e3c2737 Add IntLog2 and use it 4 年之前
Config.FromFile.cpp 90c5214344 Improve ResourceLimits interface to be more forward compatible 2 年之前
GlslMapIO.FromFile.cpp bd6c5febcb Revert "add cross-stage check for missing outputs" 6 月之前
HexFloat.cpp 23f3bdfea1 Build/Test: Dropping 2013 allows using the latest googletests. 5 年之前
Hlsl.FromFile.cpp f69d2768e5 Use line and column from node on DebugLexicalBlock. 9 月之前
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. 9 年之前
Link.FromFile.Vk.cpp 4056002eb2 Fix incorrect "Contradictory layout" link errors (#3920) 2 周之前
Link.FromFile.cpp 4056002eb2 Fix incorrect "Contradictory layout" link errors (#3920) 2 周之前
LiveTraverser.FromFile.cpp 0b3e8560fe LiveTraverser no longer traverses switch cases that are statically not accessed 3 月之前
Pp.FromFile.cpp 9cd7ca26a2 PP: Don't report certain error about '#' when #if'd out 10 月之前
README.md 414eb60482 Link in Google Test framework. 9 年之前
Remap.FromFile.cpp 23f3bdfea1 Build/Test: Dropping 2013 allows using the latest googletests. 5 年之前
Settings.cpp 1d3a966106 Gtests can be run on another source tree 8 年之前
Settings.h 1d3a966106 Gtests can be run on another source tree 8 年之前
Spv.FromFile.cpp e9d166cd3b Add GL_ARM_tensors 1 月之前
TestFixture.cpp 5fc62e8262 Implement optional cross-stage check for input with no matching output 3 月之前
TestFixture.h f69d2768e5 Use line and column from node on DebugLexicalBlock. 9 月之前
VkRelaxed.FromFile.cpp 02bc074ac4 Update tests to use the new iomapper interface 10 月之前
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. 7 年之前
pch.h 22d0b7cbad Use precompiled headers for some glslang projects 6 年之前

README.md

Glslang Tests based on the Google Test Framework

This directory contains Google Test based test fixture and test cases for glslang.

Apart from typical unit tests, necessary utility methods are added into the GlslangTests fixture to provide the ability to do file-based integration tests. Various *.FromFile.cpp files lists names of files containing input shader code in the Test/ directory. Utility methods will load the input shader source, compile them, and compare with the corresponding expected output in the Test/baseResults/ directory.

How to run the tests

Please make sure you have a copy of Google Test checked out under the External directory before building. After building, just run the ctest command or the gtests/glslangtests binary in your build directory.

The gtests/glslangtests binary also provides an --update-mode command line option, which, if supplied, will overwrite the golden files under the Test/baseResults/ directory with real output from that invocation. This serves as an easy way to update golden files.