OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
440 'test/values_test_util.cc', | 440 'test/values_test_util.cc', |
441 'test/values_test_util.h', | 441 'test/values_test_util.h', |
442 ], | 442 ], |
443 }, | 443 }, |
444 { | 444 { |
445 'target_name': 'base_unittests_run', | 445 'target_name': 'base_unittests_run', |
446 'type': 'none', | 446 'type': 'none', |
447 'dependencies': [ | 447 'dependencies': [ |
448 'base_unittests', | 448 'base_unittests', |
449 ], | 449 ], |
450 'variables': { | |
451 'test_inputs': [ | |
452 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | |
453 '<(PRODUCT_DIR)/xdisplaycheck', | |
454 '<(DEPTH)/testing/test_env.py', | |
455 '<(DEPTH)/testing/xvfb.py', | |
456 ], | |
457 'conditions': [ | |
458 ['OS != "mac" and OS != "win"', { | |
459 'test_inputs': [ | |
460 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', | |
461 ], | |
462 }], | |
463 ['OS == "win"', { | |
464 'test_inputs': [ | |
465 'data/file_version_info_unittest/FileVersionInfoTest1.dll', | |
466 'data/file_version_info_unittest/FileVersionInfoTest2.dll', | |
467 ], | |
468 }], | |
469 ], | |
470 }, | |
450 'actions': [ | 471 'actions': [ |
451 { | 472 { |
473 'action_name': 'response_file', | |
474 'inputs': [ | |
475 '<@(test_inputs)', | |
476 ], | |
477 'outputs': [ | |
478 '<(PRODUCT_DIR)/base_unittests.inputs', | |
479 ], | |
480 'action': [ | |
481 'python', | |
482 '-c', | |
483 'import sys; ' | |
M-A Ruel
2012/03/07 20:21:05
This doesn't seem optimal but it permits me to kee
| |
484 'open(sys.argv[1], "w").write("\\n".join(sys.argv[2:]))', | |
485 '<@(_outputs)', | |
486 '<@(_inputs)', | |
487 ], | |
488 }, | |
489 { | |
452 'action_name': 'isolate', | 490 'action_name': 'isolate', |
453 'inputs': [ | 491 'inputs': [ |
454 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | 492 '<(PRODUCT_DIR)/base_unittests.inputs', |
455 ], | |
456 'conditions': [ | |
457 ['OS != "mac" and OS != "win"', { | |
458 'inputs': [ | |
459 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', | |
460 ], | |
461 }], | |
462 ['OS == "win"', { | |
463 'inputs': [ | |
464 'data/file_version_info_unittest/FileVersionInfoTest1.dll', | |
465 'data/file_version_info_unittest/FileVersionInfoTest2.dll', | |
466 ], | |
467 }], | |
468 ], | 493 ], |
469 'outputs': [ | 494 'outputs': [ |
470 '<(PRODUCT_DIR)/base_unittests.results', | 495 '<(PRODUCT_DIR)/base_unittests.results', |
471 ], | 496 ], |
472 'action': [ | 497 'action': [ |
473 'python', | 498 'python', |
474 '<(DEPTH)/tools/isolate/isolate.py', | 499 '<(DEPTH)/tools/isolate/isolate.py', |
475 '--mode=<(tests_run)', | 500 '--mode=<(tests_run)', |
476 '--root', '<(DEPTH)', | 501 '--root', '<(DEPTH)', |
477 '--result', '<@(_outputs)', | 502 '--result', '<@(_outputs)', |
478 '<@(_inputs)', | 503 '--files', '<@(_inputs)', |
479 # Directories can't be tracked by build tools (make, msbuild, xcode, | 504 # Directories can't be tracked by build tools (make, msbuild, xcode, |
480 # etc) so we just put it on the command line without specifying it | 505 # etc) so we just put it on the command line without specifying it |
481 # as an input. | 506 # as an input. |
482 # TODO(maruel): Revisit the support for this at all and list each | 507 # TODO(maruel): Revisit the support for this at all and list each |
483 # individual test files instead. | 508 # individual test files instead. |
484 'data/file_util_unittest/', | 509 'data/file_util_unittest/', |
510 '--', | |
511 # Wraps base_unittests under xvfb. | |
512 '<(DEPTH)/testing/xvfb.py', | |
513 '<(PRODUCT_DIR)', | |
514 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | |
485 ], | 515 ], |
486 }, | 516 }, |
487 ], | 517 ], |
488 }, | 518 }, |
489 { | 519 { |
490 'target_name': 'test_support_perf', | 520 'target_name': 'test_support_perf', |
491 'type': 'static_library', | 521 'type': 'static_library', |
492 'dependencies': [ | 522 'dependencies': [ |
493 'base', | 523 'base', |
494 '../testing/gtest.gyp:gtest', | 524 '../testing/gtest.gyp:gtest', |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 # treated as weak imports in dependents, who still must | 620 # treated as weak imports in dependents, who still must |
591 # #include closure_blocks_leopard_compat.h to get weak imports. | 621 # #include closure_blocks_leopard_compat.h to get weak imports. |
592 'type': 'none', | 622 'type': 'none', |
593 }], | 623 }], |
594 ], | 624 ], |
595 }, | 625 }, |
596 ], | 626 ], |
597 }], | 627 }], |
598 ], | 628 ], |
599 } | 629 } |
OLD | NEW |