Chromium Code Reviews| Index: src/trusted/validator/x86/testing/tf/build.scons |
| diff --git a/src/trusted/validator/x86/testing/tf/build.scons b/src/trusted/validator/x86/testing/tf/build.scons |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..827a4c4d1444190494e8e6d967a4ea8250e1feb3 |
| --- /dev/null |
| +++ b/src/trusted/validator/x86/testing/tf/build.scons |
| @@ -0,0 +1,35 @@ |
| +# -*- python -*- |
| +# Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import glob |
| + |
| +Import('env') |
| + |
| + |
| +if not env.Bit('target_x86'): |
| + Return() |
| + |
| +tf_tests_dir = '$MAIN_DIR/src/trusted/validator/x86/testing/tf/converted' |
| + |
| +bits = int(env.get('TARGET_SUBARCH')) |
| + |
| +tf_wildcard = '%s/%s/*.tf' % (tf_tests_dir, bits) |
| +tfs = glob.glob(tf_wildcard) |
| + |
| +ncval = '$STAGING_DIR/ncval$PROGSUFFIX' |
| + |
| +(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.
|
| + target='tf_annotate.out', |
| + source=['annotate_tf.py', ncval] + tfs, |
| + action=[ |
| + 'python ${SOURCES[0]} ' |
| + '--validator nc ' |
| + '--ncval%s=${SOURCES[1]} ' |
| + '--rdfaval=${SOURCES[2]} ' |
| + '--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
|
| + ], |
| +) |
| + |
| +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.
|