| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library pub_tests; | |
| 6 | |
| 7 import 'dart:io'; | 5 import 'dart:io'; |
| 8 | 6 |
| 9 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 10 import 'package:pub/src/exit_codes.dart' as exit_codes; | 8 import 'package:pub/src/exit_codes.dart' as exit_codes; |
| 11 import 'package:pub/src/sdk.dart' as sdk; | 9 import 'package:pub/src/sdk.dart' as sdk; |
| 12 import 'package:scheduled_test/scheduled_process.dart'; | 10 import 'package:scheduled_test/scheduled_process.dart'; |
| 13 import 'package:scheduled_test/scheduled_test.dart'; | 11 import 'package:scheduled_test/scheduled_test.dart'; |
| 14 | 12 |
| 15 import 'test_pub.dart'; | 13 import 'test_pub.dart'; |
| 16 | 14 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 integration('parse the real SDK "version" file', () { | 26 integration('parse the real SDK "version" file', () { |
| 29 // Get the path to the pub binary in the SDK. | 27 // Get the path to the pub binary in the SDK. |
| 30 var pubPath = path.join(sdk.rootDirectory, 'bin', | 28 var pubPath = path.join(sdk.rootDirectory, 'bin', |
| 31 Platform.operatingSystem == "windows" ? "pub.bat" : "pub"); | 29 Platform.operatingSystem == "windows" ? "pub.bat" : "pub"); |
| 32 | 30 |
| 33 var pub = new ScheduledProcess.start(pubPath, ['version']); | 31 var pub = new ScheduledProcess.start(pubPath, ['version']); |
| 34 pub.stdout.expect(startsWith("Pub")); | 32 pub.stdout.expect(startsWith("Pub")); |
| 35 pub.shouldExit(exit_codes.SUCCESS); | 33 pub.shouldExit(exit_codes.SUCCESS); |
| 36 }); | 34 }); |
| 37 } | 35 } |
| OLD | NEW |