OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 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 env.ComponentProgram('mmap_test.nexe', | 8 mmap_test_nexe = env.ComponentProgram('mmap_test', |
9 'mmap_test.cc', | 9 'mmap_test.cc', |
10 EXTRA_LIBS=['pthread']) | 10 EXTRA_LIBS=['pthread']) |
11 node = env.CommandSelLdrTestNacl( | 11 node = env.CommandSelLdrTestNacl( |
12 'mmap_test.out', | 12 'mmap_test.out', |
13 command=[env.File('mmap_test.nexe'), env.File('test-file')], | 13 mmap_test_nexe, |
| 14 args=[env.File('test-file')], |
14 stdout_golden=env.File('mmap_test.stdout'), | 15 stdout_golden=env.File('mmap_test.stdout'), |
15 osenv='NACL_DANGEROUS_ENABLE_FILE_ACCESS=1') | 16 osenv='NACL_DANGEROUS_ENABLE_FILE_ACCESS=1') |
16 | 17 |
17 env.AddNodeToTestSuite(node, | 18 env.AddNodeToTestSuite(node, |
18 ['small_tests', 'sel_ldr_tests'], | 19 ['small_tests', 'sel_ldr_tests'], |
19 'run_mmap_test') | 20 'run_mmap_test') |
OLD | NEW |