| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env 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 """MB - the Meta-Build wrapper around GYP and GN | 10 """MB - the Meta-Build wrapper around GYP and GN |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 xvfb = use_x11 and test_type == 'windowed_test_launcher' | 1106 xvfb = use_x11 and test_type == 'windowed_test_launcher' |
| 1107 if xvfb: | 1107 if xvfb: |
| 1108 extra_files += [ | 1108 extra_files += [ |
| 1109 '../../testing/xvfb.py', | 1109 '../../testing/xvfb.py', |
| 1110 ] | 1110 ] |
| 1111 | 1111 |
| 1112 # Memcheck is only supported for linux. Ignore in other platforms. | 1112 # Memcheck is only supported for linux. Ignore in other platforms. |
| 1113 memcheck = is_linux and 'rtc_use_memcheck=true' in vals['gn_args'] | 1113 memcheck = is_linux and 'rtc_use_memcheck=true' in vals['gn_args'] |
| 1114 memcheck_cmdline = [ | 1114 memcheck_cmdline = [ |
| 1115 'bash', | 1115 'bash', |
| 1116 '../../tools/valgrind-webrtc/webrtc_tests.sh', | 1116 '../../tools-webrtc/valgrind/webrtc_tests.sh', |
| 1117 '--tool', | 1117 '--tool', |
| 1118 'memcheck', | 1118 'memcheck', |
| 1119 '--target', | 1119 '--target', |
| 1120 'Release', | 1120 'Release', |
| 1121 '--build-dir', | 1121 '--build-dir', |
| 1122 '..', | 1122 '..', |
| 1123 '--test', | 1123 '--test', |
| 1124 ] | 1124 ] |
| 1125 | 1125 |
| 1126 gtest_parallel = (test_type != 'non_parallel_console_test_launcher' and | 1126 gtest_parallel = (test_type != 'non_parallel_console_test_launcher' and |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 # Then check to see if the arg contains any metacharacters other than | 1562 # Then check to see if the arg contains any metacharacters other than |
| 1563 # double quotes; if it does, quote everything (including the double | 1563 # double quotes; if it does, quote everything (including the double |
| 1564 # quotes) for safety. | 1564 # quotes) for safety. |
| 1565 if any(a in UNSAFE_FOR_CMD for a in arg): | 1565 if any(a in UNSAFE_FOR_CMD for a in arg): |
| 1566 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1566 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
| 1567 return arg | 1567 return arg |
| 1568 | 1568 |
| 1569 | 1569 |
| 1570 if __name__ == '__main__': | 1570 if __name__ == '__main__': |
| 1571 sys.exit(main(sys.argv[1:])) | 1571 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |