OLD | NEW |
---|---|
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 Import('env') | 6 Import('env') |
7 | 7 |
8 egyptian_cotton_nexe = env.ComponentProgram('egyptian_cotton', | 8 egyptian_cotton_nexe = env.ComponentProgram('egyptian_cotton', |
9 'egyptian_cotton.c', | 9 'egyptian_cotton.c', |
10 EXTRA_LIBS=['${PTHREAD_LIBS}', | 10 EXTRA_LIBS=['${PTHREAD_LIBS}', |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 | 67 |
68 if env.Bit('target_arm'): | 68 if env.Bit('target_arm'): |
69 # so far, only linux. | 69 # so far, only linux. |
70 # The arm-hw-bot was actually clocked at successfully doing 8191, | 70 # The arm-hw-bot was actually clocked at successfully doing 8191, |
71 # though it gets pretty resource-starved near the top and might | 71 # though it gets pretty resource-starved near the top and might |
72 # crash if anything else is being done on the bot, and takes a | 72 # crash if anything else is being done on the bot, and takes a |
73 # really long time. Limit to 7000 since that's more than 4096 | 73 # really long time. Limit to 7000 since that's more than 4096 |
74 # but not enough to take too long. | 74 # but not enough to take too long. |
75 high_thread_count_nthreads = 7000 | 75 high_thread_count_nthreads = 7000 |
76 platform_limits_known = True | 76 platform_limits_known = True |
77 elif env.Bit('target_mips32'): | |
78 high_thread_count_nthreads = 3500 | |
Mark Seaborn
2013/02/13 22:14:09
Is this based on a particular hardware device? Ma
petarj
2013/03/05 17:50:04
Done.
| |
79 platform_limits_known = True | |
77 elif env.Bit('target_x86'): | 80 elif env.Bit('target_x86'): |
78 trusted_env = env.get('TRUSTED_ENV') | 81 trusted_env = env.get('TRUSTED_ENV') |
79 if trusted_env: | 82 if trusted_env: |
80 platform_limits_known = True | 83 platform_limits_known = True |
81 if trusted_env.Bit('linux'): | 84 if trusted_env.Bit('linux'): |
82 high_thread_count_nthreads = 8180 | 85 high_thread_count_nthreads = 8180 |
83 elif trusted_env.Bit('mac'): | 86 elif trusted_env.Bit('mac'): |
84 # A value of 2558 worked on OS X 10.5 (Leopard). | 87 # A value of 2558 worked on OS X 10.5 (Leopard). |
85 # This had to be reduced to 2556 to pass on OS X 10.6 (Snow Leopard). | 88 # This had to be reduced to 2556 to pass on OS X 10.6 (Snow Leopard). |
86 # It then had to be reduced to 2044 to pass on OS X 10.7 (Lion). | 89 # It then had to be reduced to 2044 to pass on OS X 10.7 (Lion). |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 def ThreadTestNode(name, args): | 129 def ThreadTestNode(name, args): |
127 return env.CommandSelLdrTestNacl(name + '.out', | 130 return env.CommandSelLdrTestNacl(name + '.out', |
128 egyptian_cotton_nexe, | 131 egyptian_cotton_nexe, |
129 size='large', | 132 size='large', |
130 args=args) | 133 args=args) |
131 | 134 |
132 nodes = [ ThreadTestNode(name, args) for name, args in tests ] | 135 nodes = [ ThreadTestNode(name, args) for name, args in tests ] |
133 | 136 |
134 for p, n in zip(tests, nodes): | 137 for p, n in zip(tests, nodes): |
135 env.AddNodeToTestSuite(n, ['medium_tests', 'sel_ldr_tests'], 'run_' + p[0]) | 138 env.AddNodeToTestSuite(n, ['medium_tests', 'sel_ldr_tests'], 'run_' + p[0]) |
OLD | NEW |