| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 '../../testing/test_env.py', | 497 '../../testing/test_env.py', |
| 498 '../../testing/xvfb.py', | 498 '../../testing/xvfb.py', |
| 499 '../../third_party/gtest-parallel/gtest-parallel', | 499 '../../third_party/gtest-parallel/gtest-parallel', |
| 500 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 500 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 501 'base_unittests', | 501 'base_unittests', |
| 502 'some_resource_file', | 502 'some_resource_file', |
| 503 ]) | 503 ]) |
| 504 self.assertEqual(command, [ | 504 self.assertEqual(command, [ |
| 505 '../../testing/xvfb.py', | 505 '../../testing/xvfb.py', |
| 506 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 506 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 507 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
| 508 '--timeout=900', |
| 507 './base_unittests', | 509 './base_unittests', |
| 508 '--', | 510 '--', |
| 509 '--asan=0', | 511 '--asan=0', |
| 510 '--msan=0', | 512 '--msan=0', |
| 511 '--tsan=0', | 513 '--tsan=0', |
| 512 ]) | 514 ]) |
| 513 | 515 |
| 514 def test_gn_gen_windowed_test_launcher_win(self): | 516 def test_gn_gen_windowed_test_launcher_win(self): |
| 515 files = { | 517 files = { |
| 516 '/tmp/swarming_targets': 'unittests\n', | 518 '/tmp/swarming_targets': 'unittests\n', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 541 self.assertEqual(files, [ | 543 self.assertEqual(files, [ |
| 542 '../../testing/test_env.py', | 544 '../../testing/test_env.py', |
| 543 '../../third_party/gtest-parallel/gtest-parallel', | 545 '../../third_party/gtest-parallel/gtest-parallel', |
| 544 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 546 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 545 'some_dependency', | 547 'some_dependency', |
| 546 'unittests.exe', | 548 'unittests.exe', |
| 547 ]) | 549 ]) |
| 548 self.assertEqual(command, [ | 550 self.assertEqual(command, [ |
| 549 '../../testing/test_env.py', | 551 '../../testing/test_env.py', |
| 550 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 552 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 553 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', |
| 554 '--timeout=900', |
| 551 r'.\unittests.exe', | 555 r'.\unittests.exe', |
| 552 '--', | 556 '--', |
| 553 '--asan=0', | 557 '--asan=0', |
| 554 '--msan=0', | 558 '--msan=0', |
| 555 '--tsan=0', | 559 '--tsan=0', |
| 556 ]) | 560 ]) |
| 557 | 561 |
| 558 def test_gn_gen_console_test_launcher(self): | 562 def test_gn_gen_console_test_launcher(self): |
| 559 test_files = { | 563 test_files = { |
| 560 '/tmp/swarming_targets': 'base_unittests\n', | 564 '/tmp/swarming_targets': 'base_unittests\n', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 581 | 585 |
| 582 self.assertEqual(files, [ | 586 self.assertEqual(files, [ |
| 583 '../../testing/test_env.py', | 587 '../../testing/test_env.py', |
| 584 '../../third_party/gtest-parallel/gtest-parallel', | 588 '../../third_party/gtest-parallel/gtest-parallel', |
| 585 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 589 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 586 'base_unittests', | 590 'base_unittests', |
| 587 ]) | 591 ]) |
| 588 self.assertEqual(command, [ | 592 self.assertEqual(command, [ |
| 589 '../../testing/test_env.py', | 593 '../../testing/test_env.py', |
| 590 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 594 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', |
| 595 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
| 596 '--timeout=900', |
| 591 './base_unittests', | 597 './base_unittests', |
| 592 '--', | 598 '--', |
| 593 '--asan=0', | 599 '--asan=0', |
| 594 '--msan=0', | 600 '--msan=0', |
| 595 '--tsan=0', | 601 '--tsan=0', |
| 596 ]) | 602 ]) |
| 597 | 603 |
| 598 def test_gn_isolate_console_test_launcher_memcheck(self): | 604 def test_gn_isolate_console_test_launcher_memcheck(self): |
| 599 test_files = { | 605 test_files = { |
| 600 '/tmp/swarming_targets': 'base_unittests\n', | 606 '/tmp/swarming_targets': 'base_unittests\n', |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, | 781 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, |
| 776 ret=0, | 782 ret=0, |
| 777 out=("GYP_DEFINES='foo=bar baz=1'\n" | 783 out=("GYP_DEFINES='foo=bar baz=1'\n" |
| 778 "GYP_LINK_CONCURRENCY=1\n" | 784 "GYP_LINK_CONCURRENCY=1\n" |
| 779 "LLVM_FORCE_HEAD_REVISION=1\n" | 785 "LLVM_FORCE_HEAD_REVISION=1\n" |
| 780 "python build/gyp_chromium -G output_dir=_path_\n")) | 786 "python build/gyp_chromium -G output_dir=_path_\n")) |
| 781 | 787 |
| 782 | 788 |
| 783 if __name__ == '__main__': | 789 if __name__ == '__main__': |
| 784 unittest.main() | 790 unittest.main() |
| OLD | NEW |