John Kessenich 2d9b0a3550 HLSL: Fix #1912: add attribute syntax for overriding image formats. пре 6 година
..
AST.FromFile.cpp 9a5689f632 GLSL: Inherit memory qualifiers, both declaratively and in execution. пре 6 година
BuiltInResource.FromFile.cpp 1d3a966106 Gtests can be run on another source tree пре 9 година
CMakeLists.txt 02ed310ac3 Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools пре 7 година
Config.FromFile.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. пре 7 година
HexFloat.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. пре 7 година
Hlsl.FromFile.cpp 2d9b0a3550 HLSL: Fix #1912: add attribute syntax for overriding image formats. пре 6 година
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. пре 9 година
Link.FromFile.Vk.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. пре 7 година
Link.FromFile.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. пре 7 година
Pp.FromFile.cpp d03da06ac1 Remove execute permissions пре 7 година
README.md 414eb60482 Link in Google Test framework. пре 10 година
Remap.FromFile.cpp 65c2eed65d Remapper: handle embedded opcode in OpSpecConstantOp пре 8 година
Settings.cpp 1d3a966106 Gtests can be run on another source tree пре 9 година
Settings.h 1d3a966106 Gtests can be run on another source tree пре 9 година
Spv.FromFile.cpp 90e402f42b SPV_KHR_physical_storage_buffer/SPV: Add GL_EXT_buffer_reference_uvec2 пре 6 година
TestFixture.cpp 7015bd658e Web: Remove/rationalize a set of *_EXTENSIONS, using GLSLANG_WEB. пре 6 година
TestFixture.h b9197c812e Web: Make switched methods all be non-virtual, more web-dependent code, пре 6 година
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. пре 8 година
pch.cpp 22d0b7cbad Use precompiled headers for some glslang projects пре 7 година
pch.h 22d0b7cbad Use precompiled headers for some glslang projects пре 7 година

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.