Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: tools/deep_memory_profiler/visualizer/run_tests.py

Issue 23781012: Upload file to app engine and generate public url for dmprof visualizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review problems Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/deep_memory_profiler/visualizer/index.html ('k') | tools/deep_memory_profiler/visualizer/services.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « tools/deep_memory_profiler/visualizer/index.html ('k') | tools/deep_memory_profiler/visualizer/services.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698