OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import '../../../../../pkg/pathos/lib/path.dart' as path; | 5 import '../../../../../pkg/pathos/lib/path.dart' as path; |
6 | 6 |
7 import '../../test_pub.dart'; | 7 import '../../test_pub.dart'; |
8 | 8 |
9 main() { | 9 main() { |
10 initConfig(); | 10 initConfig(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 schedulePub(args: ["install"], | 121 schedulePub(args: ["install"], |
122 output: new RegExp(r"Dependencies installed!$")); | 122 output: new RegExp(r"Dependencies installed!$")); |
123 | 123 |
124 dir(packagesPath, [ | 124 dir(packagesPath, [ |
125 dir("foo", [file("foo.dart", 'main() => "foo";')]), | 125 dir("foo", [file("foo.dart", 'main() => "foo";')]), |
126 dir("bar", [file("bar.dart", 'main() => "bar";')]), | 126 dir("bar", [file("bar.dart", 'main() => "bar";')]), |
127 dir("shared", [file("shared.dart", 'main() => "shared";')]) | 127 dir("shared", [file("shared.dart", 'main() => "shared";')]) |
128 ]).scheduleValidate(); | 128 ]).scheduleValidate(); |
129 }); | 129 }); |
130 | |
131 integration("shared dependency with symlink", () { | |
132 dir("shared", [ | |
133 libDir("shared"), | |
134 libPubspec("shared", "0.0.1") | |
135 ]).scheduleCreate(); | |
136 | |
137 dir("foo", [ | |
138 libDir("foo"), | |
139 libPubspec("foo", "0.0.1", deps: [ | |
140 {"path": "../shared"} | |
141 ]) | |
142 ]).scheduleCreate(); | |
143 | |
144 dir("bar", [ | |
145 libDir("bar"), | |
146 libPubspec("bar", "0.0.1", deps: [ | |
147 {"path": "../link/shared"} | |
148 ]) | |
149 ]).scheduleCreate(); | |
150 | |
151 dir(appPath, [ | |
152 pubspec({ | |
153 "name": "myapp", | |
154 "dependencies": { | |
155 "foo": {"path": "../foo"}, | |
156 "bar": {"path": "../bar"} | |
157 } | |
158 }) | |
159 ]).scheduleCreate(); | |
160 | |
161 dir("link").scheduleCreate(); | |
162 scheduleSymlink("shared", path.join("link", "shared")); | |
163 | |
164 schedulePub(args: ["install"], | |
165 output: new RegExp(r"Dependencies installed!$")); | |
166 | |
167 dir(packagesPath, [ | |
168 dir("foo", [file("foo.dart", 'main() => "foo";')]), | |
169 dir("bar", [file("bar.dart", 'main() => "bar";')]), | |
170 dir("shared", [file("shared.dart", 'main() => "shared";')]) | |
171 ]).scheduleValidate(); | |
172 }); | |
173 } | 130 } |
OLD | NEW |