OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'dart:io'; |
| 3 import 'package:path/path.dart' as path; |
| 4 import 'package:scheduled_test/scheduled_process.dart'; |
| 5 import 'package:scheduled_test/scheduled_test.dart'; |
| 6 import '../lib/src/exit_codes.dart' as exit_codes; |
| 7 import '../lib/src/sdk.dart' as sdk; |
| 8 import 'test_pub.dart'; |
| 9 main() { |
| 10 initConfig(); |
| 11 integration('parse the real SDK "version" file', () { |
| 12 var pubPath = path.join( |
| 13 sdk.rootDirectory, |
| 14 'bin', |
| 15 Platform.operatingSystem == "windows" ? "pub.bat" : "pub"); |
| 16 var pub = new ScheduledProcess.start(pubPath, ['version']); |
| 17 pub.stdout.expect(startsWith("Pub")); |
| 18 pub.shouldExit(exit_codes.SUCCESS); |
| 19 }); |
| 20 } |
OLD | NEW |