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

Unified Diff: mojo/dart/http_load_test/runner.py

Issue 1545483003: Dart: Reorganize files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix build file Created 5 years 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 | « mojo/dart/http_load_test/pubspec.yaml ('k') | mojo/dart/observatory_test/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/http_load_test/runner.py
diff --git a/mojo/dart/http_load_test/runner.py b/mojo/dart/http_load_test/runner.py
deleted file mode 100755
index b3c4785b849d4a5b1879d81bdc7b7243017a33e6..0000000000000000000000000000000000000000
--- a/mojo/dart/http_load_test/runner.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/python
-# Copyright 2015 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.
-
-"""This script runs the Dart content handler http load test in the mojo tree."""
-
-import argparse
-import os
-import subprocess
-import sys
-
-MOJO_SHELL = 'mojo_shell'
-
-
-def main(build_dir, dart_exe, tester_script, tester_dir):
- shell_exe = os.path.join(build_dir, MOJO_SHELL)
- subprocess.check_call([
- dart_exe,
- tester_script,
- shell_exe,
- tester_dir,
- ])
-
-if __name__ == '__main__':
- parser = argparse.ArgumentParser(
- description="List filenames of files in the packages/ subdir of the "
- "given directory.")
- parser.add_argument("--build-dir",
- dest="build_dir",
- metavar="<build-directory>",
- type=str,
- required=True,
- help="The directory containing mojo_shell.")
- parser.add_argument("--dart-exe",
- dest="dart_exe",
- metavar="<package-name>",
- type=str,
- required=True,
- help="Path to dart executable.")
- args = parser.parse_args()
- tester_directory = os.path.dirname(os.path.realpath(__file__))
- tester_dart_script = os.path.join(tester_directory, 'bin', 'tester.dart')
- package_directory = os.path.join(
- args.build_dir, 'gen', 'dart-pkg', 'mojo_dart_http_load_test')
- sys.exit(main(args.build_dir, args.dart_exe, tester_dart_script,
- package_directory))
« no previous file with comments | « mojo/dart/http_load_test/pubspec.yaml ('k') | mojo/dart/observatory_test/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698