| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 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('noop.nexe', | 8 noop_nexe = env.ComponentProgram('noop', |
| 9 'noop.c', | 9 'noop.c', |
| 10 EXTRA_LIBS=['pthread'], | 10 EXTRA_LIBS=['pthread'], |
| 11 ) | 11 ) |
| 12 | 12 |
| 13 node = env.CommandSelLdrTestNacl( | 13 node = env.CommandSelLdrTestNacl( |
| 14 'noop_test.out', | 14 'noop_test.out', |
| 15 command=[env.File('noop.nexe')], | 15 noop_nexe, |
| 16 stdout_golden=env.File('noop.stdout'), | 16 stdout_golden=env.File('noop.stdout'), |
| 17 ) | 17 ) |
| 18 env.AddNodeToTestSuite(node, | 18 env.AddNodeToTestSuite(node, |
| 19 ['small_tests', 'sel_ldr_tests'], | 19 ['small_tests', 'sel_ldr_tests'], |
| 20 'run_noop_test') | 20 'run_noop_test') |
| 21 | 21 |
| 22 | 22 |
| 23 env.ComponentProgram('noop2.nexe', | 23 noop2_nexe = env.ComponentProgram('noop2', |
| 24 'noop2.c', | 24 'noop2.c', |
| 25 EXTRA_LIBS=['pthread'], | 25 EXTRA_LIBS=['pthread'], |
| 26 ) | 26 ) |
| 27 node = env.CommandSelLdrTestNacl( | 27 node = env.CommandSelLdrTestNacl( |
| 28 'noop2_test.out', | 28 'noop2_test.out', |
| 29 command=[env.File('noop2.nexe')], | 29 noop2_nexe, |
| 30 stdout_golden=env.File('noop.stdout'), | 30 stdout_golden=env.File('noop.stdout'), |
| 31 exit_status='2', | 31 exit_status='2', |
| 32 ) | 32 ) |
| 33 env.AddNodeToTestSuite(node, | 33 env.AddNodeToTestSuite(node, |
| 34 ['small_tests', 'sel_ldr_tests'], | 34 ['small_tests', 'sel_ldr_tests'], |
| 35 'run_noop2_test') | 35 'run_noop2_test') |
| OLD | NEW |