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

Unified Diff: sdk/lib/_internal/pub/test/build/can_specify_output_directory_test.dart

Issue 219333008: Allow configuring build directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix year. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698