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 if env.Bit('nacl_glibc'): | 8 if env.Bit('nacl_glibc'): |
9 # This test does not build successfully with nacl-glibc yet. | 9 # This test does not build successfully with nacl-glibc yet. |
10 # TODO(mseaborn): Fix this to build. | 10 # TODO(mseaborn): Fix this to build. |
11 Return() | 11 Return() |
12 | 12 |
13 ###################################################################### | 13 ###################################################################### |
14 # Smoke Test | 14 # Smoke Test |
15 ###################################################################### | 15 ###################################################################### |
16 nexe = env.ComponentProgram('nthread_nice.nexe', 'nthread_nice.c', | 16 nexe = env.ComponentProgram('nthread_nice', 'nthread_nice.c', |
17 EXTRA_LIBS=['pthread']) | 17 EXTRA_LIBS=['pthread']) |
18 | 18 |
19 # TODO(bradchen): create and then apply framework for | 19 # TODO(bradchen): create and then apply framework for |
20 # non-deterministic test results. | 20 # non-deterministic test results. |
21 # node = env.CommandSelLdrTestNacl( | 21 # node = env.CommandSelLdrTestNacl( |
22 # 'nthread_nice.out', | 22 # 'nthread_nice.out', |
23 # command=[env.File('nthread_nice.nexe'), '-- -t -d'], | 23 # nexe, |
| 24 # args=['--', '-t', '-d'], |
24 # stdout_golden=env.File('nthread_nice.stdout'), | 25 # stdout_golden=env.File('nthread_nice.stdout'), |
25 # ) | 26 # ) |
26 # env.AddNodeToTestSuite(node, ['small_tests']) | 27 # env.AddNodeToTestSuite(node, ['small_tests']) |
27 | 28 |
28 env.Publish('nthread_nice.nexe', 'run', []) | 29 env.Publish('nthread_nice', 'run', []) |
OLD | NEW |