Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1116)

Unified Diff: src/test/test.gyp

Issue 540823002: Refactor common unit test code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/test/run-all-unittests.cc ('k') | src/test/test-utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/test/test.gyp
diff --git a/src/heap/heap.gyp b/src/test/test.gyp
similarity index 64%
copy from src/heap/heap.gyp
copy to src/test/test.gyp
index 2970eb8a43b7d78af308ec2d807c0cb44fad956d..f4c6a5e46997334ed1afbdcf848865fb6bddec37 100644
--- a/src/heap/heap.gyp
+++ b/src/test/test.gyp
@@ -9,22 +9,31 @@
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
'targets': [
{
- 'target_name': 'heap-unittests',
- 'type': 'executable',
+ 'target_name': 'run-all-unittests',
+ 'type': 'static_library',
+ 'variables': {
+ 'optimize': 'max',
+ },
'dependencies': [
+ '../../testing/gmock.gyp:gmock',
'../../testing/gtest.gyp:gtest',
- '../../testing/gtest.gyp:gtest_main',
'../../tools/gyp/v8.gyp:v8_libplatform',
],
'include_dirs': [
'../..',
],
'sources': [ ### gcmole(all) ###
- 'gc-idle-time-handler-unittest.cc',
+ 'run-all-unittests.cc',
+ 'test-utils.h',
+ 'test-utils.cc',
+ ],
+ 'export_dependent_settings': [
+ '../../testing/gmock.gyp:gmock',
+ '../../testing/gtest.gyp:gtest',
],
'conditions': [
['component=="shared_library"', {
- # heap-unittests can't be built against a shared library, so we
+ # compiler-unittests can't be built against a shared library, so we
# need to depend on the underlying static target in that case.
'conditions': [
['v8_use_snapshot=="true"', {
@@ -45,6 +54,16 @@
'cflags!': [
'-pedantic',
],
+ 'direct_dependent_settings': {
+ 'cflags!': [
+ '-pedantic',
+ ],
+ },
+ }],
+ ['want_separate_host_toolset==1', {
+ 'toolsets': ['host', 'target'],
+ }, {
+ 'toolsets': ['target'],
}],
],
},
« no previous file with comments | « src/test/run-all-unittests.cc ('k') | src/test/test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698