Index: recipe_engine/unittests/run_test.py |
diff --git a/recipe_engine/unittests/run_test.py b/recipe_engine/unittests/run_test.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..850f1d3fdf9a4305422bc6ace3eb0604e5d77b03 |
--- /dev/null |
+++ b/recipe_engine/unittests/run_test.py |
@@ -0,0 +1,23 @@ |
+#!/usr/bin/env python |
+# Copyright 2014 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. |
+ |
+import os |
+import subprocess |
+import unittest |
+ |
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
+ |
+class RunTest(unittest.TestCase): |
+ def test_run(self): |
+ script_path = os.path.join(BASE_DIR, 'recipes.py') |
+ exit_code = subprocess.call([ |
+ 'python', script_path, |
+ '--package', os.path.join(BASE_DIR, 'infra', 'config', 'recipes.cfg'), |
+ 'run', 'step:example']) |
+ self.assertEqual(0, exit_code) |
+ |
+if __name__ == '__main__': |
+ unittest.TestCase.maxDiff = None |
+ unittest.main() |