Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: tests/stubout_mode/nacl.scons

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # Do not run these tests with pexes, assuming they are portable, since 8 # Do not run these tests with pexes, assuming they are portable, since
9 # they use inline assembler. 9 # they use inline assembler.
10 if env.Bit('bitcode') and env.Bit('pnacl_generate_pexe'): 10 if env.Bit('bitcode') and env.Bit('pnacl_generate_pexe'):
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 is_broken=is_validation_disabled) 68 is_broken=is_validation_disabled)
69 69
70 # With "-c", the executable runs to completion but is not safe. 70 # With "-c", the executable runs to completion but is not safe.
71 node = env.CommandSelLdrTestNacl( 71 node = env.CommandSelLdrTestNacl(
72 'partly_invalid_2.out', partly_invalid_nexe, 72 'partly_invalid_2.out', partly_invalid_nexe,
73 stdout_golden=env.File('without_stubout.stdout'), 73 stdout_golden=env.File('without_stubout.stdout'),
74 sel_ldr_flags=['-c']) 74 sel_ldr_flags=['-c'])
75 env.AddNodeToTestSuite(node, test_suites, 'run_without_stubout_2_test') 75 env.AddNodeToTestSuite(node, test_suites, 'run_without_stubout_2_test')
76 76
77 # With "-s", the executable runs part way but then faults. 77 # With "-s", the executable runs part way but then faults.
78
79 if env.Bit('target_mips32'):
80 partly_invalid_exit_status = 'sigtrap'
81 else:
82 partly_invalid_exit_status = 'untrusted_sigill'
83
78 node = env.CommandSelLdrTestNacl( 84 node = env.CommandSelLdrTestNacl(
79 'partly_invalid_3.out', partly_invalid_nexe, 85 'partly_invalid_3.out', partly_invalid_nexe,
80 stdout_golden=env.File('with_stubout.stdout'), 86 stdout_golden=env.File('with_stubout.stdout'),
81 sel_ldr_flags=['-s'], 87 sel_ldr_flags=['-s'],
82 exit_status='untrusted_sigill') 88 exit_status=partly_invalid_exit_status)
83 env.AddNodeToTestSuite(node, test_suites, 'run_stubout_mode_test') 89 env.AddNodeToTestSuite(node, test_suites, 'run_stubout_mode_test')
84 90
91 if not env.Bit('target_mips32'):
Mark Seaborn 2013/02/13 22:14:09 Use the is_broken argument instead
petarj 2013/03/05 17:50:04 Done.
92 # There is no stubout tool for MIPS
85 # Using the standalone ncval_stubout tool to rewrite the executable 93 # Using the standalone ncval_stubout tool to rewrite the executable
86 # offline should be equivalent to using sel_ldr's "-s" option. 94 # offline should be equivalent to using sel_ldr's "-s" option.
87 node = env.CommandSelLdrTestNacl( 95 node = env.CommandSelLdrTestNacl(
88 'partly_invalid_stubout.out', 96 'partly_invalid_stubout.out',
89 partly_invalid_stubout_nexe, 97 partly_invalid_stubout_nexe,
90 stdout_golden=env.File('with_stubout.stdout'), 98 stdout_golden=env.File('with_stubout.stdout'),
91 exit_status='untrusted_sigill') 99 exit_status='untrusted_sigill')
92 env.AddNodeToTestSuite(node, test_suites, 'run_offline_stubout_test') 100 env.AddNodeToTestSuite(node, test_suites, 'run_offline_stubout_test')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698