| Index: sdk/lib/_internal/pub/test/build/can_specify_output_directory_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_lib_test.dart b/sdk/lib/_internal/pub/test/build/can_specify_output_directory_test.dart
|
| similarity index 50%
|
| copy from sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_lib_test.dart
|
| copy to sdk/lib/_internal/pub/test/build/can_specify_output_directory_test.dart
|
| index cc543f427a12d4f11be676d824918955367e033b..5c793b301176b23c84622292b6ec4e453fd1c066 100644
|
| --- a/sdk/lib/_internal/pub/test/build/ignores_entrypoints_in_lib_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/build/can_specify_output_directory_test.dart
|
| @@ -1,32 +1,34 @@
|
| -// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 'package:path/path.dart' as path;
|
| +
|
| import '../descriptor.dart' as d;
|
| import '../test_pub.dart';
|
|
|
| main() {
|
| initConfig();
|
| -
|
| - integration("ignores entrypoint Dart files in lib/", () {
|
| + integration("can specify the output directory to build into", () {
|
| d.dir(appPath, [
|
| d.appPubspec(),
|
| - d.dir('lib', [
|
| - d.file('file.dart', 'void main() => print("hello");'),
|
| - ]),
|
| d.dir('web', [
|
| - d.file('index.html', 'html'),
|
| + d.file('file.txt', 'web')
|
| ])
|
| ]).create();
|
|
|
| - schedulePub(args: ["build", "--all"],
|
| - output: new RegExp(r'Built 1 file to "build".'));
|
| + var outDir = path.join("out", "dir");
|
| + schedulePub(args: ["build", "-o", outDir],
|
| + output: new RegExp('Built 1 file to "$outDir".'));
|
|
|
| d.dir(appPath, [
|
| - d.dir('build', [
|
| - d.nothing('lib'),
|
| - d.dir('web', [
|
| - d.file('index.html', 'html')
|
| + d.dir("out", [
|
| + d.dir("dir", [
|
| + d.dir("web", [
|
| + d.file("file.txt", "web")
|
| + ]),
|
| ])
|
| ])
|
| ]).validate();
|
|
|