Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Unified Diff: src/trusted/validator/x86/testing/tf/build.scons

Issue 10908137: (abandoned) Validator tests: convert hexes to TFs and run on bots (for prod. validator only) (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: restore 'read overflow' and 'SegmentationError' Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'
+)

Powered by Google App Engine
This is Rietveld 408576698