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 | 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 | 6 |
7 Import('env') | 7 Import('env') |
8 | 8 |
| 9 # Depends on the opt-host version of sel_ldr and sel_universal. |
| 10 if 'TRUSTED_ENV' not in env or env['OPTIMIZATION_LEVEL'] == 'dbg': |
| 11 Return() |
| 12 |
| 13 sel_universal = env['TRUSTED_ENV'].File( |
| 14 '${STAGING_DIR}/${PROGPREFIX}sel_universal${PROGSUFFIX}') |
| 15 sel_ldr = env.GetSelLdr() |
| 16 |
9 node = env.CommandTest('pnacl_driver_tests.out', | 17 node = env.CommandTest('pnacl_driver_tests.out', |
10 command=['${PYTHON}', | 18 command=['${PYTHON}', |
11 env.File('driver_tests.py')], | 19 env.File('driver_tests.py'), |
| 20 '--platform=' + env.GetPlatform()], |
12 direct_emulation=False) | 21 direct_emulation=False) |
13 env.AddNodeToTestSuite(node, ['small_tests'], 'run_pnacl_driver_tests') | 22 env.AddNodeToTestSuite(node, ['small_tests'], 'run_pnacl_driver_tests') |
14 | 23 |
| 24 # The pnacl-translate driver does a sanity check that sel_ldr and |
| 25 # sel_universal are built when '--pnacl-sb' is specified. |
| 26 # We may also want it to run the sandboxed translator all the way through |
| 27 # to check if the sandboxed LLC got the right input. |
| 28 env.Depends(node, sel_ldr) |
| 29 env.Depends(node, sel_universal) |
OLD | NEW |