diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 14:39:56 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-07 14:39:56 +0000 |
commit | 0197164094381f924a981b23ba7adebea908e715 (patch) | |
tree | 7365afa2dc485c11c197b53d07e55b7956057a33 /base/base.gyp | |
parent | b994578429ce08ec04e45648451a4758a66ed5b7 (diff) | |
download | chromium_src-0197164094381f924a981b23ba7adebea908e715.zip chromium_src-0197164094381f924a981b23ba7adebea908e715.tar.gz chromium_src-0197164094381f924a981b23ba7adebea908e715.tar.bz2 |
Add target base_unittests_run and tools/isolate/isolate.py.
This target uses isolate.py to run the unit test in a separate directory.
BUG=98636
TEST=
Review URL: http://codereview.chromium.org/9513003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gyp')
-rw-r--r-- | base/base.gyp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/base/base.gyp b/base/base.gyp index 1a1caee..2d242bd 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': [ |