| 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 env.ComponentProgram('file.nexe', | 8 nexe = env.ComponentProgram('file', |
| 9 'file.cc', | 9 'file.cc', |
| 10 EXTRA_LIBS=['pthread']) | 10 EXTRA_LIBS=['pthread']) |
| 11 | 11 |
| 12 # TODO: add tests back in | 12 # TODO: add tests back in |
| 13 # NOTE: this smoke tests currently fails in "test17" | 13 # NOTE: this smoke tests currently fails in "test17" |
| 14 # when opening "././file/testdata256" | 14 # when opening "././file/testdata256" |
| 15 # it creates files in the current directory and below | 15 # it creates files in the current directory and below |
| 16 # which should be avoided | 16 # which should be avoided |
| 17 # so for now we invoke file.py (see below) | 17 # so for now we invoke file.py (see below) |
| 18 | 18 |
| 19 # node = env.CommandSelLdrTestNacl('file_test.out', | 19 # node = env.CommandSelLdrTestNacl('file_test.out', |
| 20 # env.File('file.nexe'), | 20 # nexe, |
| 21 # flags='-d', | 21 # flags='-d', |
| 22 # ) | 22 # ) |
| 23 # AlwaysBuild(node) | 23 # AlwaysBuild(node) |
| 24 # env.AddNodeToSmokeTestSuite(node) | 24 # env.AddNodeToSmokeTestSuite(node) |
| 25 | 25 |
| 26 | 26 |
| 27 # node = env.Command('file_test.out', | 27 # node = env.Command('file_test.out', |
| 28 # 'file.py', | 28 # 'file.py', |
| 29 # '${PYTHON} %s > ${TARGET}' % env.File('file.py') | 29 # '${PYTHON} %s > ${TARGET}' % env.File('file.py') |
| 30 # ) | 30 # ) |
| 31 # AlwaysBuild(node) | 31 # AlwaysBuild(node) |
| 32 # env.AddNodeToSmokeTestSuite(node) | 32 # env.AddNodeToSmokeTestSuite(node) |
| OLD | NEW |