OLD | NEW |
---|---|
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 'platform_qual_lib', | 45 'platform_qual_lib', |
46 'gio', | 46 'gio', |
47 ] + VALIDATOR_LIBS) | 47 ] + VALIDATOR_LIBS) |
48 | 48 |
49 | 49 |
50 test_prog = env.ComponentProgram( | 50 test_prog = env.ComponentProgram( |
51 'minimal_test_guest', | 51 'minimal_test_guest', |
52 ['minimal_test_guest.c'], | 52 ['minimal_test_guest.c'], |
53 EXTRA_LINKFLAGS=['-nostdlib']) | 53 EXTRA_LINKFLAGS=['-nostdlib']) |
54 | 54 |
55 extra_deps = [] | |
Mark Seaborn
2012/03/13 22:16:55
What's with this extra_deps when SCons will track
| |
56 if env.Bit('pnacl_stop_with_pexe'): | |
57 env.Replace(TRANSLATEFLAGS=['-nostdlib']) | |
58 nexe_name, pexe_node = env.GetTranslatedNexe(test_prog) | |
59 test_prog = nexe_name | |
60 extra_deps = [pexe_node] | |
61 | |
55 test_command = [runner, test_prog] | 62 test_command = [runner, test_prog] |
56 bootstrap, _ = env.GetBootstrap() | 63 bootstrap, _ = env.GetBootstrap() |
57 if bootstrap is not None: | 64 if bootstrap is not None: |
58 test_command = [bootstrap] + test_command | 65 test_command = [bootstrap] + test_command |
59 | 66 |
60 node = env.CommandTest('minimal_test.out', test_command, | 67 node = env.CommandTest('minimal_test.out', test_command, |
61 stdout_golden=env.File('minimal_test.stdout')) | 68 stdout_golden=env.File('minimal_test.stdout'), |
69 extra_deps=extra_deps) | |
62 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', | 70 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', |
63 is_broken=not env.Bit('nacl_static_link')) | 71 is_broken=not env.Bit('nacl_static_link')) |
OLD | NEW |