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

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: Add unit test, fix absolute path Created 8 years, 10 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 c13a93e61bbaab2a53728df5b3ba483994e7bb5b..b5fc140c361fabd9ff4a93312ae81f0e558ba5c2 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -440,6 +440,46 @@
],
},
{
+ 'target_name': 'base_unittests_run',
+ 'type': 'none',
+ 'dependencies': [
+ 'base_unittests',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'isolate',
+ 'inputs': [
+ '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)',
+ 'data/file_util_unittest/',
Mark Mentovai 2012/03/06 22:05:02 Specifying a directory as an input is undefined. W
M-A Ruel 2012/03/06 22:19:51 For now, I don't list each files in the test data
+ ],
+ '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)',
+ ],
+ },
+ ],
+ },
+ {
'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