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

Unified Diff: tests/standalone/src/TestRunnerTest.dart

Issue 8540002: Use the configuration for determining the binary to use for testing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « tests/standalone/src/StatusExpressionTest.dart ('k') | tests/standalone/test_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/TestRunnerTest.dart
diff --git a/tests/standalone/src/TestRunnerTest.dart b/tests/standalone/src/TestRunnerTest.dart
index 85668b0d999d77d017d412e27b2d2f5b16b31216..cdc68b1c8892b331ece3896db6a5ee6109ec9d1f 100644
--- a/tests/standalone/src/TestRunnerTest.dart
+++ b/tests/standalone/src/TestRunnerTest.dart
@@ -44,7 +44,7 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
}
return new TestCase(testName,
- getDartShellFileName(),
+ getDartBinName(),
<String>["--ignore-unrecognized-flags",
"--enable_type_checks",
test_path],
@@ -52,6 +52,22 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
new Set<String>.from(expectations));
}
+
+String getDartBinName() {
+ var names = ["out/Debug_ia32/dart_bin",
+ "out/Release_ia32/dart_bin",
+ "xcodebuild/Debug_ia32/dart_bin",
+ "xcodebuild/Release_ia32/dart_bin",
+ "Debug_ia32/dart_bin.exe",
+ "Release_ia32/dart_bin.exe"];
+ for (var name in names) {
+ if (new File(name).existsSync()) {
+ return name;
+ }
+ }
+}
+
+
String getProcessTestFileName() {
var names = ['out/Release_ia32/process_test',
'out/Debug_ia32/process_test',
« no previous file with comments | « tests/standalone/src/StatusExpressionTest.dart ('k') | tests/standalone/test_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698