mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Externals: Update glslang to upstream commit 32d3ec3
This commit is contained in:
20
Externals/glslang/gtests/main.cpp
vendored
20
Externals/glslang/gtests/main.cpp
vendored
@ -33,6 +33,7 @@
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
@ -49,9 +50,24 @@ int main(int argc, char** argv)
|
||||
glslangtest::GlobalTestSettings.initializer = initializer.get();
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (!strncmp("--update-mode", argv[i], 13)) {
|
||||
if (std::string("--update-mode") == argv[i]) {
|
||||
glslangtest::GlobalTestSettings.updateMode = true;
|
||||
break;
|
||||
}
|
||||
if (std::string("--test-root") == argv[i]) {
|
||||
// Allow the user set the test root directory. This is useful
|
||||
// for testing with files from another source tree.
|
||||
if (i + 1 < argc) {
|
||||
glslangtest::GlobalTestSettings.testRoot = argv[i + 1];
|
||||
i++;
|
||||
} else {
|
||||
printf("error: --test-root requires an argument\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (std::string("--help") == argv[i]) {
|
||||
printf("\nExtra options:\n\n");
|
||||
printf(" --update-mode\n Update the golden results for the tests.\n");
|
||||
printf(" --test-root <arg>\n Specify the test root directory (useful for testing with\n files from another source tree).\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user