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

Unified Diff: unittests/stdlib_test.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 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
« no previous file with comments | « recipes.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/stdlib_test.py
diff --git a/unittests/stdlib_test.py b/unittests/stdlib_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..c7f5bd7ecc763f417c8b12d18a95e2e6a580892c
--- /dev/null
+++ b/unittests/stdlib_test.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+"""Runs simulation tests and lint on the standard recipe modules."""
+
+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'),
+ '--package', os.path.join(ROOT_DIR, 'infra', 'config', 'recipes.cfg')] +
+ list(args))
+
+recipes_py('simulation_test', '--threshold=90')
+recipes_py('lint')
« no previous file with comments | « recipes.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698