Index: recipe_engine/unittests/doc_test.py |
diff --git a/recipe_engine/unittests/doc_test.py b/recipe_engine/unittests/doc_test.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..9bfa0dc26f436bce91abca2a1dc27cafa69613b8 |
--- /dev/null |
+++ b/recipe_engine/unittests/doc_test.py |
@@ -0,0 +1,24 @@ |
+#!/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 DocTest(unittest.TestCase): |
+ def test_doc(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'), |
+ 'doc']) |
+ self.assertEqual(0, exit_code) |
+ |
+if __name__ == '__main__': |
+ unittest.TestCase.maxDiff = None |
+ unittest.main() |