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 | 8 |
9 mandel_tiled_nexe_name = 'mandel_tiled_%s.nexe' % env.get('TARGET_FULLARCH') | 9 mandel_tiled_nexe_name = 'mandel_tiled_%s' % env.get('TARGET_FULLARCH') |
10 mandel_tiled_nexe = env.ComponentProgram(mandel_tiled_nexe_name, | 10 mandel_tiled_nexe = env.ComponentProgram(mandel_tiled_nexe_name, |
11 'mandel_tiled.c', | 11 'mandel_tiled.c', |
12 EXTRA_LIBS=[ | 12 EXTRA_LIBS=[ |
13 'srpc', | 13 'srpc', |
14 'platform', | 14 'platform', |
15 'gio', | 15 'gio', |
16 'imc', | 16 'imc', |
17 'imc_syscalls', | 17 'imc_syscalls', |
18 'pthread']) | 18 'pthread']) |
19 | 19 |
20 env.Publish(mandel_tiled_nexe_name, 'run', ['mandel_tiled.html', | 20 env.Publish(mandel_tiled_nexe_name, 'run', ['mandel_tiled.html', |
21 'mandel_tiled.nmf']) | 21 'mandel_tiled.nmf']) |
22 | 22 |
23 | 23 |
24 mandel_nexe_name = 'mandel_%s.nexe' % env.get('TARGET_FULLARCH') | 24 mandel_nexe_name = 'mandel_%s' % env.get('TARGET_FULLARCH') |
25 mandel_nexe = env.ComponentProgram(mandel_nexe_name, 'mandel.c', | 25 mandel_nexe = env.ComponentProgram(mandel_nexe_name, 'mandel.c', |
26 EXTRA_LIBS=[ | 26 EXTRA_LIBS=[ |
27 'srpc', | 27 'srpc', |
28 'platform', | 28 'platform', |
29 'gio', | 29 'gio', |
30 'imc', | 30 'imc', |
31 'imc_syscalls', | 31 'imc_syscalls', |
32 'pthread']) | 32 'pthread']) |
33 | 33 |
34 env.Publish(mandel_nexe_name, 'run', []) | 34 env.Publish(mandel_nexe_name, 'run', []) |
35 | 35 |
36 node = env.SelUniversalTest('mandel_test.out', | 36 node = env.SelUniversalTest('mandel_test.out', |
37 command=[mandel_nexe], | 37 mandel_nexe, |
38 stdin=env.File('test.stdin'), | 38 stdin=env.File('test.stdin'), |
39 stdout_golden=env.File('test.stdout')) | 39 stdout_golden=env.File('test.stdout')) |
40 env.AddNodeToTestSuite(node, ['small_tests', 'sel_ldr_tests'], 'run_mandel') | 40 env.AddNodeToTestSuite(node, ['small_tests', 'sel_ldr_tests'], 'run_mandel') |
OLD | NEW |