From 0197164094381f924a981b23ba7adebea908e715 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 7 Mar 2012 14:39:56 +0000 Subject: 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 --- base/base.gyp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'base/base.gyp') 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': [ -- cgit v1.1