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 # Based on MIPS Malta 74Kc board. |
| 79 high_thread_count_nthreads = 3500 |
| 80 platform_limits_known = True |
77 elif env.Bit('target_x86'): | 81 elif env.Bit('target_x86'): |
78 trusted_env = env.get('TRUSTED_ENV') | 82 trusted_env = env.get('TRUSTED_ENV') |
79 if trusted_env: | 83 if trusted_env: |
80 platform_limits_known = True | 84 platform_limits_known = True |
81 if trusted_env.Bit('linux'): | 85 if trusted_env.Bit('linux'): |
82 high_thread_count_nthreads = 8180 | 86 high_thread_count_nthreads = 8180 |
83 elif trusted_env.Bit('mac'): | 87 elif trusted_env.Bit('mac'): |
84 # A value of 2558 worked on OS X 10.5 (Leopard). | 88 # 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). | 89 # 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). | 90 # 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): | 130 def ThreadTestNode(name, args): |
127 return env.CommandSelLdrTestNacl(name + '.out', | 131 return env.CommandSelLdrTestNacl(name + '.out', |
128 egyptian_cotton_nexe, | 132 egyptian_cotton_nexe, |
129 size='large', | 133 size='large', |
130 args=args) | 134 args=args) |
131 | 135 |
132 nodes = [ ThreadTestNode(name, args) for name, args in tests ] | 136 nodes = [ ThreadTestNode(name, args) for name, args in tests ] |
133 | 137 |
134 for p, n in zip(tests, nodes): | 138 for p, n in zip(tests, nodes): |
135 env.AddNodeToTestSuite(n, ['medium_tests', 'sel_ldr_tests'], 'run_' + p[0]) | 139 env.AddNodeToTestSuite(n, ['medium_tests', 'sel_ldr_tests'], 'run_' + p[0]) |
OLD | NEW |