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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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', | 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 '--gtest_color=no', | 452 '--gtest_color=no', |
452 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 453 '--timeout=900', |
453 './base_unittests', | 454 './base_unittests', |
454 '--workers=1', | 455 '--workers=1', |
455 '--', | 456 '--', |
456 '--asan=0', | 457 '--asan=0', |
457 '--msan=0', | 458 '--msan=0', |
458 '--tsan=0', | 459 '--tsan=0', |
459 ]) | 460 ]) |
460 | 461 |
461 def test_gn_isolate_windowed_test_launcher_linux(self): | 462 def test_gn_isolate_windowed_test_launcher_linux(self): |
462 test_files = { | 463 test_files = { |
(...skipping 24 matching lines...) Expand all Loading... |
487 '../../testing/test_env.py', | 488 '../../testing/test_env.py', |
488 '../../testing/xvfb.py', | 489 '../../testing/xvfb.py', |
489 '../../third_party/gtest-parallel/gtest-parallel', | 490 '../../third_party/gtest-parallel/gtest-parallel', |
490 '../../tools-webrtc/gtest-parallel-wrapper.py', | 491 '../../tools-webrtc/gtest-parallel-wrapper.py', |
491 'base_unittests', | 492 'base_unittests', |
492 'some_resource_file', | 493 'some_resource_file', |
493 ]) | 494 ]) |
494 self.assertEqual(command, [ | 495 self.assertEqual(command, [ |
495 '../../testing/xvfb.py', | 496 '../../testing/xvfb.py', |
496 '../../tools-webrtc/gtest-parallel-wrapper.py', | 497 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 498 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
497 '--gtest_color=no', | 499 '--gtest_color=no', |
498 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 500 '--timeout=900', |
499 './base_unittests', | 501 './base_unittests', |
500 '--', | 502 '--', |
501 '--asan=0', | 503 '--asan=0', |
502 '--msan=0', | 504 '--msan=0', |
503 '--tsan=0', | 505 '--tsan=0', |
504 ]) | 506 ]) |
505 | 507 |
506 def test_gn_gen_windowed_test_launcher_win(self): | 508 def test_gn_gen_windowed_test_launcher_win(self): |
507 files = { | 509 files = { |
508 '/tmp/swarming_targets': 'unittests\n', | 510 '/tmp/swarming_targets': 'unittests\n', |
(...skipping 24 matching lines...) Expand all Loading... |
533 self.assertEqual(files, [ | 535 self.assertEqual(files, [ |
534 '../../testing/test_env.py', | 536 '../../testing/test_env.py', |
535 '../../third_party/gtest-parallel/gtest-parallel', | 537 '../../third_party/gtest-parallel/gtest-parallel', |
536 '../../tools-webrtc/gtest-parallel-wrapper.py', | 538 '../../tools-webrtc/gtest-parallel-wrapper.py', |
537 'some_dependency', | 539 'some_dependency', |
538 'unittests.exe', | 540 'unittests.exe', |
539 ]) | 541 ]) |
540 self.assertEqual(command, [ | 542 self.assertEqual(command, [ |
541 '../../testing/test_env.py', | 543 '../../testing/test_env.py', |
542 '../../tools-webrtc/gtest-parallel-wrapper.py', | 544 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 545 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', |
543 '--gtest_color=no', | 546 '--gtest_color=no', |
544 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', | 547 '--timeout=900', |
545 r'.\unittests.exe', | 548 r'.\unittests.exe', |
546 '--', | 549 '--', |
547 '--asan=0', | 550 '--asan=0', |
548 '--msan=0', | 551 '--msan=0', |
549 '--tsan=0', | 552 '--tsan=0', |
550 ]) | 553 ]) |
551 | 554 |
552 def test_gn_gen_console_test_launcher(self): | 555 def test_gn_gen_console_test_launcher(self): |
553 test_files = { | 556 test_files = { |
554 '/tmp/swarming_targets': 'base_unittests\n', | 557 '/tmp/swarming_targets': 'base_unittests\n', |
(...skipping 20 matching lines...) Expand all Loading... |
575 | 578 |
576 self.assertEqual(files, [ | 579 self.assertEqual(files, [ |
577 '../../testing/test_env.py', | 580 '../../testing/test_env.py', |
578 '../../third_party/gtest-parallel/gtest-parallel', | 581 '../../third_party/gtest-parallel/gtest-parallel', |
579 '../../tools-webrtc/gtest-parallel-wrapper.py', | 582 '../../tools-webrtc/gtest-parallel-wrapper.py', |
580 'base_unittests', | 583 'base_unittests', |
581 ]) | 584 ]) |
582 self.assertEqual(command, [ | 585 self.assertEqual(command, [ |
583 '../../testing/test_env.py', | 586 '../../testing/test_env.py', |
584 '../../tools-webrtc/gtest-parallel-wrapper.py', | 587 '../../tools-webrtc/gtest-parallel-wrapper.py', |
| 588 '--output_dir=${ISOLATED_OUTDIR}/test_logs', |
585 '--gtest_color=no', | 589 '--gtest_color=no', |
586 '--output_dir=${ISOLATED_OUTDIR}/test_logs', | 590 '--timeout=900', |
587 './base_unittests', | 591 './base_unittests', |
588 '--', | 592 '--', |
589 '--asan=0', | 593 '--asan=0', |
590 '--msan=0', | 594 '--msan=0', |
591 '--tsan=0', | 595 '--tsan=0', |
592 ]) | 596 ]) |
593 | 597 |
594 def test_gn_isolate_console_test_launcher_memcheck(self): | 598 def test_gn_isolate_console_test_launcher_memcheck(self): |
595 test_files = { | 599 test_files = { |
596 '/tmp/swarming_targets': 'base_unittests\n', | 600 '/tmp/swarming_targets': 'base_unittests\n', |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, | 775 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, |
772 ret=0, | 776 ret=0, |
773 out=("GYP_DEFINES='foo=bar baz=1'\n" | 777 out=("GYP_DEFINES='foo=bar baz=1'\n" |
774 "GYP_LINK_CONCURRENCY=1\n" | 778 "GYP_LINK_CONCURRENCY=1\n" |
775 "LLVM_FORCE_HEAD_REVISION=1\n" | 779 "LLVM_FORCE_HEAD_REVISION=1\n" |
776 "python build/gyp_chromium -G output_dir=_path_\n")) | 780 "python build/gyp_chromium -G output_dir=_path_\n")) |
777 | 781 |
778 | 782 |
779 if __name__ == '__main__': | 783 if __name__ == '__main__': |
780 unittest.main() | 784 unittest.main() |
OLD | NEW |