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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 '../../third_party/gtest-parallel/gtest-parallel', | 444 '../../third_party/gtest-parallel/gtest-parallel', |
445 '../../tools-webrtc/gtest-parallel-wrapper.py', | 445 '../../tools-webrtc/gtest-parallel-wrapper.py', |
446 'base_unittests', | 446 'base_unittests', |
447 ]) | 447 ]) |
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 '--retry_failed=3', |
454 './base_unittests', | 455 './base_unittests', |
455 '--workers=1', | 456 '--workers=1', |
456 '--', | 457 '--', |
457 '--asan=0', | 458 '--asan=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 = { |
(...skipping 27 matching lines...) Expand all Loading... |
491 '../../tools-webrtc/gtest-parallel-wrapper.py', | 492 '../../tools-webrtc/gtest-parallel-wrapper.py', |
492 'base_unittests', | 493 'base_unittests', |
493 'some_resource_file', | 494 'some_resource_file', |
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', |
| 502 '--retry_failed=3', |
501 './base_unittests', | 503 './base_unittests', |
502 '--', | 504 '--', |
503 '--asan=0', | 505 '--asan=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', |
(...skipping 27 matching lines...) Expand all Loading... |
538 '../../tools-webrtc/gtest-parallel-wrapper.py', | 540 '../../tools-webrtc/gtest-parallel-wrapper.py', |
539 'some_dependency', | 541 'some_dependency', |
540 'unittests.exe', | 542 'unittests.exe', |
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', |
| 550 '--retry_failed=3', |
548 r'.\unittests.exe', | 551 r'.\unittests.exe', |
549 '--', | 552 '--', |
550 '--asan=0', | 553 '--asan=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', |
(...skipping 23 matching lines...) Expand all Loading... |
581 '../../third_party/gtest-parallel/gtest-parallel', | 584 '../../third_party/gtest-parallel/gtest-parallel', |
582 '../../tools-webrtc/gtest-parallel-wrapper.py', | 585 '../../tools-webrtc/gtest-parallel-wrapper.py', |
583 'base_unittests', | 586 'base_unittests', |
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', |
| 594 '--retry_failed=3', |
591 './base_unittests', | 595 './base_unittests', |
592 '--', | 596 '--', |
593 '--asan=0', | 597 '--asan=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', |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, | 779 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, |
776 ret=0, | 780 ret=0, |
777 out=("GYP_DEFINES='foo=bar baz=1'\n" | 781 out=("GYP_DEFINES='foo=bar baz=1'\n" |
778 "GYP_LINK_CONCURRENCY=1\n" | 782 "GYP_LINK_CONCURRENCY=1\n" |
779 "LLVM_FORCE_HEAD_REVISION=1\n" | 783 "LLVM_FORCE_HEAD_REVISION=1\n" |
780 "python build/gyp_chromium -G output_dir=_path_\n")) | 784 "python build/gyp_chromium -G output_dir=_path_\n")) |
781 | 785 |
782 | 786 |
783 if __name__ == '__main__': | 787 if __name__ == '__main__': |
784 unittest.main() | 788 unittest.main() |
OLD | NEW |