| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'actions': [ | 450 'actions': [ |
| 451 { | 451 { |
| 452 'action_name': 'isolate', | 452 'action_name': 'response_file', |
| 453 'inputs': [ | 453 'inputs': [ |
| 454 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | 454 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', |
| 455 '<(DEPTH)/testing/test_env.py', |
| 456 '<(DEPTH)/testing/xvfb.py', |
| 455 ], | 457 ], |
| 456 'conditions': [ | 458 'conditions': [ |
| 457 ['OS != "mac" and OS != "win"', { | 459 ['OS=="linux"', { |
| 458 'inputs': [ | 460 'inputs': [ |
| 459 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', | 461 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', |
| 460 ], | 462 ], |
| 461 }], | 463 }], |
| 462 ['OS == "win"', { | 464 ['OS == "win"', { |
| 463 'inputs': [ | 465 'inputs': [ |
| 464 'data/file_version_info_unittest/FileVersionInfoTest1.dll', | 466 'data/file_version_info_unittest/FileVersionInfoTest1.dll', |
| 465 'data/file_version_info_unittest/FileVersionInfoTest2.dll', | 467 'data/file_version_info_unittest/FileVersionInfoTest2.dll', |
| 466 ], | 468 ], |
| 467 }], | 469 }], |
| 468 ], | 470 ], |
| 469 'outputs': [ | 471 'outputs': [ |
| 472 '<(PRODUCT_DIR)/base_unittests.inputs', |
| 473 ], |
| 474 'action': [ |
| 475 'python', |
| 476 '-c', |
| 477 'import sys; ' |
| 478 'open(sys.argv[1], \'w\').write(\'\\n\'.join(sys.argv[2:]))', |
| 479 '<@(_outputs)', |
| 480 '<@(_inputs)', |
| 481 ], |
| 482 }, |
| 483 { |
| 484 'action_name': 'isolate', |
| 485 'inputs': [ |
| 486 '<(PRODUCT_DIR)/base_unittests.inputs', |
| 487 ], |
| 488 'outputs': [ |
| 470 '<(PRODUCT_DIR)/base_unittests.results', | 489 '<(PRODUCT_DIR)/base_unittests.results', |
| 471 ], | 490 ], |
| 472 'action': [ | 491 'action': [ |
| 473 'python', | 492 'python', |
| 474 '<(DEPTH)/tools/isolate/isolate.py', | 493 '<(DEPTH)/tools/isolate/isolate.py', |
| 475 '--mode=<(tests_run)', | 494 '--mode=<(tests_run)', |
| 476 '--root', '<(DEPTH)', | 495 '--root', '<(DEPTH)', |
| 477 '--result', '<@(_outputs)', | 496 '--result', '<@(_outputs)', |
| 478 '<@(_inputs)', | 497 '--files', '<@(_inputs)', |
| 479 # Directories can't be tracked by build tools (make, msbuild, xcode, | 498 # 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 | 499 # etc) so we just put it on the command line without specifying it |
| 481 # as an input. | 500 # as an input. |
| 482 # TODO(maruel): Revisit the support for this at all and list each | 501 # TODO(maruel): Revisit the support for this at all and list each |
| 483 # individual test files instead. | 502 # individual test files instead. |
| 484 'data/file_util_unittest/', | 503 'data/file_util_unittest/', |
| 504 '--', |
| 505 # Wraps base_unittests under xvfb. |
| 506 '<(DEPTH)/testing/xvfb.py', |
| 507 '<(PRODUCT_DIR)', |
| 508 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', |
| 485 ], | 509 ], |
| 486 }, | 510 }, |
| 487 ], | 511 ], |
| 488 }, | 512 }, |
| 489 { | 513 { |
| 490 'target_name': 'test_support_perf', | 514 'target_name': 'test_support_perf', |
| 491 'type': 'static_library', | 515 'type': 'static_library', |
| 492 'dependencies': [ | 516 'dependencies': [ |
| 493 'base', | 517 'base', |
| 494 '../testing/gtest.gyp:gtest', | 518 '../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 | 614 # treated as weak imports in dependents, who still must |
| 591 # #include closure_blocks_leopard_compat.h to get weak imports. | 615 # #include closure_blocks_leopard_compat.h to get weak imports. |
| 592 'type': 'none', | 616 'type': 'none', |
| 593 }], | 617 }], |
| 594 ], | 618 ], |
| 595 }, | 619 }, |
| 596 ], | 620 ], |
| 597 }], | 621 }], |
| 598 ], | 622 ], |
| 599 } | 623 } |
| OLD | NEW |