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

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

Issue 8493004: Dart test script dart rewrite - find the correct executable file for "process_test". (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 | « no previous file | no next file » | 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 1f001ae4e5a22a5242ea6dc93a49197960fc30c6..7493dff3a2a4eae3b5899d7ec7b44ba075b0e6b5 100644
--- a/tests/standalone/src/TestRunnerTest.dart
+++ b/tests/standalone/src/TestRunnerTest.dart
@@ -46,13 +46,27 @@ TestCase MakeTestCase(String testName, List<String> expectations) {
new Set<String>.from(expectations));
}
+String getProcessTestFileName() {
+ var names = ['out/Release_ia32/process_test',
+ 'out/Debug_ia32/process_test',
+ 'xcodebuild/Release_ia32/process_test',
+ 'xcodebuild/Debug_ia32/process_test',
+ 'Release_ia32/process_test.exe',
+ 'Debug_ia32/process_test.exe'];
+ for (var name in names) {
+ if (new File(name).existsSync()) {
+ return name;
+ }
+ }
+ Expect.fail('Could not find the process_test program.');
+}
+
void main() {
new RunningProcess(MakeTestCase("PassTest", [PASS]), 30).start();
new RunningProcess(MakeTestCase("FailTest", [FAIL]), 30).start();
new RunningProcess(MakeTestCase("TimeoutTest", [TIMEOUT]), 30).start();
- // TODO(whesse): Replace process_test with getProcessTestFileName().
- new RunningProcess(new TestCase("out/Debug_ia32/process_test",
+ new RunningProcess(new TestCase(getProcessTestFileName(),
const ["0", "0", "1", "1"],
TestController.processCompletedTest,
new Set<String>.from([CRASH])),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698