dolphin/Externals/glslang/gtests
orbea 690dee3533 Externals: Update glslang.
This updates glslang to commit 4fc7a33910fb8e40b970d160e1b38ab3f67fe0f3
which is the current version listed in the known_good.json file for the
version 1.2.131.2 of the Vulkan-ValidationLayers repo.
2020-05-30 18:06:03 -07:00
..
AST.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
BuiltInResource.FromFile.cpp Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
CMakeLists.txt Externals: Update glslang. 2020-05-30 18:06:03 -07:00
Config.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
HexFloat.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
Hlsl.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
Initializer.h Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
Link.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
Link.FromFile.Vk.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
main.cpp Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
pch.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
pch.h Externals: Update glslang. 2020-05-30 18:06:03 -07:00
Pp.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
README.md
Remap.FromFile.cpp Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
Settings.cpp Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
Settings.h Externals: Update glslang to upstream commit 32d3ec3 2018-06-02 07:34:31 +00:00
Spv.FromFile.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
TestFixture.cpp Externals: Update glslang. 2020-05-30 18:06:03 -07:00
TestFixture.h Externals: Update glslang. 2020-05-30 18:06:03 -07:00

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.