OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 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 |
| 4 # found in the LICENSE file. |
| 5 |
| 6 import glob |
| 7 |
| 8 Import('env') |
| 9 |
| 10 |
| 11 if not env.Bit('target_x86'): |
| 12 Return() |
| 13 |
| 14 tf_tests_dir = '$MAIN_DIR/src/trusted/validator_x86/testdata' |
| 15 |
| 16 bits = int(env.get('TARGET_SUBARCH')) |
| 17 |
| 18 tf_wildcard = '%s/%s/*.tf' % (tf_tests_dir, bits) |
| 19 tfs = glob.glob(tf_wildcard) |
| 20 |
| 21 ncval = env.File('$STAGING_DIR/ncval$PROGSUFFIX') |
| 22 |
| 23 annotate = env.AutoDepsCommand( |
| 24 'tf_annotate.out', |
| 25 ['${PYTHON}', |
| 26 env.File('annotate_tf.py'), |
| 27 '--validator', 'nc', |
| 28 '--ncval%s' % bits, ncval, |
| 29 '"%s"' % tf_wildcard], |
| 30 extra_deps=tfs |
| 31 ) |
| 32 |
| 33 env.AddNodeToTestSuite( |
| 34 annotate, |
| 35 ['small_tests'], |
| 36 node_name='validator_tf_test' |
| 37 ) |
OLD | NEW |