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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 '/fake_src/testing/buildbot/gn_isolate_map.pyl'], | 434 '/fake_src/testing/buildbot/gn_isolate_map.pyl'], |
435 files=test_files, ret=0) | 435 files=test_files, ret=0) |
436 | 436 |
437 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate'] | 437 isolate_file = mbw.files['/fake_src/out/Default/base_unittests.isolate'] |
438 isolate_file_contents = ast.literal_eval(isolate_file) | 438 isolate_file_contents = ast.literal_eval(isolate_file) |
439 files = isolate_file_contents['variables']['files'] | 439 files = isolate_file_contents['variables']['files'] |
440 command = isolate_file_contents['variables']['command'] | 440 command = isolate_file_contents['variables']['command'] |
441 | 441 |
442 self.assertEqual(files, [ | 442 self.assertEqual(files, [ |
443 '../../testing/test_env.py', | 443 '../../testing/test_env.py', |
| 444 '../../third_party/gtest-parallel/gtest-parallel', |
| 445 '../../tools-webrtc/gtest-parallel-wrapper.py', |
444 'base_unittests', | 446 'base_unittests', |
445 ]) | 447 ]) |
446 self.assertEqual(command, [ | 448 self.assertEqual(command, [ |
447 '../../testing/test_env.py', | 449 '../../testing/test_env.py', |
| 450 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 451 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
448 './base_unittests', | 452 './base_unittests', |
| 453 '--workers=1', |
449 '--', | 454 '--', |
450 '--asan=0', | 455 '--asan=0', |
451 '--msan=0', | 456 '--msan=0', |
452 '--tsan=0', | 457 '--tsan=0', |
453 ]) | 458 ]) |
454 | 459 |
455 def test_gn_isolate_windowed_test_launcher_linux(self): | 460 def test_gn_isolate_windowed_test_launcher_linux(self): |
456 test_files = { | 461 test_files = { |
457 '/tmp/swarming_targets': 'base_unittests\n', | 462 '/tmp/swarming_targets': 'base_unittests\n', |
458 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( | 463 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, | 767 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, |
763 ret=0, | 768 ret=0, |
764 out=("GYP_DEFINES='foo=bar baz=1'\n" | 769 out=("GYP_DEFINES='foo=bar baz=1'\n" |
765 "GYP_LINK_CONCURRENCY=1\n" | 770 "GYP_LINK_CONCURRENCY=1\n" |
766 "LLVM_FORCE_HEAD_REVISION=1\n" | 771 "LLVM_FORCE_HEAD_REVISION=1\n" |
767 "python build/gyp_chromium -G output_dir=_path_\n")) | 772 "python build/gyp_chromium -G output_dir=_path_\n")) |
768 | 773 |
769 | 774 |
770 if __name__ == '__main__': | 775 if __name__ == '__main__': |
771 unittest.main() | 776 unittest.main() |
OLD | NEW |