Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: tools/mb/mb_unittest.py

Issue 2578093002: Move tools/valgrind-webrtc -> tools-webrtc/valgrind (Closed)
Patch Set: Sorted presubmit pylint exclusion Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/mb/mb.py ('k') | tools/valgrind-webrtc/gtest_exclude/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 '/tmp/swarming_targets': 'base_unittests\n', 629 '/tmp/swarming_targets': 'base_unittests\n',
630 '/fake_src/testing/buildbot/gn_isolate_map.pyl': ( 630 '/fake_src/testing/buildbot/gn_isolate_map.pyl': (
631 "{'base_unittests': {" 631 "{'base_unittests': {"
632 " 'label': '//base:base_unittests'," 632 " 'label': '//base:base_unittests',"
633 " 'type': 'console_test_launcher'," 633 " 'type': 'console_test_launcher',"
634 "}}\n" 634 "}}\n"
635 ), 635 ),
636 '/fake_src/out/Release/base_unittests.runtime_deps': ( 636 '/fake_src/out/Release/base_unittests.runtime_deps': (
637 "base_unittests\n" 637 "base_unittests\n"
638 "lots_of_memcheck_dependencies\n" 638 "lots_of_memcheck_dependencies\n"
639 "../../tools/valgrind-webrtc/webrtc_tests.sh\n" 639 "../../tools-webrtc/valgrind/webrtc_tests.sh\n"
640 ), 640 ),
641 } 641 }
642 mbw = self.check(['gen', '-c', 'gn_memcheck_bot', '//out/Release', 642 mbw = self.check(['gen', '-c', 'gn_memcheck_bot', '//out/Release',
643 '--swarming-targets-file', '/tmp/swarming_targets', 643 '--swarming-targets-file', '/tmp/swarming_targets',
644 '--isolate-map-file', 644 '--isolate-map-file',
645 '/fake_src/testing/buildbot/gn_isolate_map.pyl'], 645 '/fake_src/testing/buildbot/gn_isolate_map.pyl'],
646 files=test_files, ret=0) 646 files=test_files, ret=0)
647 647
648 isolate_file = mbw.files['/fake_src/out/Release/base_unittests.isolate'] 648 isolate_file = mbw.files['/fake_src/out/Release/base_unittests.isolate']
649 isolate_file_contents = ast.literal_eval(isolate_file) 649 isolate_file_contents = ast.literal_eval(isolate_file)
650 files = isolate_file_contents['variables']['files'] 650 files = isolate_file_contents['variables']['files']
651 command = isolate_file_contents['variables']['command'] 651 command = isolate_file_contents['variables']['command']
652 652
653 self.assertEqual(files, [ 653 self.assertEqual(files, [
654 '../../testing/test_env.py', 654 '../../testing/test_env.py',
655 '../../tools/valgrind-webrtc/webrtc_tests.sh', 655 '../../tools-webrtc/valgrind/webrtc_tests.sh',
656 'base_unittests', 656 'base_unittests',
657 'lots_of_memcheck_dependencies', 657 'lots_of_memcheck_dependencies',
658 ]) 658 ])
659 self.assertEqual(command, [ 659 self.assertEqual(command, [
660 '../../testing/test_env.py', 660 '../../testing/test_env.py',
661 'bash', 661 'bash',
662 '../../tools/valgrind-webrtc/webrtc_tests.sh', 662 '../../tools-webrtc/valgrind/webrtc_tests.sh',
663 '--tool', 663 '--tool',
664 'memcheck', 664 'memcheck',
665 '--target', 665 '--target',
666 'Release', 666 'Release',
667 '--build-dir', 667 '--build-dir',
668 '..', 668 '..',
669 '--test', 669 '--test',
670 './base_unittests', 670 './base_unittests',
671 '--', 671 '--',
672 '--asan=0', 672 '--asan=0',
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, 832 self.check(['lookup', '-c', 'fake_config'], mbw=mbw,
833 ret=0, 833 ret=0,
834 out=("GYP_DEFINES='foo=bar baz=1'\n" 834 out=("GYP_DEFINES='foo=bar baz=1'\n"
835 "GYP_LINK_CONCURRENCY=1\n" 835 "GYP_LINK_CONCURRENCY=1\n"
836 "LLVM_FORCE_HEAD_REVISION=1\n" 836 "LLVM_FORCE_HEAD_REVISION=1\n"
837 "python build/gyp_chromium -G output_dir=_path_\n")) 837 "python build/gyp_chromium -G output_dir=_path_\n"))
838 838
839 839
840 if __name__ == '__main__': 840 if __name__ == '__main__':
841 unittest.main() 841 unittest.main()
OLDNEW
« no previous file with comments | « tools/mb/mb.py ('k') | tools/valgrind-webrtc/gtest_exclude/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698