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

Side by Side Diff: tests/egyptian_cotton/nacl.scons

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 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
OLDNEW
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
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
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])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698