Commit Graph

500 Commits

Author SHA1 Message Date
nweiz@google.com fffc9979fe Add a Pub source for pub.dartlang.org.
Review URL: https://chromiumcodereview.appspot.com//10628016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9090 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 22:52:32 +00:00
rnystrom@google.com 745ac9e752 Update pub.status file to fix build.
Review URL: https://chromiumcodereview.appspot.com//10642002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8990 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:48:21 +00:00
iposva@google.com 0fd25118b9 - Move the Timer interface to the dart:isolate library so that it
is accessible from both client and standalone program.
- Enable a way for the embedder to provide the implementation of
  the Timer interface.
- Update tests.
Review URL: https://chromiumcodereview.appspot.com//10532123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8987 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:17:21 +00:00
rnystrom@google.com bfe7935124 First pass at version constraint solver.
It does:
- Walk dependency graphs.
- Unify shared constraints.
- Go through Source to get dependency and version information.
- Handle the fact that everything is async.
- Find best versions that match all constraints.
- Error out if it can't find a match or gets stuck in a loop.
- Have an OK amount of tests.

It does not:
- Handle dependencies from different sources.
- Integrate with the rest of pub.
- Implement an actual "pub update" command.
- Do very much to minimize server traffic.
  (Though it does cache pubspecs it has requested.)

Review URL: https://chromiumcodereview.appspot.com//10540151

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8985 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:50:57 +00:00
scheglov@google.com c88461077a Issue 3528. Additional checks for 'case expressions'
http://code.google.com/p/dart/issues/detail?id=3528

R=brianwilkerson@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10540114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8573 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 20:21:34 +00:00
rnystrom@google.com 9636d43bf4 "pubspec" -> "pubspec.yaml".
Review URL: https://chromiumcodereview.appspot.com//10544041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8405 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 18:32:16 +00:00
rnystrom@google.com c7c597108e Update pub to new expect API.
Review URL: https://chromiumcodereview.appspot.com//10541039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8367 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 22:41:58 +00:00
rnystrom@google.com 76b5e0ab98 Skip lock file pub tests on all but the VM.
Review URL: https://chromiumcodereview.appspot.com//10536038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8364 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 21:13:24 +00:00
rnystrom@google.com 8a87698968 Start adding support for lock files.
Lock files can be parsed (from strings) with tests.

Review URL: https://chromiumcodereview.appspot.com//10542015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8362 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:48:41 +00:00
ngeoffray@google.com 2f1bfc25ba Update status files now that issue 2615 is fixed.
Review URL: https://chromiumcodereview.appspot.com//10440085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8090 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 09:02:13 +00:00
ngeoffray@google.com 00441ed147 Get firefox green.
Review URL: https://chromiumcodereview.appspot.com//10440070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8047 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 10:31:16 +00:00
ngeoffray@google.com a574d1e7b9 Get opera green.
Review URL: https://chromiumcodereview.appspot.com//10454052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8040 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:15:16 +00:00
rnystrom@google.com e4ce65ae8f Get rid of #source in pub.
Review URL: https://chromiumcodereview.appspot.com//10442023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7967 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 23:29:18 +00:00
nweiz@google.com d56327e507 Re-enable Yaml tests on dart2js and dartc.
Also fix a couple warnings in dart2js.

Review URL: https://chromiumcodereview.appspot.com//10444016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7966 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 22:58:45 +00:00
rnystrom@google.com b0885dcd7a Make pub handle missing git more gracefully.
- Put in place the basics for reporting errors to the user.
- If you try to install a git package without git installed, you will get
  a nice error.
- Don't run git-related pub tests locally if the user doesn't have git
  installed.

Review URL: https://chromiumcodereview.appspot.com//10421026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7959 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 18:33:13 +00:00
iposva@google.com ac48b04674 - Do not depend on git being installed on a machine.
Review URL: https://chromiumcodereview.appspot.com//10383273

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7829 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-21 22:44:17 +00:00
rnystrom@google.com ded047e15e Disable all pub tests on non-VM configs.
Review URL: https://chromiumcodereview.appspot.com//10409041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7781 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:57:57 +00:00
rnystrom@google.com 20c48b237f Get codebase ready for actually supporting versioning.
Review URL: https://chromiumcodereview.appspot.com//10399076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7776 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:14:18 +00:00
nweiz@google.com 16f047132d Support a much larger subset of YAML.
With this change, the only parts of the syntax we don't parse are directives,
tags, and anchors.

Review URL: https://chromiumcodereview.appspot.com//10377186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7771 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 21:56:15 +00:00
rnystrom@google.com 3f50f7621f Add base Version class to start support versioning in pub.
Review URL: https://chromiumcodereview.appspot.com//10383203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7701 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-16 21:39:01 +00:00
nweiz@google.com a8038715b0 Add a Pub source that checks packages out from Git.
This was submitted as r7623, but was then reverted due to test failures. The new
version doesn't depend on Git's output.

Review URL: https://chromiumcodereview.appspot.com//10392089

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7629 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 21:36:55 +00:00
nweiz@google.com cd3261497d Reverting 7623
TBR

Review URL: https://chromiumcodereview.appspot.com//10388123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7626 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 20:29:38 +00:00
nweiz@google.com 5dfb6baea5 Add a Pub source that checks packages out from Git.
Review URL: https://chromiumcodereview.appspot.com//10386021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7623 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 19:53:49 +00:00
nweiz@google.com fe0d59f7bc Refactor the pub tests.
The goal of this refactoring is to make it easier to flexibly set up the
filesystem before Pub runs and validate it afterwards. To do so, the pub tests
are made more modular by moving creation and validation out of the monolithic
testPub method. The declarative philosophy of testPub is maintained.

This CL also includes several changes to the unit test library. Most notably, it
causes stack traces to be displayed for errors that are thrown during tests.

This was first submitted as r7566. That was rolled back due to a test error that
is fixed in this CL.

Review URL: https://chromiumcodereview.appspot.com//10382137

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7573 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 23:10:49 +00:00
nweiz@google.com 53aee9dc2b Reverting 7566, which is causing build breakage.
TBR

Review URL: https://chromiumcodereview.appspot.com//10356133

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7567 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 20:08:47 +00:00
nweiz@google.com f5a8afe0db Refactor the pub tests.
The goal of this refactoring is to make it easier to flexibly set up the
filesystem before Pub runs and validate it afterwards. To do so, the pub tests
are made more modular by moving creation and validation out of the monolithic
testPub method. The declarative philosophy of testPub is maintained.

This CL also includes several changes to the unit test library. Most notably, it
causes stack traces to be displayed for errors that are thrown during tests.

Review URL: https://chromiumcodereview.appspot.com//10382094

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7566 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 19:34:17 +00:00
ager@google.com 5fb75d3952 Change dart:io to use Future for one-shot operations.
This appears to be what a lot of our users are doing and it is the
style used in our other libraries.

Noteworthy changes:

- File and Directory objects are now immutable.

- Directory.list returns an active lister object.

- Write operations on files return futures and the
  onNoPendingWrites handler is gone. The same
  functionality is there by using 'then' on the
  future returned from the last write operation.

- Process starting is now done with static methods:
  -- Process.start yields an InteractiveProcess.
  -- Process.run yields a Future<ProcessResult>

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10392023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7529 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 06:09:42 +00:00
nweiz@google.com 3085912d01 Add support for pub install.
This CL does several things:

* Adds explicit infrastructure for package sources.
* Adds the Dart SDK as such a source.
* Adds an explicit class for managing the packages/ directory (AppCache, as
  opposed to SystemCache).
* Adds an "install" command that installs to packages/, backed up by the system
  cache.

Review URL: https://chromiumcodereview.appspot.com//10340005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7398 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 19:58:32 +00:00
ager@google.com e6b2635059 Change Platform members to getters instead of methods.
R=sgjesse@google.com
BUG=dartbug.com/1668
TEST=

Review URL: https://chromiumcodereview.appspot.com//10351011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7282 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:16:33 +00:00
nweiz@google.com 3e83522697 Move Yaml into utils/pub.
Review URL: https://chromiumcodereview.appspot.com//10339009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7264 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 23:37:17 +00:00
rnystrom@google.com 1fc4fff43d Fix checked mode bugs in pub (and try enabling on bots again).
Review URL: https://chromiumcodereview.appspot.com//10253015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7107 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 22:08:46 +00:00
rnystrom@google.com 5fbc8b3603 Skip pub tests.
Review URL: https://chromiumcodereview.appspot.com//10255010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7093 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 17:40:00 +00:00
rnystrom@google.com ead0c23db5 Disable broken pub tests for now.
Review URL: https://chromiumcodereview.appspot.com//10259001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7090 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 17:12:47 +00:00
rnystrom@google.com f7a1480c4e Fix a couple of minor issues and try to resolve #2740.
Review URL: https://chromiumcodereview.appspot.com//10230016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7087 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 16:00:13 +00:00
ricow@google.com 7d097ce080 Disable pub/pub_test on the vm, it is failing when running from the top level directory.
Bug here:
dartbug.com/2740
Review URL: https://chromiumcodereview.appspot.com//10222022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7012 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 12:19:02 +00:00
rnystrom@google.com 36371653f4 Refactor command code and add support for --help and --version.
Review URL: https://chromiumcodereview.appspot.com//10214006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6985 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 00:45:24 +00:00
sigmund@google.com f1d72ac4f9 rename _tests.dart to _test.dart
Review URL: https://chromiumcodereview.appspot.com//10154010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6984 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 00:23:45 +00:00
nweiz@google.com 35b7a697bb Use YAML as the format for the pubspec file.
Review URL: https://chromiumcodereview.appspot.com//10174029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6982 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 23:09:32 +00:00
rnystrom@google.com 8c913b10fc First pass at "pub update" implementation.
This will create a "packages" directory next to the current
package's entrypoint and populate it with symlinks to packages
in the pub package cache. Transitive dependencies are handled.

Review URL: https://chromiumcodereview.appspot.com//10207018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6979 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 22:18:15 +00:00
sigmund@google.com ba197a8cfa test rename overhaul: step 2 css tests.
Review URL: https://chromiumcodereview.appspot.com//10209016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6961 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 18:23:21 +00:00
sigmund@google.com a54a1c8355 remove tests from code that was recently deleted.
Review URL: https://chromiumcodereview.appspot.com//10207032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6956 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 17:07:48 +00:00
sigmund@google.com cedda7fc36 fixes css tests, now they can also run in browsers too.
Review URL: https://chromiumcodereview.appspot.com//10170008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6857 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 18:39:11 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
sigmund@google.com d25fe08396 test rename overhaul: step 1 peg.
The overhaul consists of:
- use _tests.dart notation, instead of xTest.dart
- use the directory setup (no more test_config, yay!)

Review URL: https://chromiumcodereview.appspot.com//10168010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6815 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 22:57:03 +00:00
rnystrom@google.com 9c5e4a2ec2 Start implementing pub object model. Rudimentary package cache class, and a simple pub command to list its contents.
Review URL: https://chromiumcodereview.appspot.com//10091014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6779 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 00:00:05 +00:00
ager@google.com 37b82247ac Remove need to instantiate Platform and make methods static.
This will require an update of the stable test binary. I will upload
a new build when done with the review process.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10021048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6682 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 11:39:16 +00:00
sigmund@google.com 18d120acdc update status of a couple tests: some configurations are run, but should be
skipped.

Review URL: https://chromiumcodereview.appspot.com//10020060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6481 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 21:50:23 +00:00
sigmund@google.com 656e98150b unittest step2: bye bye to multiple entrypoints for unittest
Review URL: https://chromiumcodereview.appspot.com//10037027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6480 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 21:38:25 +00:00
sigmund@google.com cca364ce76 change status files to make it possible to run test.py -c frog,dart2js -r none.
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.

Review URL: https://chromiumcodereview.appspot.com//10042001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
terry@google.com e5f4921ecb Fixed bb break.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9949019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6235 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-05 18:04:20 +00:00