Commit Graph

1233 Commits

Author SHA1 Message Date
johnniwinther@google.com 19d27b1fe0 Pub fix for Windows
BUG=5859

Review URL: https://codereview.chromium.org//11170003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13676 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 08:09:51 +00:00
ricow@google.com f7b22d4cbb Download packages to temp dir inside system cache.
This fixes an issue where the rename will fail if your system temp directory is
on a different volume from your user directory (and thus your pub cache).
Review URL: https://codereview.chromium.org//11151035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13674 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 06:18:49 +00:00
rnystrom@google.com e6fbcf3426 Add prefix.
Review URL: https://codereview.chromium.org//11142028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13671 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 22:52:38 +00:00
rnystrom@google.com ba0802348c Sleep before moving directory on Windows.
Gives 7zip more time to finish extracting before we access the
directory.

BUG=

Review URL: https://codereview.chromium.org//11151030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13670 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 22:43:15 +00:00
rnystrom@google.com 4091f4ed21 Put a nasty sleep() on Windows.
We get "file in use" errors between downloading and extracting archives, so sleep for a bit.

BUG=

Review URL: https://codereview.chromium.org//11146022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13668 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 21:27:59 +00:00
rnystrom@google.com 1bb574612e Download to a temp dir and rename on success.
This prevents ghost packages ending up in your pub cache if a
download fails. Also added some more output during installation so
you can see what's happening.

BUG=

Review URL: https://codereview.chromium.org//11151026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13666 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 20:59:56 +00:00
efortuna@google.com 5c4c062a2f Delete temporary profile files for Opera as well as Firefox.
Review URL: https://codereview.chromium.org//11137007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13640 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-13 00:04:23 +00:00
gram@google.com 403bbf44b0 Added the ability for testrunner to start the HTTP server with a random port and communicate that port to the tests via a 'testState' map in unittest.
Review URL: https://codereview.chromium.org//11103015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13507 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 23:47:56 +00:00
gram@google.com 29611d7d98 Added ability to have custom test HTTP server handlers in the test directories.
Review URL: https://codereview.chromium.org//11093033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13490 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-10 19:48:18 +00:00
rnystrom@google.com fc169ee8b2 "Reverting 13451"
Review URL: https://codereview.chromium.org//11066091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13452 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 23:32:21 +00:00
rnystrom@google.com 87f5622b44 Print out the working directory when git fails.
Also (sigh) re-enabling Windows again.

Review URL: https://codereview.chromium.org//11087039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13451 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 23:26:43 +00:00
rnystrom@google.com e9ff2669b8 "Reverting 13440"
Review URL: https://codereview.chromium.org//11099019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13441 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 21:02:26 +00:00
rnystrom@google.com 8fe2700fd8 Try enabling Git on Windows again.
Review URL: https://codereview.chromium.org//11098025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13440 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 20:55:46 +00:00
rnystrom@google.com 20788ffcba Show git command that failed.
Review URL: https://codereview.chromium.org//11066088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13439 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 20:54:05 +00:00
rnystrom@google.com 7707b979c4 "Reverting 13434"
Review URL: https://codereview.chromium.org//11028097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13436 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 20:01:58 +00:00
rnystrom@google.com 68fdad3715 Enable Git on Windows, again.
Now with slightly better error reporting so I can try to see what's going on.

Review URL: https://codereview.chromium.org//11066084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13434 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 19:56:40 +00:00
rnystrom@google.com 182ae3e26c Update pub to use new import syntax.
Review URL: https://codereview.chromium.org//11093012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13391 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 01:25:43 +00:00
rnystrom@google.com 1ac8be8aa3 Better pub integration test error reporting.
Always includes the stderr when a test failures. Shows errors in stdout, stderr
and the exit code all at once. Displays differences in expected output better.

Review URL: https://codereview.chromium.org//11091015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13390 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 01:11:52 +00:00
rnystrom@google.com eb33df709b Include stderr on git failure.
Also moves the git stuff out of io into its own library.

Review URL: https://codereview.chromium.org//11066066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13388 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 00:56:57 +00:00
rnystrom@google.com 9de6ef8dee "Reverting 13373"
Review URL: https://codereview.chromium.org//11091010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13374 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 21:02:31 +00:00
rnystrom@google.com d6bef3ac7a Enable pub git tests on Windows.
Review URL: https://codereview.chromium.org//11091008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13373 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 20:51:45 +00:00
ricow@google.com 1bde0bc06d Update buildbot.py to support jsshell builders.
Review URL: https://codereview.chromium.org//11029048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13342 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-08 05:49:13 +00:00
rnystrom@google.com 6a2cac8d2a Create destination directory before git cloning into it.
BUG=

Review URL: https://codereview.chromium.org//11076004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13334 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:13:14 +00:00
gram@google.com 2602f8c28e Change imports etc to new syntax.
Fix issues wutrh handling console messages from DRT when using --list-tests and --list-groups.
Review URL: https://codereview.chromium.org//11033042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13327 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 22:13:12 +00:00
rnystrom@google.com 57a43b6fd5 Spit pub tests into smaller suites.
Windows is slow and our large tests suites time out.

Review URL: https://codereview.chromium.org//11035066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13315 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 20:01:50 +00:00
rnystrom@google.com f9b1655f8b Pass in DART_SDK from batch file on Windows.
Review URL: https://codereview.chromium.org//11027049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13269 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 23:29:59 +00:00
johnniwinther@google.com 7cb95a6fc7 Members and comments inherited in dartdoc.
BUG=1488,3830,1156,5081

Review URL: https://codereview.chromium.org//10985085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13225 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-04 12:46:45 +00:00
rnystrom@google.com 3baa35cb36 Don't warn on the absence of "lib" in the root package.
Review URL: https://codereview.chromium.org//11043026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13193 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 20:04:19 +00:00
johnniwinther@google.com 699c54c68d Make Mirror.simpleName unique.
Review URL: https://codereview.chromium.org//11014022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13167 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 09:36:58 +00:00
gram@google.com 2eff2baa75 New testrunner that runs the test pipleine in an isolate.
Review URL: https://codereview.chromium.org//10977069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13155 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-03 00:02:04 +00:00
rnystrom@google.com 9486bb1c4e Revert "Tentatively enable pub hosted tests on Windows."
This reverts commit c078ff25b48d5904eea0358f322fc87799fc90ed.

Review URL: https://codereview.chromium.org//11031028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13125 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 16:29:24 +00:00
rnystrom@google.com da067c50b1 Tentatively enable pub hosted tests on Windows.
Review URL: https://codereview.chromium.org//11031020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13123 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 16:16:58 +00:00
rnystrom@google.com 1b52caacc5 Extract archives by writing .tar.gz to temp file on Windows.
Review URL: https://codereview.chromium.org//11031015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13096 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-02 01:34:30 +00:00
dgrove@google.com 9f1afef68c Update the way that pub determines DART_SDK on macos/linux.
Review URL: https://codereview.chromium.org//10977083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13037 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 18:21:28 +00:00
dgrove@google.com 71a2d4d913 Second attempt to fix issue 3402. It turns out that we can't use
$_, because that contains the original script name (in the case
test.py, $_ contains .../test.py when this script is executed.

Using $0 will work fine, as pwd -P will give the absolute
physical path of the dart script.
Review URL: https://codereview.chromium.org//10981070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13030 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 17:18:40 +00:00
dgrove@google.com c2d8dd6e68 revert change 13025.
Review URL: https://codereview.chromium.org//10990112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13027 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 16:26:53 +00:00
dgrove@google.com ba55e7aa71 Fix issue 3402 . The initial suggestion of using readlink doesn't
work on MacOS, so I went this slightly more obtuse solution, which
does work on MacOS and Linux.
Review URL: https://codereview.chromium.org//10985068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13025 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-28 16:18:33 +00:00
dgrove@google.com 5418ac38e6 Pass DART_SDK into pub for Linux/MacOS.
Review URL: https://codereview.chromium.org//10977063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12985 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 22:28:52 +00:00
lrn@google.com 37197c2553 Stop using the Hashable interface.
All objects have a hashCode method, so there is no need for a Hashable
interface.
The interface itself is retained for at least two weeks, to give time for
code to remove uses of it.

Review URL: https://codereview.chromium.org//10993059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12955 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 13:07:54 +00:00
ager@google.com 7977b42215 Update all occurrences of raw strings.
R=hausner@google.com,kasperl@google.com
BUG=

Review URL: https://codereview.chromium.org//10977027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12893 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 06:01:23 +00:00
rnystrom@google.com def86f3256 Convert raw strings in pub (and apidoc) to new syntax.
Review URL: https://codereview.chromium.org//10981031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12890 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 01:23:18 +00:00
sra@google.com ec120ee230 Update peg parser tests to r'' strings
Review URL: https://codereview.chromium.org//10991031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12889 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 01:02:21 +00:00
lrn@google.com a1faa6f135 Change IllegalArgumentException to ArgumentError.
Review URL: https://codereview.chromium.org//10989013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
nweiz@google.com 85b348a987 Allow circular dependencies on the root source in Pub.
BUG=5300

Review URL: https://codereview.chromium.org//10949026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12817 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 22:55:42 +00:00
rnystrom@google.com 88e331a795 Support dependencies in SDK packages.
Review URL: https://codereview.chromium.org//10947050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12816 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 22:49:05 +00:00
rnystrom@google.com e8fe8a636c Beat on hosted repo support on Windows a bit more.
The hosted tests are passing locally, and I've done pub install
from pub.dartlang.org successfully, but there are still some
intermittent errors, so I'm not enabling the hosted tests on the
bots just yet.

Review URL: https://codereview.chromium.org//10970025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12677 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:14:49 +00:00
gram@google.com d4c7f79ef7 Added support for running an HTTP server during the test and being able to serve up static files. Later this will be extended to being able to write tests on both ends of the connection, but this is a first step.
Review URL: https://codereview.chromium.org//10966020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12674 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:46:01 +00:00
dgrove@google.com 18a5503698 A variety of cleanups to bring our samples up-to-date.
Delete web components sample - there are new samples out
on the web components github project.
Review URL: https://codereview.chromium.org//10964030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12671 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 00:40:14 +00:00
gram@google.com eeef25322f Support for pixel layout tests.
Review URL: https://codereview.chromium.org//10909240

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12655 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 20:08:35 +00:00
johnniwinther@google.com 770f7eb2d6 Dartdoc supports package directory.
BUG=4634,5218

Review URL: https://codereview.chromium.org//10950025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12623 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 08:56:48 +00:00