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..c335641cb8c6ea9a91953eee36ac12f9c95de338 |
--- /dev/null |
+++ b/src/trusted/validator/x86/testing/tf/build.scons |
@@ -0,0 +1,37 @@ |
+# -*- 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/testdata' |
+ |
+bits = int(env.get('TARGET_SUBARCH')) |
+ |
+tf_wildcard = '%s/%s/*.tf' % (tf_tests_dir, bits) |
+tfs = glob.glob(tf_wildcard) |
+ |
+ncval = env.File('$STAGING_DIR/ncval$PROGSUFFIX') |
+ |
+annotate = env.AutoDepsCommand( |
+ 'tf_annotate.out', |
+ ['${PYTHON}', |
+ env.File('annotate_tf.py'), |
+ '--validator', 'nc', |
+ '--ncval%s' % bits, ncval, |
+ '"%s"' % tf_wildcard], |
+ extra_deps=tfs |
+) |
+ |
+env.AddNodeToTestSuite( |
+ annotate, |
+ ['small_tests'], |
+ node_name='validator_tf_test' |
+) |