| 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 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 ###################################################################### | 9 ###################################################################### |
| 10 # Smoke Test | 10 # Smoke Test |
| 11 ###################################################################### | 11 ###################################################################### |
| 12 env.ComponentProgram('app_lib_test.nexe', | 12 nexe = env.ComponentProgram('app_lib_test', |
| 13 'app_lib_test.c', | 13 'app_lib_test.c', |
| 14 EXTRA_LIBS=['pthread'], | 14 EXTRA_LIBS=['pthread'], |
| 15 ) | 15 ) |
| 16 | 16 |
| 17 # NOTE: we are using the same file as stdin and on the command line | 17 # NOTE: we are using the same file as stdin and on the command line |
| 18 # | 18 # |
| 19 # app_lib_test exercises stdio, in particular, it uses fopen on the | 19 # app_lib_test exercises stdio, in particular, it uses fopen on the |
| 20 # command line argument, so it requires the -a flag to sel_ldr in | 20 # command line argument, so it requires the -a flag to sel_ldr in |
| 21 # order to access the filesystem. | 21 # order to access the filesystem. |
| 22 node = env.CommandSelLdrTestNacl( | 22 node = env.CommandSelLdrTestNacl( |
| 23 'app_lib_test.out', | 23 'app_lib_test.out', |
| 24 command=[env.File('app_lib_test.nexe'), env.File('app_lib_test.stdin')], | 24 nexe, |
| 25 args=[env.File('app_lib_test.stdin')], |
| 25 stdin=env.File('app_lib_test.stdin'), | 26 stdin=env.File('app_lib_test.stdin'), |
| 26 stdout_golden=env.File('app_lib_test.stdout'), | 27 stdout_golden=env.File('app_lib_test.stdout'), |
| 27 sel_ldr_flags=['-a'], | 28 sel_ldr_flags=['-a'], |
| 28 ) | 29 ) |
| 29 | 30 |
| 30 env.AddNodeToTestSuite(node, ['small_tests'], 'run_app_lib_test') | 31 env.AddNodeToTestSuite(node, ['small_tests'], 'run_app_lib_test') |
| OLD | NEW |