OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 """Convert buildbot build configs to configs understood by the v8 runner. | 373 """Convert buildbot build configs to configs understood by the v8 runner. |
374 | 374 |
375 V8 configs are always lower case and without the additional _x64 suffix for | 375 V8 configs are always lower case and without the additional _x64 suffix for |
376 64 bit builds on windows with ninja. | 376 64 bit builds on windows with ninja. |
377 """ | 377 """ |
378 mode = config[:-4] if config.endswith('_x64') else config | 378 mode = config[:-4] if config.endswith('_x64') else config |
379 return mode.lower() | 379 return mode.lower() |
380 | 380 |
381 def SetupEnvironment(options): | 381 def SetupEnvironment(options): |
382 """Setup additional environment variables.""" | 382 """Setup additional environment variables.""" |
| 383 |
| 384 # Many tests assume an English interface. |
| 385 os.environ['LANG'] = 'en_US.UTF-8' |
| 386 |
383 symbolizer = 'external_symbolizer_path=%s' % ( | 387 symbolizer = 'external_symbolizer_path=%s' % ( |
384 os.path.join( | 388 os.path.join( |
385 BASE_DIR, 'third_party', 'llvm-build', 'Release+Asserts', 'bin', | 389 BASE_DIR, 'third_party', 'llvm-build', 'Release+Asserts', 'bin', |
386 'llvm-symbolizer', | 390 'llvm-symbolizer', |
387 ) | 391 ) |
388 ) | 392 ) |
389 | 393 |
390 if options.asan: | 394 if options.asan: |
391 os.environ['ASAN_OPTIONS'] = symbolizer | 395 os.environ['ASAN_OPTIONS'] = symbolizer |
392 | 396 |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 "--coverage-dir=%s" % options.sancov_dir]) | 837 "--coverage-dir=%s" % options.sancov_dir]) |
834 except: | 838 except: |
835 print >> sys.stderr, "Error: Merging sancov files failed." | 839 print >> sys.stderr, "Error: Merging sancov files failed." |
836 exit_code = 1 | 840 exit_code = 1 |
837 | 841 |
838 return exit_code | 842 return exit_code |
839 | 843 |
840 | 844 |
841 if __name__ == "__main__": | 845 if __name__ == "__main__": |
842 sys.exit(Main()) | 846 sys.exit(Main()) |
OLD | NEW |