mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
end2end test with --use-gl fails with a note
Bug: None Change-Id: I7e6e40c912910d0ffc8d4690e9b9b4c8599342db Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4804368 Auto-Submit: Roman Lavrov <romanl@google.com> Commit-Queue: Roman Lavrov <romanl@google.com> Commit-Queue: Amirali Abdolrashidi <abdolrashidi@google.com> Reviewed-by: Amirali Abdolrashidi <abdolrashidi@google.com>
This commit is contained in:
committed by
Angle LUCI CQ
parent
d41ac4dac3
commit
0ef565c50e
@@ -22,10 +22,30 @@ void RegisterContextCompatibilityTests();
|
||||
namespace
|
||||
{
|
||||
constexpr char kTestExpectationsPath[] = "src/tests/angle_end2end_tests_expectations.txt";
|
||||
|
||||
bool HasArg(int argc, char **argv, const char *arg)
|
||||
{
|
||||
for (int i = 1; i < argc; ++i)
|
||||
{
|
||||
if (strstr(argv[i], arg) != nullptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (!HasArg(argc, argv, "--list-tests") && !HasArg(argc, argv, "--gtest_list_tests") &&
|
||||
HasArg(argc, argv, "--use-gl"))
|
||||
{
|
||||
std::cerr << "--use-gl isn't supported by end2end tests - use *_EGL configs instead "
|
||||
"(angle_test_enable_system_egl=true)\n";
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
auto registerTestsCallback = [] {
|
||||
if (!IsTSan())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user