spencer-lunarg 7a47e2531c Fix Adding unneeded RuntimeDescriptorArray with BDA 3 maanden geleden
..
AST.FromFile.cpp 8f94d3bc8a Add ES support for depth layout qualifier 3 maanden geleden
BuiltInResource.FromFile.cpp a88f674124 Fix issues with MaxDualSourceDrawBuffersEXT 3 jaren geleden
CMakeLists.txt ffcdd3ea9a Add support for GLSL_EXT_uniform_buffer_unsized_array (#4075) 3 maanden geleden
Common.cpp fa6e3c2737 Add IntLog2 and use it 4 jaren geleden
Config.FromFile.cpp 90c5214344 Improve ResourceLimits interface to be more forward compatible 3 jaren geleden
GlslMapIO.FromFile.cpp 5f6c7176c5 Support IO mapping of combined samplers and acceleration structures 4 maanden geleden
HexFloat.cpp 23f3bdfea1 Build/Test: Dropping 2013 allows using the latest googletests. 5 jaren geleden
Hlsl.FromFile.cpp f69d2768e5 Use line and column from node on DebugLexicalBlock. 1 jaar geleden
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. 9 jaren geleden
Link.FromFile.Vk.cpp 4056002eb2 Fix incorrect "Contradictory layout" link errors (#3920) 7 maanden geleden
Link.FromFile.cpp 4056002eb2 Fix incorrect "Contradictory layout" link errors (#3920) 7 maanden geleden
LiveTraverser.FromFile.cpp 0b3e8560fe LiveTraverser no longer traverses switch cases that are statically not accessed 10 maanden geleden
Pp.FromFile.cpp 66de1f9fc9 Preprocessor: Implement stringify operator 3 maanden geleden
README.md 414eb60482 Link in Google Test framework. 10 jaren geleden
Settings.cpp 1d3a966106 Gtests can be run on another source tree 9 jaren geleden
Settings.h 1d3a966106 Gtests can be run on another source tree 9 jaren geleden
Spv.FromFile.cpp 7a47e2531c Fix Adding unneeded RuntimeDescriptorArray with BDA 3 maanden geleden
SpvPatternTest.cpp 0f2400cd75 Add license to new test file. 6 maanden geleden
StructName.cpp b4e66d7b14 Fix erroneous parse errors in variable declarations using existing struct names (#4005) 6 maanden geleden
TestFixture.cpp 5fc62e8262 Implement optional cross-stage check for input with no matching output 10 maanden geleden
TestFixture.h 1c7030f06f Fix Buffer Reference having zero alignment 3 maanden geleden
UboUnsizedArray.cpp ffcdd3ea9a Add support for GLSL_EXT_uniform_buffer_unsized_array (#4075) 3 maanden geleden
VkRelaxed.FromFile.cpp 3289b1d61b Fix crash on unnamed function parameters under relaxed rules (#3962) 6 maanden geleden
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. 8 jaren geleden
pch.h 22d0b7cbad Use precompiled headers for some glslang projects 7 jaren geleden

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.