| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library pub_tests; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
| 10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 // Pub uses NTFS junction points to create links in the packages directory. | 13 // Pub uses NTFS junction points to create links in the packages directory. |
| 14 // These (unlike the symlinks that are supported in Vista and later) do not | 14 // These (unlike the symlinks that are supported in Vista and later) do not |
| 15 // support relative paths. So this test, by design, will not pass on Windows. | 15 // support relative paths. So this test, by design, will not pass on Windows. |
| 16 // So just skip it. | 16 // So just skip it. |
| 17 if (Platform.operatingSystem == "windows") return; | 17 if (Platform.operatingSystem == "windows") return; |
| 18 | 18 |
| 19 initConfig(); | |
| 20 integration('uses a relative symlink for the self link', () { | 19 integration('uses a relative symlink for the self link', () { |
| 21 d.dir(appPath, [ | 20 d.dir(appPath, [ |
| 22 d.appPubspec(), | 21 d.appPubspec(), |
| 23 d.libDir('foo') | 22 d.libDir('foo') |
| 24 ]).create(); | 23 ]).create(); |
| 25 | 24 |
| 26 pubGet(); | 25 pubGet(); |
| 27 | 26 |
| 28 scheduleRename(appPath, "moved"); | 27 scheduleRename(appPath, "moved"); |
| 29 | 28 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 51 d.dir("bin", [ | 50 d.dir("bin", [ |
| 52 d.dir("packages", [ | 51 d.dir("packages", [ |
| 53 d.dir("myapp", [ | 52 d.dir("myapp", [ |
| 54 d.file('foo.dart', 'main() => "foo";') | 53 d.file('foo.dart', 'main() => "foo";') |
| 55 ]) | 54 ]) |
| 56 ]) | 55 ]) |
| 57 ]) | 56 ]) |
| 58 ]).validate(); | 57 ]).validate(); |
| 59 }); | 58 }); |
| 60 } | 59 } |
| OLD | NEW |