OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2012 The Native Client Authors. All rights reserved. | 2 # Copyright 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 # valgrind has problems with minimal_test_guest | 8 # valgrind has problems with minimal_test_guest |
9 if env.IsRunningUnderValgrind(): | 9 if env.IsRunningUnderValgrind(): |
10 Return() | 10 Return() |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 test_prog = env.ComponentProgram( | 25 test_prog = env.ComponentProgram( |
26 'minimal_test_guest', | 26 'minimal_test_guest', |
27 ['minimal_test_guest.c'], | 27 ['minimal_test_guest.c'], |
28 EXTRA_LINKFLAGS=['-nostdlib']) | 28 EXTRA_LINKFLAGS=['-nostdlib']) |
29 | 29 |
30 if env.ShouldTranslateToNexe(test_prog): | 30 if env.ShouldTranslateToNexe(test_prog): |
31 env.Replace(TRANSLATEFLAGS=['-nostdlib']) | 31 env.Replace(TRANSLATEFLAGS=['-nostdlib']) |
32 test_prog = env.GetTranslatedNexe(test_prog) | 32 test_prog = env.GetTranslatedNexe(test_prog) |
33 | 33 |
| 34 is_broken = not env.Bit('nacl_static_link') |
| 35 |
34 node = env.CommandTest('minimal_test.out', | 36 node = env.CommandTest('minimal_test.out', |
35 env.AddBootstrap(runner, [test_prog]), | 37 env.AddBootstrap(runner, [test_prog]), |
36 stdout_golden=env.File('minimal_test.stdout')) | 38 stdout_golden=env.File('minimal_test.stdout')) |
37 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', | 39 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', |
38 is_broken=not env.Bit('nacl_static_link')) | 40 is_broken=is_broken) |
| 41 |
| 42 node = env.CommandTest('minimal_test_separate_thread.out', |
| 43 env.AddBootstrap(runner, |
| 44 ['--use_separate_thread', test_prog]), |
| 45 stdout_golden=env.File('minimal_test.stdout')) |
| 46 env.AddNodeToTestSuite(node, ['small_tests'], |
| 47 'run_minnacl_separate_thread_test', |
| 48 is_broken=is_broken) |
OLD | NEW |