| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
| 5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
| 6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
| 7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
| 8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
| 9 | 9 |
| 10 """Tests for mb.py.""" | 10 """Tests for mb.py.""" |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 self.assertEqual(command, [ | 448 self.assertEqual(command, [ |
| 449 '../../testing/test_env.py', | 449 '../../testing/test_env.py', |
| 450 '../../tools-webrtc/gtest-parallel-wrapper.py', | 450 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 451 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 451 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
| 452 '--gtest_color=no', | 452 '--gtest_color=no', |
| 453 '--timeout=900', | 453 '--timeout=900', |
| 454 './base_unittests', | 454 './base_unittests', |
| 455 '--workers=1', | 455 '--workers=1', |
| 456 '--', | 456 '--', |
| 457 '--asan=0', | 457 '--asan=0', |
| 458 '--lsan=0', |
| 458 '--msan=0', | 459 '--msan=0', |
| 459 '--tsan=0', | 460 '--tsan=0', |
| 460 ]) | 461 ]) |
| 461 | 462 |
| 462 def test_gn_isolate_windowed_test_launcher_linux(self): | 463 def test_gn_isolate_windowed_test_launcher_linux(self): |
| 463 test_files = { | 464 test_files = { |
| 464 '/tmp/swarming_targets': 'base_unittests\n', | 465 '/tmp/swarming_targets': 'base_unittests\n', |
| 465 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 466 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
| 466 "{'base_unittests': {" | 467 "{'base_unittests': {" |
| 467 " 'label': '//base:base_unittests'," | 468 " 'label': '//base:base_unittests'," |
| (...skipping 26 matching lines...) Expand all Loading... |
| 494 ]) | 495 ]) |
| 495 self.assertEqual(command, [ | 496 self.assertEqual(command, [ |
| 496 '../../testing/xvfb.py', | 497 '../../testing/xvfb.py', |
| 497 '../../tools-webrtc/gtest-parallel-wrapper.py', | 498 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 498 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 499 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
| 499 '--gtest_color=no', | 500 '--gtest_color=no', |
| 500 '--timeout=900', | 501 '--timeout=900', |
| 501 './base_unittests', | 502 './base_unittests', |
| 502 '--', | 503 '--', |
| 503 '--asan=0', | 504 '--asan=0', |
| 505 '--lsan=0', |
| 504 '--msan=0', | 506 '--msan=0', |
| 505 '--tsan=0', | 507 '--tsan=0', |
| 506 ]) | 508 ]) |
| 507 | 509 |
| 508 def test_gn_gen_windowed_test_launcher_win(self): | 510 def test_gn_gen_windowed_test_launcher_win(self): |
| 509 files = { | 511 files = { |
| 510 '/tmp/swarming_targets': 'unittests\n', | 512 '/tmp/swarming_targets': 'unittests\n', |
| 511 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 513 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
| 512 "{'unittests': {" | 514 "{'unittests': {" |
| 513 " 'label': '//somewhere:unittests'," | 515 " 'label': '//somewhere:unittests'," |
| (...skipping 27 matching lines...) Expand all Loading... |
| 541 ]) | 543 ]) |
| 542 self.assertEqual(command, [ | 544 self.assertEqual(command, [ |
| 543 '../../testing/test_env.py', | 545 '../../testing/test_env.py', |
| 544 '../../tools-webrtc/gtest-parallel-wrapper.py', | 546 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 545 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', | 547 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', |
| 546 '--gtest_color=no', | 548 '--gtest_color=no', |
| 547 '--timeout=900', | 549 '--timeout=900', |
| 548 r'.\unittests.exe', | 550 r'.\unittests.exe', |
| 549 '--', | 551 '--', |
| 550 '--asan=0', | 552 '--asan=0', |
| 553 '--lsan=0', |
| 551 '--msan=0', | 554 '--msan=0', |
| 552 '--tsan=0', | 555 '--tsan=0', |
| 553 ]) | 556 ]) |
| 554 | 557 |
| 555 def test_gn_gen_console_test_launcher(self): | 558 def test_gn_gen_console_test_launcher(self): |
| 556 test_files = { | 559 test_files = { |
| 557 '/tmp/swarming_targets': 'base_unittests\n', | 560 '/tmp/swarming_targets': 'base_unittests\n', |
| 558 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 561 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
| 559 "{'base_unittests': {" | 562 "{'base_unittests': {" |
| 560 " 'label': '//base:base_unittests'," | 563 " 'label': '//base:base_unittests'," |
| (...skipping 23 matching lines...) Expand all Loading... |
| 584 ]) | 587 ]) |
| 585 self.assertEqual(command, [ | 588 self.assertEqual(command, [ |
| 586 '../../testing/test_env.py', | 589 '../../testing/test_env.py', |
| 587 '../../tools-webrtc/gtest-parallel-wrapper.py', | 590 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 588 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 591 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
| 589 '--gtest_color=no', | 592 '--gtest_color=no', |
| 590 '--timeout=900', | 593 '--timeout=900', |
| 591 './base_unittests', | 594 './base_unittests', |
| 592 '--', | 595 '--', |
| 593 '--asan=0', | 596 '--asan=0', |
| 597 '--lsan=0', |
| 594 '--msan=0', | 598 '--msan=0', |
| 595 '--tsan=0', | 599 '--tsan=0', |
| 596 ]) | 600 ]) |
| 597 | 601 |
| 598 def test_gn_isolate_console_test_launcher_memcheck(self): | 602 def test_gn_isolate_console_test_launcher_memcheck(self): |
| 599 test_files = { | 603 test_files = { |
| 600 '/tmp/swarming_targets': 'base_unittests\n', | 604 '/tmp/swarming_targets': 'base_unittests\n', |
| 601 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 605 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
| 602 "{'base_unittests': {" | 606 "{'base_unittests': {" |
| 603 " 'label': '//base:base_unittests'," | 607 " 'label': '//base:base_unittests'," |
| (...skipping 30 matching lines...) Expand all Loading... |
| 634 '--tool', | 638 '--tool', |
| 635 'memcheck', | 639 'memcheck', |
| 636 '--target', | 640 '--target', |
| 637 'Release', | 641 'Release', |
| 638 '--build-dir', | 642 '--build-dir', |
| 639 '..', | 643 '..', |
| 640 '--test', | 644 '--test', |
| 641 './base_unittests', | 645 './base_unittests', |
| 642 '--', | 646 '--', |
| 643 '--asan=0', | 647 '--asan=0', |
| 648 '--lsan=0', |
| 644 '--msan=0', | 649 '--msan=0', |
| 645 '--tsan=0', | 650 '--tsan=0', |
| 646 ]) | 651 ]) |
| 647 | 652 |
| 648 def test_gn_isolate(self): | 653 def test_gn_isolate(self): |
| 649 files = { | 654 files = { |
| 650 '/fake_src/out/Default/toolchain.ninja': "", | 655 '/fake_src/out/Default/toolchain.ninja': "", |
| 651 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 656 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
| 652 "{'base_unittests': {" | 657 "{'base_unittests': {" |
| 653 " 'label': '//base:base_unittests'," | 658 " 'label': '//base:base_unittests'," |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, | 780 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, |
| 776 ret=0, | 781 ret=0, |
| 777 out=("GYP_DEFINES='foo=bar baz=1'\n" | 782 out=("GYP_DEFINES='foo=bar baz=1'\n" |
| 778 "GYP_LINK_CONCURRENCY=1\n" | 783 "GYP_LINK_CONCURRENCY=1\n" |
| 779 "LLVM_FORCE_HEAD_REVISION=1\n" | 784 "LLVM_FORCE_HEAD_REVISION=1\n" |
| 780 "python build/gyp_chromium -G output_dir=_path_\n")) | 785 "python build/gyp_chromium -G output_dir=_path_\n")) |
| 781 | 786 |
| 782 | 787 |
| 783 if __name__ == '__main__': | 788 if __name__ == '__main__': |
| 784 unittest.main() | 789 unittest.main() |
| OLD | NEW |