| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 non_exit_nexe = env.ComponentProgram('non_exit', 'non_exit.c', | 8 non_exit_nexe = env.ComponentProgram('non_exit', 'non_exit.c', |
| 9 EXTRA_LIBS=['${NONIRT_LIBS}']) | 9 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 10 | 10 |
| 11 node = env.SelUniversalTest( | 11 node = env.SelUniversalTest( |
| 12 'hard_shutdown_test.out', | 12 'hard_shutdown_test.out', |
| 13 non_exit_nexe, | 13 non_exit_nexe, |
| 14 sel_universal_flags=['--uses_reverse_service', | 14 sel_universal_flags=['--uses_reverse_service', |
| 15 '--no_app_channel', | 15 '--no_app_channel', |
| 16 '--command_file', | 16 '--command_file', |
| 17 env.File('hard_shutdown_test.stdin')], | 17 env.File('hard_shutdown_test.stdin')], |
| 18 ) | 18 ) |
| 19 |
| 20 # TODO(petarj): The tests hangs indefinite on QEMU MIPS. Enable it when fixed. |
| 21 is_broken=env.Bit('target_mips32') and env.UsingEmulator() |
| 22 |
| 19 env.AddNodeToTestSuite(node, | 23 env.AddNodeToTestSuite(node, |
| 20 ['small_tests'], | 24 ['small_tests'], |
| 21 'run_hard_shutdown_test') | 25 'run_hard_shutdown_test', |
| 26 is_broken=is_broken) |
| 22 | 27 |
| 23 node = env.SelUniversalTest( | 28 node = env.SelUniversalTest( |
| 24 'force_shutdown_test.out', | 29 'force_shutdown_test.out', |
| 25 non_exit_nexe, | 30 non_exit_nexe, |
| 26 sel_universal_flags=['--uses_reverse_service', | 31 sel_universal_flags=['--uses_reverse_service', |
| 27 '--no_app_channel', | 32 '--no_app_channel', |
| 28 '--command_file', | 33 '--command_file', |
| 29 env.File('hard_shutdown_test.stdin')], | 34 env.File('hard_shutdown_test.stdin')], |
| 30 ) | 35 ) |
| 31 env.AddNodeToTestSuite(node, | 36 env.AddNodeToTestSuite(node, |
| 32 ['small_tests'], | 37 ['small_tests'], |
| 33 'run_force_shutdown_test') | 38 'run_force_shutdown_test', |
| 39 is_broken=is_broken) |
| OLD | NEW |