OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 extra_flags = [] | 8 extra_flags = [] |
9 if env.IsRunningUnderValgrind(): | 9 if env.IsRunningUnderValgrind(): |
10 extra_flags.extend(['-E', 'RUNNING_ON_VALGRIND=1']) | 10 extra_flags.extend(['-E', 'RUNNING_ON_VALGRIND=1']) |
(...skipping 11 matching lines...) Expand all Loading... |
22 # '-e' enables exception handling for testing unreadable pages. | 22 # '-e' enables exception handling for testing unreadable pages. |
23 sel_ldr_flags=['-a', '-e'] + extra_flags) | 23 sel_ldr_flags=['-a', '-e'] + extra_flags) |
24 | 24 |
25 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2437 | 25 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2437 |
26 env.AddNodeToTestSuite(node, | 26 env.AddNodeToTestSuite(node, |
27 ['small_tests', 'sel_ldr_tests'], | 27 ['small_tests', 'sel_ldr_tests'], |
28 'run_mmap_test', | 28 'run_mmap_test', |
29 is_broken=env.Bit('target_arm') and env.UsingEmulator()) | 29 is_broken=env.Bit('target_arm') and env.UsingEmulator()) |
30 | 30 |
31 mmap_atomicity_nexe = env.ComponentProgram( | 31 mmap_atomicity_nexe = env.ComponentProgram( |
32 'mmap_atomicity.nexe', 'mmap_atomicity.c', | 32 'mmap_atomicity', 'mmap_atomicity.c', |
33 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 33 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
34 node = env.CommandSelLdrTestNacl( | 34 node = env.CommandSelLdrTestNacl( |
35 'mmap_atomicity_test.out', mmap_atomicity_nexe) | 35 'mmap_atomicity_test.out', mmap_atomicity_nexe) |
36 # * Multi-threading is oddly broken under ARM QEMU. Our test's child | 36 # * Multi-threading is oddly broken under ARM QEMU. Our test's child |
37 # thread never runs. It appears to be starved by the main thread. | 37 # thread never runs. It appears to be starved by the main thread. |
38 # * This test is extremely slow on the memcheck bot, which eventually | 38 # * This test is extremely slow on the memcheck bot, which eventually |
39 # times out, so it is disabled there. This may be a consequence of | 39 # times out, so it is disabled there. This may be a consequence of |
40 # running under a VM, since running the test on memcheck locally is | 40 # running under a VM, since running the test on memcheck locally is |
41 # fast enough. | 41 # fast enough. |
42 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2437 | 42 # BUG: http://code.google.com/p/nativeclient/issues/detail?id=2437 |
43 is_broken = ((env.Bit('target_arm') and env.UsingEmulator()) | 43 is_broken = ((env.Bit('target_arm') and env.UsingEmulator()) |
44 or env.Bit('running_on_valgrind')) | 44 or env.Bit('running_on_valgrind')) |
45 env.AddNodeToTestSuite(node, ['small_tests'], 'run_mmap_atomicity_test', | 45 env.AddNodeToTestSuite(node, ['small_tests'], 'run_mmap_atomicity_test', |
46 is_broken=is_broken) | 46 is_broken=is_broken) |
OLD | NEW |