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

Unified Diff: base/base.gyp

Issue 9513003: Add target base_unittests_run and tools/isolate/isolate.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove directory from 'inputs' Created 8 years, 9 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 | « no previous file | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base.gyp
diff --git a/base/base.gyp b/base/base.gyp
index 1a1caeeb72d3c5f788448c9f8c71c0c5f7f48e5b..2d242bd30772006eaf6fa3621e36df126cd241ac 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -442,6 +442,51 @@
],
},
{
+ 'target_name': 'base_unittests_run',
+ 'type': 'none',
+ 'dependencies': [
+ 'base_unittests',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'isolate',
+ 'inputs': [
+ '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
+ ],
+ 'conditions': [
+ ['OS != "mac" and OS != "win"', {
+ 'inputs': [
+ '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)',
+ ],
+ }],
+ ['OS == "win"', {
+ 'inputs': [
+ 'data/file_version_info_unittest/FileVersionInfoTest1.dll',
+ 'data/file_version_info_unittest/FileVersionInfoTest2.dll',
+ ],
+ }],
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/base_unittests.results',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/tools/isolate/isolate.py',
+ '--mode=<(tests_run)',
+ '--root', '<(DEPTH)',
+ '--result', '<@(_outputs)',
+ '<@(_inputs)',
+ # Directories can't be tracked by build tools (make, msbuild, xcode,
+ # etc) so we just put it on the command line without specifying it
+ # as an input.
+ # TODO(maruel): Revisit the support for this at all and list each
+ # individual test files instead.
+ 'data/file_util_unittest/',
+ ],
+ },
+ ],
+ },
+ {
'target_name': 'test_support_perf',
'type': 'static_library',
'dependencies': [
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698