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

Unified Diff: tracing/bin/run_symbolizer_tests

Issue 2950723002: Add an end-to-end test for symbolize_trace on macOS. (Closed)
Patch Set: lint Created 3 years, 6 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 | « catapult_build/run_with_typ.py ('k') | tracing/bin/symbolize_trace » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/bin/run_symbolizer_tests
diff --git a/tracing/bin/run_symbolizer_tests b/tracing/bin/run_symbolizer_tests
new file mode 100755
index 0000000000000000000000000000000000000000..3f3117536763bf972b75efc7cb499a33cfc0af2e
--- /dev/null
+++ b/tracing/bin/run_symbolizer_tests
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+# Copyright 2017 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.
+
+"""
+The symbolizer tests take a long time to run [potentially 5+ minutes each], so
+they are invoked directly from separately from run_py_tests.
+"""
+
+import os
+import sys
+
+_CATAPULT_PATH = os.path.abspath(
+ os.path.join(
+ os.path.dirname(os.path.realpath(__file__)),
+ os.path.pardir,
+ os.path.pardir))
+_TRACING_PATH = os.path.join(_CATAPULT_PATH, 'tracing')
+
+
+def _RunTestsOrDie(top_level_dir):
+ exit_code = run_with_typ.Run(top_level_dir, path=[_TRACING_PATH],
+ suffixes=['*_test_slow.py'])
+ if exit_code:
+ sys.exit(exit_code)
+
+
+def _AddToPathIfNeeded(path):
+ if path not in sys.path:
+ sys.path.insert(0, path)
+
+
+if __name__ == '__main__':
+ _AddToPathIfNeeded(_CATAPULT_PATH)
+
+ from catapult_build import run_with_typ
+ _RunTestsOrDie(os.path.join(_TRACING_PATH, 'tracing', 'extras', 'symbolizer'))
+ sys.exit(0)
« no previous file with comments | « catapult_build/run_with_typ.py ('k') | tracing/bin/symbolize_trace » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698