| Index: tools/deep_memory_profiler/visualizer/run_tests.py
|
| diff --git a/tools/deep_memory_profiler/visualizer/run_tests.py b/tools/deep_memory_profiler/visualizer/run_tests.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..7f9fac7353993401ef66a789212daa6be515353d
|
| --- /dev/null
|
| +++ b/tools/deep_memory_profiler/visualizer/run_tests.py
|
| @@ -0,0 +1,28 @@
|
| +#!/usr/bin/python
|
| +# Copyright 2013 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():
|
| + if len(sys.argv) != 2:
|
| + sys.stderr.write("""Usage: run_tests.py <path/to/google_appengine>""")
|
| + sys.exit(1)
|
| +
|
| + sys.path.insert(0, sys.argv.pop(1))
|
| + import dev_appserver
|
| + dev_appserver.fix_sys_path()
|
| + path = os.path.dirname(os.path.abspath(__file__))
|
| + suite = unittest.loader.TestLoader().discover(
|
| + path,
|
| + pattern='*_unittest.py'
|
| + )
|
| + unittest.TextTestRunner(verbosity=2).run(suite)
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main())
|
|
|