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

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: fix for windows (temp files and crlf) 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..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.

Powered by Google App Engine
This is Rietveld 408576698