Arcady Goldmints-Orlov 02bc074ac4 Update tests to use the new iomapper interface hai 6 días
..
AST.FromFile.cpp 52f68dc6b2 Add more location aliasing checks hai 2 meses
BuiltInResource.FromFile.cpp a88f674124 Fix issues with MaxDualSourceDrawBuffersEXT hai 1 ano
CMakeLists.txt 4f01996c9d Merge ancillary libraries into main glslang library and stub originals hai 1 mes
Common.cpp fa6e3c2737 Add IntLog2 and use it %!s(int64=3) %!d(string=hai) anos
Config.FromFile.cpp 90c5214344 Improve ResourceLimits interface to be more forward compatible hai 1 ano
GlslMapIO.FromFile.cpp 02bc074ac4 Update tests to use the new iomapper interface hai 6 días
HexFloat.cpp 23f3bdfea1 Build/Test: Dropping 2013 allows using the latest googletests. %!s(int64=4) %!d(string=hai) anos
Hlsl.FromFile.cpp 9f34b25f30 Fix HLSL offsets for non-cbuffers (#3668) hai 1 mes
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. %!s(int64=8) %!d(string=hai) anos
Link.FromFile.Vk.cpp 6495f77b04 Remove redundant calls to spv::Parameterize() from tests hai 1 semana
Link.FromFile.cpp f9b760e6c7 [glslang] Refine implicit array size interfaces. (#3074) hai 1 ano
Pp.FromFile.cpp 9cd7ca26a2 PP: Don't report certain error about '#' when #if'd out hai 2 semanas
README.md 414eb60482 Link in Google Test framework. %!s(int64=8) %!d(string=hai) anos
Remap.FromFile.cpp 23f3bdfea1 Build/Test: Dropping 2013 allows using the latest googletests. %!s(int64=4) %!d(string=hai) anos
Settings.cpp 1d3a966106 Gtests can be run on another source tree %!s(int64=8) %!d(string=hai) anos
Settings.h 1d3a966106 Gtests can be run on another source tree %!s(int64=8) %!d(string=hai) anos
Spv.FromFile.cpp f7f0f3067c Add tests for compute shader derivatives with spec constant workgroup size hai 1 semana
TestFixture.cpp 228c67228a GL_EXT_mesh_shader/SPV_EXT_mesh_shader implementation %!s(int64=2) %!d(string=hai) anos
TestFixture.h 6495f77b04 Remove redundant calls to spv::Parameterize() from tests hai 1 semana
VkRelaxed.FromFile.cpp 02bc074ac4 Update tests to use the new iomapper interface hai 6 días
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. %!s(int64=6) %!d(string=hai) anos
pch.h 22d0b7cbad Use precompiled headers for some glslang projects %!s(int64=5) %!d(string=hai) anos

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.