John Kessenich 4df10335e6 SPV: Partially address #2293: correct "const in" precision matching. 5 rokov pred
..
AST.FromFile.cpp 08328fea5a Fix xfb stride limit issue (#2088) 5 rokov pred
BuiltInResource.FromFile.cpp 1d3a966106 Gtests can be run on another source tree 9 rokov pred
CMakeLists.txt e01c847a70 Merge branch 'dj2-install' 6 rokov pred
Config.FromFile.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 7 rokov pred
HexFloat.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 7 rokov pred
Hlsl.FromFile.cpp 78a3c915a1 HLSL: Add better diagnostic when using in/out qualifiers in global scope (#2258) 5 rokov pred
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. 9 rokov pred
Link.FromFile.Vk.cpp 0b66fa3b62 Shader interface matching rework to fix #2136 (#2156) 5 rokov pred
Link.FromFile.cpp 6f723ebbe3 fix incorrect error when multiple compilation units don't declare layouts (#2238) 5 rokov pred
Pp.FromFile.cpp d03da06ac1 Remove execute permissions 7 rokov pred
README.md 414eb60482 Link in Google Test framework. 10 rokov pred
Remap.FromFile.cpp 65c2eed65d Remapper: handle embedded opcode in OpSpecConstantOp 8 rokov pred
Settings.cpp 1d3a966106 Gtests can be run on another source tree 9 rokov pred
Settings.h 1d3a966106 Gtests can be run on another source tree 9 rokov pred
Spv.FromFile.cpp 4df10335e6 SPV: Partially address #2293: correct "const in" precision matching. 5 rokov pred
TestFixture.cpp db32b243ff Add support for GLSL_EXT_ray_tracing 6 rokov pred
TestFixture.h 8c3d5b4b6c SPIR-V: Aggressively prune unreachable merge, continue target 6 rokov pred
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. 8 rokov pred
pch.cpp 22d0b7cbad Use precompiled headers for some glslang projects 7 rokov pred
pch.h 22d0b7cbad Use precompiled headers for some glslang projects 7 rokov pred

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.