Chromium Code Reviews| 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/testing/tf/converted' | |
| 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 = '$STAGING_DIR/ncval$PROGSUFFIX' | |
| 22 | |
| 23 (annotate,) = env.Command( | |
|
Mark Seaborn
2012/09/10 19:38:06
Please use AutoDepsCommand() instead. Then it wil
Vlad Shcherbina
2012/09/11 14:26:00
Done.
| |
| 24 target='tf_annotate.out', | |
| 25 source=['annotate_tf.py', ncval] + tfs, | |
| 26 action=[ | |
| 27 'python ${SOURCES[0]} ' | |
| 28 '--validator nc ' | |
| 29 '--ncval%s=${SOURCES[1]} ' | |
| 30 '--rdfaval=${SOURCES[2]} ' | |
| 31 '--check "%s"' % (bits, tf_wildcard) | |
|
Mark Seaborn
2012/09/10 19:38:06
Passing a wildcard as a command line argument is s
Vlad Shcherbina
2012/09/11 14:26:00
Explicit list of files perhaps has some advantages
| |
| 32 ], | |
| 33 ) | |
| 34 | |
| 35 env.AlwaysBuild(env.Alias('validator_tf_test', [annotate])) | |
|
Mark Seaborn
2012/09/10 19:38:06
You should be using AddNodeToTestSuite() to add th
Vlad Shcherbina
2012/09/11 14:26:00
Done.
| |
| OLD | NEW |