Jeff Bolz 9f2aec49e9 GL_EXT_buffer_reference 7 years ago
..
AST.FromFile.cpp 81a63f1de0 Add conversion folding when the source is a constant. 7 years ago
BuiltInResource.FromFile.cpp 1d3a966106 Gtests can be run on another source tree 9 years ago
CMakeLists.txt 02ed310ac3 Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools 7 years ago
Config.FromFile.cpp ed777b0fbd Modify testing to only record validation pass/fail 7 years ago
HexFloat.cpp 486d9e44e0 Update HexFloat tests to use non-enum class enum values 9 years ago
Hlsl.FromFile.cpp 5620a2f95e Add passes to legalization to preserve source line info when generated. 7 years ago
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. 9 years ago
Link.FromFile.Vk.cpp ed777b0fbd Modify testing to only record validation pass/fail 7 years ago
Link.FromFile.cpp ed777b0fbd Modify testing to only record validation pass/fail 7 years ago
Pp.FromFile.cpp d03da06ac1 Remove execute permissions 7 years ago
README.md 414eb60482 Link in Google Test framework. 10 years ago
Remap.FromFile.cpp 65c2eed65d Remapper: handle embedded opcode in OpSpecConstantOp 8 years ago
Settings.cpp 1d3a966106 Gtests can be run on another source tree 9 years ago
Settings.h 1d3a966106 Gtests can be run on another source tree 9 years ago
Spv.FromFile.cpp 9f2aec49e9 GL_EXT_buffer_reference 7 years ago
TestFixture.cpp b50c02ef53 Add-support-for-SPV_NVX_raytracing 7 years ago
TestFixture.h ebfd91a719 Remove Unix executable permission from text files 7 years ago
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. 8 years ago
pch.cpp 22d0b7cbad Use precompiled headers for some glslang projects 7 years ago
pch.h 22d0b7cbad Use precompiled headers for some glslang projects 7 years ago

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.