| 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 # These tests only make sense for the PNaCl toolchain | 8 # These tests only make sense for the PNaCl toolchain |
| 9 if not env.Bit('bitcode'): | 9 if not env.Bit('bitcode'): |
| 10 Return() | 10 Return() |
| 11 | 11 |
| 12 # we do not have llvm's ${DISASS} when we run on ARM boxes | 12 # we do not have llvm's ${DISASS} when we run on ARM boxes |
| 13 if env.Bit('target_arm'): | 13 if env.Bit('target_arm'): |
| 14 Return() | 14 Return() |
| 15 | 15 |
| 16 TESTS = ['small_structs_by_value.c', | 16 TESTS = ['small_structs_by_value.c', |
| 17 'data_type.c', | 17 'data_type.c', |
| 18 ## 'vaarg.c',## todo(jasonwkim) comment out - upstream changes break th
is test | 18 ## 'vaarg.c',## todo(jasonwkim) comment out - upstream changes break th
is test |
| 19 ] | 19 ] |
| 20 | 20 |
| 21 for src in TESTS: | 21 for src in TESTS: |
| 22 name = src.split('.')[0] | 22 name = src.split('.')[0] |
| 23 node = env.ComponentObject(name + '.o', src) | 23 node = env.ComponentObject(name + '.o', src) |
| 24 test = env.CommandTest(name + '.out', | 24 test = env.CommandTest(name + '.out', |
| 25 ['${DISASS} -o -', node], | 25 ['${DISASS}', '-o', '-', node], |
| 26 stdout_golden=env.File(name + '.stdout'), | 26 stdout_golden=env.File(name + '.stdout'), |
| 27 filter_regex="'; ModuleID = '", | 27 filter_regex='"; ModuleID = "', |
| 28 filter_inverse='true', | 28 filter_inverse='true', |
| 29 ) | 29 ) |
| 30 env.AddNodeToTestSuite(test, | 30 env.AddNodeToTestSuite(test, |
| 31 ['pnacl_abi_tests', 'small_tests'], | 31 ['pnacl_abi_tests', 'small_tests'], |
| 32 'run_' + name + '_test') | 32 'run_' + name + '_test') |
| OLD | NEW |