Index: Tools/GardeningServer/tests.py |
diff --git a/Tools/GardeningServer/tests.py b/Tools/GardeningServer/tests.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..f962eb74502dd1d44ba34d860bc02108b9cb280e |
--- /dev/null |
+++ b/Tools/GardeningServer/tests.py |
@@ -0,0 +1,28 @@ |
+#!/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 sys |
+import unittest |
+ |
+ |
+def main(): |
+ try: |
+ import appengine_testing |
+ except ImportError: |
+ print ('Could not import appengine_testing. WebKit/Tools must be on ' |
+ 'PYTHONPATH.') |
+ sys.exit(1) |
+ appengine_testing.set_up() |
+ |
+ tests_path = os.path.dirname(sys.modules[__name__].__file__) |
+ suite = unittest.loader.TestLoader().discover(tests_path, |
+ pattern='*_test.py') |
+ unittest.TextTestRunner(verbosity=2).run(suite) |
+ |
+ |
+if __name__ == '__main__': |
+ main() |