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

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

Issue 1037183002: Add Subzero to scons tests on the bots. x86-32 only. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Increase the timeout under Subzero, rather than disabling the test Created 5 years, 8 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
« no previous file with comments | « buildbot/buildbot_pnacl.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2014 The Native Client Authors. All rights reserved. 2 # Copyright 2014 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 8
9 # Disable this on Valgrind because we don't particularly need to measure 9 # Disable this on Valgrind because we don't particularly need to measure
10 # performance under Valgrind. Also, disable on emulation, since these 10 # performance under Valgrind. Also, disable on emulation, since these
11 # are benchmarks and need to run on real hardware. 11 # are benchmarks and need to run on real hardware.
12 is_broken = env.Bit('running_on_valgrind') or env.UsingEmulator() 12 is_broken = env.Bit('running_on_valgrind') or env.UsingEmulator()
13 13
14 # Increase the test timeout for Subzero.
15 # https://code.google.com/p/nativeclient/issues/detail?id=4136
16 timeout_override = 200 if env.Bit('use_sz') else 0
17
14 libs = [] 18 libs = []
15 if env.Bit('nacl_glibc'): 19 if env.Bit('nacl_glibc'):
16 # Needed for clock_gettime(). 20 # Needed for clock_gettime().
17 libs.append('rt') 21 libs.append('rt')
18 22
19 env.Append(CFLAGS=['-std=c99', '-O2']) 23 env.Append(CFLAGS=['-std=c99', '-O2'])
20 env.Append(CCFLAGS=['-O2']) 24 env.Append(CCFLAGS=['-O2'])
21 env.Prepend(CPPPATH=['${MAIN_DIR}/src']) 25 env.Prepend(CPPPATH=['${MAIN_DIR}/src'])
22 26
23 nexe = env.ComponentProgram( 27 nexe = env.ComponentProgram(
24 'benchmark_test', 28 'benchmark_test',
25 ['benchmark_life.cc', 29 ['benchmark_life.cc',
26 'framework.cc', 30 'framework.cc',
27 'main.cc', 31 'main.cc',
28 'thread_pool.cc'], 32 'thread_pool.cc'],
29 EXTRA_LIBS=['${NONIRT_LIBS}', 33 EXTRA_LIBS=['${NONIRT_LIBS}',
30 '${PTHREAD_LIBS}', 34 '${PTHREAD_LIBS}',
31 '${EXCEPTION_LIBS}'] 35 '${EXCEPTION_LIBS}']
32 + libs) 36 + libs)
33 37
34 # Allow this to be built even if sel_ldr / trusted code is not. 38 # Allow this to be built even if sel_ldr / trusted code is not.
35 if 'TRUSTED_ENV' not in env: 39 if 'TRUSTED_ENV' not in env:
36 Return() 40 Return()
37 41
38 node = env.CommandSelLdrTestNacl( 42 node = env.CommandSelLdrTestNacl(
39 'benchmark_test.out', nexe, [env.GetPerfEnvDescription()], 43 'benchmark_test.out', nexe, [env.GetPerfEnvDescription()],
44 time_error=timeout_override,
40 # Don't hide output: We want the timings to be reported in the 45 # Don't hide output: We want the timings to be reported in the
41 # Buildbot logs so that Buildbot records the "RESULT" lines. 46 # Buildbot logs so that Buildbot records the "RESULT" lines.
42 capture_output=False) 47 capture_output=False)
43 env.AddNodeToTestSuite(node, ['large_tests'], 'run_benchmark_test', 48 env.AddNodeToTestSuite(node, ['large_tests'], 'run_benchmark_test',
44 is_broken=is_broken) 49 is_broken=is_broken)
OLDNEW
« no previous file with comments | « buildbot/buildbot_pnacl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698