John Kessenich 7fc8683491 Merge pull request #1813 from jeffbolznv/compositeconstruct 5 gadi atpakaļ
..
AST.FromFile.cpp c3e60ad9b6 Add AST tests for ray tracing shaders 5 gadi atpakaļ
BuiltInResource.FromFile.cpp 1d3a966106 Gtests can be run on another source tree 8 gadi atpakaļ
CMakeLists.txt 02ed310ac3 Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools 5 gadi atpakaļ
Config.FromFile.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 5 gadi atpakaļ
HexFloat.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 5 gadi atpakaļ
Hlsl.FromFile.cpp 4b4b41a634 HLSL: Fix #1815: Don't constant fold spec-constant array indexing. 5 gadi atpakaļ
Initializer.h 0a6fb85494 Infrastructure: Make shared symbol-table cache complete, delete work around. 8 gadi atpakaļ
Link.FromFile.Vk.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 5 gadi atpakaļ
Link.FromFile.cpp 31fbc11f5d Build: Remove extra commas in calling INSTANTIATE_TEST_SUITE_P. 5 gadi atpakaļ
Pp.FromFile.cpp d03da06ac1 Remove execute permissions 6 gadi atpakaļ
README.md 414eb60482 Link in Google Test framework. 8 gadi atpakaļ
Remap.FromFile.cpp 65c2eed65d Remapper: handle embedded opcode in OpSpecConstantOp 7 gadi atpakaļ
Settings.cpp 1d3a966106 Gtests can be run on another source tree 8 gadi atpakaļ
Settings.h 1d3a966106 Gtests can be run on another source tree 8 gadi atpakaļ
Spv.FromFile.cpp 7fc8683491 Merge pull request #1813 from jeffbolznv/compositeconstruct 5 gadi atpakaļ
TestFixture.cpp b50c02ef53 Add-support-for-SPV_NVX_raytracing 6 gadi atpakaļ
TestFixture.h cfea59d357 SPV 1.4: Add testing infrastructure for SPV 1.4 tests. 5 gadi atpakaļ
main.cpp 66011cb2c2 SPV: Implement Vulkan 1.1 features and extensions. 6 gadi atpakaļ
pch.cpp 22d0b7cbad Use precompiled headers for some glslang projects 5 gadi atpakaļ
pch.h 22d0b7cbad Use precompiled headers for some glslang projects 5 gadi atpakaļ

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.