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

Side by Side Diff: mojo/dart/observatory_tester/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 unified diff | Download patch
« no previous file with comments | « mojo/dart/observatory_test/pubspec.yaml ('k') | mojo/dart/observatory_tester/tester.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """This script runs the Observatory tests in the mojo tree."""
7
8 import argparse
9 import os
10 import subprocess
11 import sys
12
13 MOJO_SHELL = 'mojo_shell'
14 TESTEE = 'mojo:dart_observatory_test'
15
16 def main(build_dir, dart_exe, tester_script):
17 shell_exe = os.path.join(build_dir, MOJO_SHELL)
18 subprocess.check_call([
19 dart_exe,
20 tester_script,
21 shell_exe,
22 TESTEE
23 ])
24
25 if __name__ == '__main__':
26 parser = argparse.ArgumentParser(
27 description="List filenames of files in the packages/ subdir of the "
28 "given directory.")
29 parser.add_argument("--build-dir",
30 dest="build_dir",
31 metavar="<build-directory>",
32 type=str,
33 required=True,
34 help="The directory containing mojo_shell.")
35 parser.add_argument("--dart-exe",
36 dest="dart_exe",
37 metavar="<package-name>",
38 type=str,
39 required=True,
40 help="Path to dart executable.")
41 args = parser.parse_args()
42 tester_dir = os.path.dirname(os.path.realpath(__file__))
43 tester_dart_script = os.path.join(tester_dir, 'tester.dart');
44 sys.exit(main(args.build_dir, args.dart_exe, tester_dart_script))
OLDNEW
« no previous file with comments | « mojo/dart/observatory_test/pubspec.yaml ('k') | mojo/dart/observatory_tester/tester.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698