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