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

Unified Diff: dart/tools/utils.py

Issue 8372095: Bleeding edge change to get frog integrated into the testing infrastructure. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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 | « dart/tools/testing/architecture.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/utils.py
===================================================================
--- dart/tools/utils.py (revision 1135)
+++ dart/tools/utils.py (working copy)
@@ -107,6 +107,19 @@
setattr(parser.values, option.dest, value)
+# Returns the path to the Dart test runner (executes the .dart file).
+def GetDartRunner(mode, arch, component):
+ build_root = GetBuildRoot(GuessOS(), mode, arch)
+ if component == 'dartc':
+ return os.path.join(build_root, 'compiler', 'bin', 'dartc_test')
+ elif component == 'frog':
+ return os.path.join(build_root, 'frog', 'bin', 'frog')
+ elif component == 'frogsh':
+ return os.path.join(build_root, 'frog', 'bin', 'frogsh')
+ else:
+ return os.path.join(build_root, 'dart_bin')
+
+
# Mapping table between build mode and build configuration.
BUILD_MODES = {
'debug': 'Debug',
@@ -136,9 +149,6 @@
def GetBuildRoot(target_os, mode=None, arch=None):
global BUILD_ROOT
if mode:
- # TODO(ngeoffray): Remove this test once the testing infrastructure does not
- # treat 'dartc' as an arch.
- if arch == 'dartc': arch = ARCH_GUESS
return os.path.join(BUILD_ROOT[target_os], GetBuildConf(mode, arch))
else:
return BUILD_ROOT[target_os]
« no previous file with comments | « dart/tools/testing/architecture.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698