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

Side by Side Diff: test/lish/many_files_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 months 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 Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:convert'; 5 import 'dart:convert';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:math' as math; 7 import 'dart:math' as math;
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:pub/src/exit_codes.dart' as exit_codes; 10 import 'package:pub/src/exit_codes.dart' as exit_codes;
(...skipping 11 matching lines...) Expand all
22 /// than OS X or Linux. We subtract one because Windows counts it as the number 22 /// than OS X or Linux. We subtract one because Windows counts it as the number
23 /// of bytes in a path C string including the terminating NUL but we only count 23 /// of bytes in a path C string including the terminating NUL but we only count
24 /// characters here. 24 /// characters here.
25 /// 25 ///
26 /// We use this limit on all platforms for consistency. 26 /// We use this limit on all platforms for consistency.
27 /// 27 ///
28 /// [MAX_PATH]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa38313 0(v=vs.85).aspx 28 /// [MAX_PATH]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa38313 0(v=vs.85).aspx
29 const _pathMax = 260 - 1; 29 const _pathMax = 260 - 1;
30 30
31 main() { 31 main() {
32 initConfig();
33
34 integration('archives and uploads a package with more files than can fit on ' 32 integration('archives and uploads a package with more files than can fit on '
35 'the command line', () { 33 'the command line', () {
36 d.validPackage.create(); 34 d.validPackage.create();
37 35
38 var argMax; 36 var argMax;
39 if (Platform.isWindows) { 37 if (Platform.isWindows) {
40 // On Windows, the maximum argument list length is 8^5 bytes. 38 // On Windows, the maximum argument list length is 8^5 bytes.
41 argMax = math.pow(8, 5); 39 argMax = math.pow(8, 5);
42 } else { 40 } else {
43 // On POSIX, the maximum argument list length can be retrieved 41 // On POSIX, the maximum argument list length can be retrieved
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return new shelf.Response.ok(JSON.encode({ 87 return new shelf.Response.ok(JSON.encode({
90 'success': {'message': 'Package test_pkg 1.0.0 uploaded!'} 88 'success': {'message': 'Package test_pkg 1.0.0 uploaded!'}
91 })); 89 }));
92 }); 90 });
93 91
94 pub.stdout.expect(startsWith('Uploading...')); 92 pub.stdout.expect(startsWith('Uploading...'));
95 pub.stdout.expect('Package test_pkg 1.0.0 uploaded!'); 93 pub.stdout.expect('Package test_pkg 1.0.0 uploaded!');
96 pub.shouldExit(exit_codes.SUCCESS); 94 pub.shouldExit(exit_codes.SUCCESS);
97 }); 95 });
98 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698