| Index: Tools/GardeningServer/tests.py
|
| diff --git a/Tools/GardeningServer/tests.py b/Tools/GardeningServer/tests.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..0ae7b42a4b476ba85824ae0951e012e709529041
|
| --- /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/'
|
| + 'appengine_testing 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()
|
|
|