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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 '--build-dir', | 1085 '--build-dir', |
1086 '..', | 1086 '..', |
1087 '--test', | 1087 '--test', |
1088 ] | 1088 ] |
1089 | 1089 |
1090 gtest_parallel = (test_type != 'non_parallel_console_test_launcher' and | 1090 gtest_parallel = (test_type != 'non_parallel_console_test_launcher' and |
1091 not memcheck) | 1091 not memcheck) |
1092 if gtest_parallel: | 1092 if gtest_parallel: |
1093 extra_files += [ | 1093 extra_files += [ |
1094 '../../third_party/gtest-parallel/gtest-parallel', | 1094 '../../third_party/gtest-parallel/gtest-parallel', |
1095 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 1095 '../../tools-webrtc/gtest-parallel-wrapper.py', |
1096 ] | 1096 ] |
1097 sep = '\\' if self.platform == 'win32' else '/' | 1097 sep = '\\' if self.platform == 'win32' else '/' |
1098 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs' | 1098 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs' |
1099 gtest_parallel_wrapper = [ | 1099 gtest_parallel_wrapper = [ |
1100 '../../third_party/gtest-parallel/gtest-parallel-wrapper.py', | 1100 '../../tools-webrtc/gtest-parallel-wrapper.py', |
1101 '--output_dir=%s' % output_dir, | 1101 '--output_dir=%s' % output_dir, |
1102 ] | 1102 ] |
1103 | 1103 |
1104 asan = 'is_asan=true' in vals['gn_args'] | 1104 asan = 'is_asan=true' in vals['gn_args'] |
1105 msan = 'is_msan=true' in vals['gn_args'] | 1105 msan = 'is_msan=true' in vals['gn_args'] |
1106 tsan = 'is_tsan=true' in vals['gn_args'] | 1106 tsan = 'is_tsan=true' in vals['gn_args'] |
1107 | 1107 |
1108 executable_prefix = '.\\' if self.platform == 'win32' else './' | 1108 executable_prefix = '.\\' if self.platform == 'win32' else './' |
1109 executable_suffix = '.exe' if self.platform == 'win32' else '' | 1109 executable_suffix = '.exe' if self.platform == 'win32' else '' |
1110 executable = executable_prefix + target + executable_suffix | 1110 executable = executable_prefix + target + executable_suffix |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 # Then check to see if the arg contains any metacharacters other than | 1531 # Then check to see if the arg contains any metacharacters other than |
1532 # double quotes; if it does, quote everything (including the double | 1532 # double quotes; if it does, quote everything (including the double |
1533 # quotes) for safety. | 1533 # quotes) for safety. |
1534 if any(a in UNSAFE_FOR_CMD for a in arg): | 1534 if any(a in UNSAFE_FOR_CMD for a in arg): |
1535 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) | 1535 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) |
1536 return arg | 1536 return arg |
1537 | 1537 |
1538 | 1538 |
1539 if __name__ == '__main__': | 1539 if __name__ == '__main__': |
1540 sys.exit(main(sys.argv[1:])) | 1540 sys.exit(main(sys.argv[1:])) |
OLD | NEW |