| Index: utils/tests/pub/pub_install_sdk_test.dart
|
| diff --git a/utils/tests/pub/pub_install_sdk_test.dart b/utils/tests/pub/pub_install_sdk_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7b903d178ed7e0245bfaf0234af166c2d44f3590
|
| --- /dev/null
|
| +++ b/utils/tests/pub/pub_install_sdk_test.dart
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +#library('pub_tests');
|
| +
|
| +#import('dart:io');
|
| +
|
| +#import('test_pub.dart');
|
| +#import('../../../pkg/unittest/unittest.dart');
|
| +
|
| +main() {
|
| + test('checks out a package from the SDK', () {
|
| + dir(sdkPath, [
|
| + file('revision', '1234'),
|
| + dir('pkg', [packageDir("foo", "0.0.1234")])
|
| + ]).scheduleCreate();
|
| +
|
| + dir(appPath, [
|
| + pubspec({"dependencies": {"foo": null}})
|
| + ]).scheduleCreate();
|
| +
|
| + schedulePub(args: ['install'],
|
| + output: '''
|
| + Dependencies installed!
|
| + ''');
|
| +
|
| + packagesDir({"foo": "0.0.1234"}).scheduleValidate();
|
| +
|
| + run();
|
| + });
|
| +}
|
|
|