f053f356ee
This is prep work for SDK constraints. It moves the SDK version-related code out of SdkSource (which will go away at some point) into its own library. I also removed the need for the DART_SDK env variable. It will still be used if set (which the tests need), but if not set, Pub will locate the SDK. Clean up a few static warnings. Review URL: https://codereview.chromium.org//11871028 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17433 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
669 B
Dart
24 lines
669 B
Dart
// 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';
|
|
|
|
main() {
|
|
integration('installs a package from a pub server', () {
|
|
servePackages([package("foo", "1.2.3")]);
|
|
|
|
appDir([dependency("foo", "1.2.3")]).scheduleCreate();
|
|
|
|
schedulePub(args: ['install'],
|
|
output: new RegExp("Dependencies installed!\$"));
|
|
|
|
cacheDir({"foo": "1.2.3"}).scheduleValidate();
|
|
packagesDir({"foo": "1.2.3"}).scheduleValidate();
|
|
});
|
|
}
|