OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 import os |
| 7 import subprocess |
| 8 import unittest |
| 9 |
| 10 BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname( |
| 11 os.path.abspath(__file__)))) |
| 12 |
| 13 class DocTest(unittest.TestCase): |
| 14 def test_doc(self): |
| 15 script_path = os.path.join(BASE_DIR, 'recipes.py') |
| 16 exit_code = subprocess.call([ |
| 17 'python', script_path, |
| 18 '--package', os.path.join(BASE_DIR, 'infra', 'config', 'recipes.cfg'), |
| 19 'doc']) |
| 20 self.assertEqual(0, exit_code) |
| 21 |
| 22 if __name__ == '__main__': |
| 23 unittest.TestCase.maxDiff = None |
| 24 unittest.main() |
OLD | NEW |