OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'dart:io'; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../test_pub.dart'; |
| 5 main() { |
| 6 if (Platform.operatingSystem == "windows") return; |
| 7 initConfig(); |
| 8 integration('uses a relative symlink for the self link', () { |
| 9 d.dir(appPath, [d.appPubspec(), d.libDir('foo')]).create(); |
| 10 pubGet(); |
| 11 scheduleRename(appPath, "moved"); |
| 12 d.dir( |
| 13 "moved", |
| 14 [ |
| 15 d.dir( |
| 16 "packages", |
| 17 [d.dir("myapp", [d.file('foo.dart', 'main() => "foo";')])])]).va
lidate(); |
| 18 }); |
| 19 integration('uses a relative symlink for secondary packages directory', () { |
| 20 d.dir(appPath, [d.appPubspec(), d.libDir('foo'), d.dir("bin")]).create(); |
| 21 pubGet(); |
| 22 scheduleRename(appPath, "moved"); |
| 23 d.dir( |
| 24 "moved", |
| 25 [ |
| 26 d.dir( |
| 27 "bin", |
| 28 [ |
| 29 d.dir( |
| 30 "packages", |
| 31 [d.dir("myapp", [d.file('foo.dart', 'main() => "foo";')]
)])])]).validate(); |
| 32 }); |
| 33 } |
OLD | NEW |