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

Unified Diff: tests/recipes_test.py

Issue 1494103004: Set up depot_tools as a recipe package, and add depot_tools recipe module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years 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
« recipes.py ('K') | « recipes.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/recipes_test.py
diff --git a/tests/recipes_test.py b/tests/recipes_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..99b149d466086997ca70e7a7dfef643a10a2faa3
--- /dev/null
+++ b/tests/recipes_test.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Runs simulation tests and lint on the recipes."""
+
+import os
+import subprocess
+
+ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
+def recipes_py(*args):
+ subprocess.check_call([os.path.join(ROOT_DIR, 'recipes.py')] + list(args))
+
+recipes_py('simulation_test', '--threshold=92')
+recipes_py('lint')
« recipes.py ('K') | « recipes.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698