Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client 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 ''' Installs and runs (a subset of) the gcc toolchain test suite against | 6 ''' Installs and runs (a subset of) the gcc toolchain test suite against |
| 7 various nacl and non-nacl toolchains | 7 various nacl and non-nacl toolchains |
| 8 ''' | 8 ''' |
| 9 | 9 |
| 10 import glob | 10 import glob |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 print 'Unknown platform:', platform | 85 print 'Unknown platform:', platform |
| 86 | 86 |
| 87 config_map = { 'pnacl': 'llvm_pnacl', | 87 config_map = { 'pnacl': 'llvm_pnacl', |
| 88 'naclgcc': 'nacl_gcc', | 88 'naclgcc': 'nacl_gcc', |
| 89 'localgcc': 'local_gcc'} | 89 'localgcc': 'local_gcc'} |
| 90 | 90 |
| 91 failures = [] | 91 failures = [] |
| 92 if compiler == 'pnacl': | 92 if compiler == 'pnacl': |
| 93 # O3_O0 is clang -O3 followed by pnacl-translate -O0 | 93 # O3_O0 is clang -O3 followed by pnacl-translate -O0 |
| 94 optmodes = ['O0', 'O3', 'O0_O0', 'O3_O0'] | 94 optmodes = ['O0', 'O3', 'O0_O0', 'O3_O0'] |
| 95 if platform == 'x86-32': | |
| 96 # Add some extra Subzero configurations. | |
|
Jim Stichnoth
2015/03/25 01:17:09
This adds two new configurations, 50% more runtime
jvoung (off chromium)
2015/03/25 18:41:38
Maybe... but O0f_O2b might be the weirder config.
Jim Stichnoth
2015/03/25 20:13:17
OK. For now, I just left a TODO about possible pr
| |
| 97 optmodes.extend(['O3_sz', 'O3_O0_sz']) | |
| 95 else: | 98 else: |
| 96 optmodes = ['O0', 'O3'] | 99 optmodes = ['O0', 'O3'] |
| 97 for optmode in optmodes: | 100 for optmode in optmodes: |
| 98 # TODO: support an option like -k? For now, always keep going | 101 # TODO: support an option like -k? For now, always keep going |
| 99 config = '_'.join((config_map[compiler], platform, optmode)) | 102 config = '_'.join((config_map[compiler], platform, optmode)) |
| 100 | 103 |
| 101 # Test zero-cost C++ exception handling. | 104 # Test zero-cost C++ exception handling. |
| 102 retcode = eh_tests(status.context, config, | 105 retcode = eh_tests(status.context, config, |
| 103 'known_eh_failures_' + compiler + '.txt', extra_args, | 106 'known_eh_failures_' + compiler + '.txt', extra_args, |
| 104 use_sjlj_eh=False) | 107 use_sjlj_eh=False) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 137 platform = sys.argv[2] | 140 platform = sys.argv[2] |
| 138 tester_argv = sys.argv[3:] | 141 tester_argv = sys.argv[3:] |
| 139 except IndexError: | 142 except IndexError: |
| 140 usage() | 143 usage() |
| 141 sys.exit(1) | 144 sys.exit(1) |
| 142 | 145 |
| 143 return run_torture(status, compiler, platform, tester_argv) | 146 return run_torture(status, compiler, platform, tester_argv) |
| 144 | 147 |
| 145 if __name__ == '__main__': | 148 if __name__ == '__main__': |
| 146 sys.exit(main()) | 149 sys.exit(main()) |
| OLD | NEW |