OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 # Copyright 2013 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 sys |
| 8 import unittest |
| 9 |
| 10 |
| 11 def main(): |
| 12 if len(sys.argv) != 2: |
| 13 sys.stderr.write("""Usage: run_tests.py <path/to/google_appengine>""") |
| 14 sys.exit(1) |
| 15 |
| 16 sys.path.insert(0, sys.argv.pop(1)) |
| 17 import dev_appserver |
| 18 dev_appserver.fix_sys_path() |
| 19 path = os.path.dirname(os.path.abspath(__file__)) |
| 20 suite = unittest.loader.TestLoader().discover( |
| 21 path, |
| 22 pattern='*_unittest.py' |
| 23 ) |
| 24 unittest.TextTestRunner(verbosity=2).run(suite) |
| 25 |
| 26 |
| 27 if __name__ == '__main__': |
| 28 sys.exit(main()) |
OLD | NEW |