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

Side by Side Diff: scripts/slave/runtest.py

Issue 13986012: Pass replace_intrin=0 when running tests under ASan on OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A tool to run a chrome test executable, used by the buildbot slaves. 6 """A tool to run a chrome test executable, used by the buildbot slaves.
7 7
8 When this is run, the current directory (cwd) should be the outer build 8 When this is run, the current directory (cwd) should be the outer build
9 directory (e.g., chrome-release/build/). 9 directory (e.g., chrome-release/build/).
10 10
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 'history_size=7 ' 1122 'history_size=7 '
1123 'external_symbolizer_path=%s' % symbolizer_path) 1123 'external_symbolizer_path=%s' % symbolizer_path)
1124 if options.factory_properties.get('tsan', False): 1124 if options.factory_properties.get('tsan', False):
1125 os.environ['TSAN_OPTIONS'] = tsan_options 1125 os.environ['TSAN_OPTIONS'] = tsan_options
1126 # Disable sandboxing under TSan for now. http://crbug.com/223602. 1126 # Disable sandboxing under TSan for now. http://crbug.com/223602.
1127 args.append('--no-sandbox') 1127 args.append('--no-sandbox')
1128 if options.factory_properties.get('asan', False): 1128 if options.factory_properties.get('asan', False):
1129 # Set the path to llvm-symbolizer to be used by asan_symbolize.py 1129 # Set the path to llvm-symbolizer to be used by asan_symbolize.py
1130 os.environ['LLVM_SYMBOLIZER_PATH'] = symbolizer_path 1130 os.environ['LLVM_SYMBOLIZER_PATH'] = symbolizer_path
1131 # Avoid aggressive memcmp checks until http://crbug.com/178677 is fixed. 1131 # Avoid aggressive memcmp checks until http://crbug.com/178677 is fixed.
1132 os.environ['ASAN_OPTIONS'] = 'strict_memcmp=0' 1132 # Also do not replace memcpy/memmove/memset to suppress a report in OpenCL,
1133 # see http://crbug.com/162461.
1134 os.environ['ASAN_OPTIONS'] = 'strict_memcmp=0 replace_intrin=0'
1133 # Set the number of shards environement variables. 1135 # Set the number of shards environement variables.
1134 if options.total_shards and options.shard_index: 1136 if options.total_shards and options.shard_index:
1135 os.environ['GTEST_TOTAL_SHARDS'] = str(options.total_shards) 1137 os.environ['GTEST_TOTAL_SHARDS'] = str(options.total_shards)
1136 os.environ['GTEST_SHARD_INDEX'] = str(options.shard_index - 1) 1138 os.environ['GTEST_SHARD_INDEX'] = str(options.shard_index - 1)
1137 1139
1138 if options.results_directory: 1140 if options.results_directory:
1139 options.test_output_xml = os.path.normpath(os.path.abspath(os.path.join( 1141 options.test_output_xml = os.path.normpath(os.path.abspath(os.path.join(
1140 options.results_directory, '%s.xml' % options.test_type))) 1142 options.results_directory, '%s.xml' % options.test_type)))
1141 args.append('--gtest_output=xml:' + options.test_output_xml) 1143 args.append('--gtest_output=xml:' + options.test_output_xml)
1142 1144
(...skipping 26 matching lines...) Expand all
1169 '%d new files were left in %s: Fix the tests to clean up themselves.' 1171 '%d new files were left in %s: Fix the tests to clean up themselves.'
1170 ) % ((new_temp_files - temp_files), tempfile.gettempdir()) 1172 ) % ((new_temp_files - temp_files), tempfile.gettempdir())
1171 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all 1173 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all
1172 # the remaining cases before. 1174 # the remaining cases before.
1173 #result = 1 1175 #result = 1
1174 return result 1176 return result
1175 1177
1176 1178
1177 if '__main__' == __name__: 1179 if '__main__' == __name__:
1178 sys.exit(main()) 1180 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698