Commit 5b91fc5f authored by zmo@chromium.org's avatar zmo@chromium.org

Include angle tests in gpu_unittests

If this breaks win builds, please clobber the bots.

BUG=
TEST=gpu_unittests
R=kbr@chromium.org, piman@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227161

Review URL: https://codereview.chromium.org/23509013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235860 0039d316-1c4b-4281-b951-d872f2087c98
parent 173b8934
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/at_exit.h"
#include "base/command_line.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/angle_dx11/include/GLSLANG/ShaderLang.h"
int main(int argc, char** argv) {
// On Android, AtExitManager is created in
// testing/android/native_test_wrapper.cc before main() is called.
// The same thing is also done in base/test/test_suite.cc
#if !defined(OS_ANDROID)
base::AtExitManager exit_manager;
#endif
CommandLine::Init(argc, argv);
testing::InitGoogleMock(&argc, argv);
ShInitialize();
int rt = RUN_ALL_TESTS();
ShFinalize();
return rt;
}
......@@ -117,6 +117,34 @@
'<@(gles2_c_lib_source_files)',
],
},
{
'target_name': 'angle_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/angle_dx11/src/build_angle.gyp:translator_static',
],
'variables': {
'ANGLE_DIR': '../third_party/angle_dx11',
},
'includes': [
'../third_party/angle_dx11/tests/preprocessor_tests/preprocessor_tests.gypi',
'../third_party/angle_dx11/tests/compiler_tests/compiler_tests.gypi',
],
'include_dirs': [
'..',
'../third_party/angle_dx11/include',
'../third_party/angle_dx11/src',
'../third_party/angle_dx11/src/compiler/preprocessor',
'../third_party/angle_dx11/tests',
],
'sources': [
'angle_unittest_main.cc',
],
},
{
'target_name': 'gpu_unittests',
'type': '<(gtest_target_type)',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment