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

Side by Side Diff: tests/golem/golem_tests.dart

Issue 1450393002: Roll sdk dependency to 34357cdad108dcba734949bd13bd28c76ea285e0 (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 // IF YOU BREAK THIS TEST YOU PROBABLY HAVE TO FIX GOLEM AS WELL! 5 // IF YOU BREAK THIS TEST YOU PROBABLY HAVE TO FIX GOLEM AS WELL!
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:io' show 10 import 'dart:io' show
11 Directory, 11 Directory,
12 Platform, 12 Platform,
13 Process, 13 Process,
14 ProcessResult; 14 ProcessResult;
15 15
16 import 'package:expect/expect.dart' show 16 import 'package:expect/expect.dart' show
17 Expect; 17 Expect;
18 18
19 import 'package:fletchc/src/guess_configuration.dart' show 19 import 'package:fletchc/src/guess_configuration.dart' show
20 executable; 20 executable;
21 21
22 Future<Null> main() async { 22 Future<Null> main() async {
23 print('*' * 80);
24 print('If this test fails with a load error, you probably have to update');
25 print(' tools/benchmarking_files');
26 print('*' * 80);
27
23 // Locate the files that are needed. 28 // Locate the files that are needed.
24 Uri benchmarkingFiles = executable.resolve('../../tools/benchmarking_files'); 29 Uri benchmarkingFiles = executable.resolve('../../tools/benchmarking_files');
25 Directory tempDir = Directory.systemTemp.createTempSync('golem_tests'); 30 Directory tempDir = Directory.systemTemp.createTempSync('golem_tests');
26 Uri tarFile = tempDir.uri.resolve('golem.tar.gz'); 31 Uri tarFile = tempDir.uri.resolve('golem.tar.gz');
27 String buildDir = const String.fromEnvironment('test.dart.build-dir'); 32 String buildDir = const String.fromEnvironment('test.dart.build-dir');
28 bool asanBuild = const bool.fromEnvironment('test.dart.build-asan'); 33 bool asanBuild = const bool.fromEnvironment('test.dart.build-asan');
29 34
30 List<String> tarArguments = [ 35 List<String> tarArguments = [
31 'hczf', 36 'hczf',
32 tarFile.toFilePath(), 37 tarFile.toFilePath(),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 Expect.equals(0, 98 Expect.equals(0,
94 runResult.exitCode, 99 runResult.exitCode,
95 'benchmark run failed:\n\n' 100 'benchmark run failed:\n\n'
96 'stdout:\n${runResult.stdout}\n' 101 'stdout:\n${runResult.stdout}\n'
97 'stderr:\n${runResult.stderr}'); 102 'stderr:\n${runResult.stderr}');
98 Expect.isTrue(runResult.stdout.contains('DeltaBlue(RunTime):')); 103 Expect.isTrue(runResult.stdout.contains('DeltaBlue(RunTime):'));
99 } finally { 104 } finally {
100 tempDir.deleteSync(recursive: true); 105 tempDir.deleteSync(recursive: true);
101 } 106 }
102 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698