Commit Graph

728 Commits

Author SHA1 Message Date
lrn@google.com bfd9b37484 Undo changes to tools-scripts.
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16956 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:56:36 +00:00
lrn@google.com 4868ee2110 Remove Futures class, move methods to Future.
Optimize Future.forEach, Future.delay.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
kustermann@google.com 59a12b72c9 Migration of testing scripts in tools/ to libv2
Review URL: https://codereview.chromium.org//11817012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16867 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 18:31:28 +00:00
ahe@google.com b4fe3203b1 Add a hashCode to Command so reporting timings is 400 faster.
Review URL: https://codereview.chromium.org//11824028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16859 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 15:38:20 +00:00
kustermann@google.com 02d33cbafe Print exception information in run_selenium.py.
Review URL: https://codereview.chromium.org//11826023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16845 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 10:55:35 +00:00
vsm@google.com 8eacd88652 Create an sdk package to host dart.js
Devon: I think we'd need corresponding editor changes.  The editor could use either pub or just replace the path (as mentioned in the bug).

BUG=6723

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:35:22 +00:00
ager@google.com db4503ea37 Do not pass VMOptions to dartc
R=kustermann@google.com,sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16719 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 15:59:21 +00:00
kustermann@google.com ee3e000d63 Revert changes in tools/testing, since we use the checked-in version for the testing scripts
Review URL: https://codereview.chromium.org//11783010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16688 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:43:36 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
efortuna@google.com 274ac61643 Reverting everything because package root + dartium is causing serious problems.
DART_PACKAGE_ROOT environment variable is set for drt, but not dartium, and is location is problematic with respect to serving the files in the dartium checkout.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16678 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 05:20:06 +00:00
efortuna@google.com 06ea3385ff Fix dartc testing.
TBR=sra,

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16675 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 03:41:15 +00:00
efortuna@google.com 1d3b0c4b3b Add cross-origin test with credentials. I modified the test framework slightly
as well to Enable Cross-origin requests while testing from local files.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16671 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 02:43:31 +00:00
rnystrom@google.com 95cb97091e Don't run the "pkg" tests on the dart binary in the SDK.
The VM bots are apparently running the pkg tests again, and don't
build the SDK.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16655 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 22:48:04 +00:00
rnystrom@google.com c450776e7e Make the "pub" and "pkg" test suites run Dart from the built SDK.
I'm not using a test.dart command-line argument for this because
I want to enforce that they *always* run out of the built SDK
directory. This will be needed in a later patch so that the pub
test code can find the SDK directory easily relative to the
currently running Dart executable.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16652 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 22:30:11 +00:00
blois@google.com d14fcf38fd Adding test for validating that formdata is sent.
BUG=7152

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16524 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-27 22:28:00 +00:00
kustermann@google.com 33df53e3b1 Created a bug for the 'cannot open display' issue and made it independend of display number
TBR=ricow

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16442 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 14:27:32 +00:00
kustermann@google.com a4c24dae42 Ignore exit-code of DRT and only trust stdout
Review URL: https://codereview.chromium.org//11660007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16441 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 13:34:09 +00:00
kustermann@google.com 062bfe5c3d Removed debugging information in the testing infrastructure and added a warning
Review URL: https://codereview.chromium.org//11668005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16434 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 10:33:13 +00:00
rnystrom@google.com c5c575290e Don't use relativeTo() since it barfs on some arguments.
Review URL: https://codereview.chromium.org//11645057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16411 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 01:06:48 +00:00
rnystrom@google.com bfb9f427ee Convert unittest to use "package:" imports.
Use consistent path to "unittest" in browser test wrapper.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16408 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 23:51:22 +00:00
rnystrom@google.com a76646fafa Revert "Convert unittest to use "package:" imports."
This reverts commit 6f77df43a437af7076ee154bc06ade261d6e32a0.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16407 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 22:41:02 +00:00
rnystrom@google.com 58c56eacd1 Convert unittest to use "package:" imports.
Review URL: https://codereview.chromium.org//11644055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16403 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 21:53:37 +00:00
efortuna@google.com 5db3ffe35d Adjust test logging output so what we can separate logging failure explanations from actual test failures.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16387 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 18:57:11 +00:00
kustermann@google.com 52a7dd6a9d Added debugging information in the testing infrastructure.
We've experienced some flakyness on the build bots and want to find the reason
for that. Therefore we print some debugging information in case a browser test
fails.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16315 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 12:25:09 +00:00
kustermann@google.com e8323c2d0b Fixed bug in r16247: variable naming issues
Review URL: https://codereview.chromium.org//11573061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16249 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 10:15:32 +00:00
kustermann@google.com a18994679b Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection
Currently drt-trampoline.py is used to call DRT. Unfortunately this causes
problems on Windows: If drt-trampoline.py times out, it is killed by test.dart.
But drt-trampoline.py has no way of installing a signal handler on Windows which
would kill the actual DumpRenderTree process. So sometimes we're left with one
hanging DumpRenderTree process on the Windows buildbots.

This change removes the drt-trampoline.py indirection and calls DRT directly
from test.dart.

Committed: https://code.google.com/p/dart/source/detail?r=16214

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16247 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-18 09:52:54 +00:00
kustermann@google.com 0be2cb3fa5 Revert "Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection"
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16215 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 17:21:48 +00:00
kustermann@google.com 8071e88618 Call DumpRenderTree directly from test.dart instead of using the drt-trampoline.py indirection
Currently drt-trampoline.py is used to call DRT. Unfortunately this causes
problems on Windows: If drt-trampoline.py times out, it is killed by test.dart.
But drt-trampoline.py has no way of installing a signal handler on Windows which
would kill the actual DumpRenderTree process. So sometimes we're left with one
hanging DumpRenderTree process on the Windows buildbots.

This change removes the drt-trampoline.py indirection and calls DRT directly
from test.dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16214 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 16:27:11 +00:00
kustermann@google.com e87e99992d Enable the "skip command compilation if output is already up-to-date" feature in dart2dart
Review URL: https://codereview.chromium.org//11593008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16209 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 14:26:41 +00:00
sigmund@google.com 14de8ec666 Avoid timeouts when DRT fails to find a file.
Review URL: https://codereview.chromium.org//11565018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16177 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 19:15:00 +00:00
kustermann@google.com 62c83a4443 Moved the testing scripts to the new import/library/part syntax
Review URL: https://codereview.chromium.org//11575028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16163 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 14:19:01 +00:00
kustermann@google.com c01e393aa5 Added support for skipping redundant dart2js compilations.
Currently, the buildbots run tests on every commit. But often neither
the tests nor the dart2js compiler did change (e.g. on status file updates).

The added code will check if the dependencies (i.e. files listed in
test.js.deps) or the dart2js snapshot did change. If not, the output
of the previous dart2js compilation is up to date and the compilation
step is skipped.
The skipping of redundant dart2js compilations works only if the '--use-sdk'
option was specified (because in this case the dart2js snapshot is used).

Committed: https://code.google.com/p/dart/source/detail?r=15080

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16158 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-14 11:56:00 +00:00
ager@google.com ce0c5e350d Revert drt-trampoline.py
That was completely broken. :)

However, the worst problem is that it doesn't actually
work for the problem that we have.

R=kustermann@google.com,ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16115 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 14:50:17 +00:00
ager@google.com 873746a904 Handle timeouts in drt-trampoline on Windows.
This will make timeout of drt tests work on Windows. Killing
dtr-trampoline did not kill DumpRenderTree on Windows.

R=kustermann@google.com,ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16110 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-13 14:14:08 +00:00
whesse@google.com ca260ce79e Reduce debug printing from test script when testing --build-directory option.
Cleanup fix to mkdirRecursive.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15686 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 14:25:04 +00:00
whesse@google.com 54a7829c3f Fix test scripts to work with an absolute build directory path on Windows.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15683 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 11:01:42 +00:00
antonm@google.com 86ce280398 Another try.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15675 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 01:49:59 +00:00
antonm@google.com 25f9de94b0 Some more diagnostics.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15672 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 01:16:44 +00:00
antonm@google.com b46a5b2b41 Properly create paths.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15671 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-04 00:11:49 +00:00
antonm@google.com 80ce8347ac Use Directory, not a string.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15669 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 23:20:26 +00:00
antonm@google.com 7526c02dab Fix string concatenation.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15659 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 21:46:52 +00:00
antonm@google.com a229522c74 Hacky fix for paths with drive names on Windows.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15654 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 20:52:41 +00:00
antonm@google.com 0522fc0442 Add some diagnostics to understand what goes on.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15651 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 20:23:27 +00:00
antonm@google.com ac192a1c52 Add some diagnostics to understand what goes on.
TBR=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15650 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 19:19:45 +00:00
whesse@google.com 2b929563ed Fix test.dart's --build-directory option to accept absolute paths.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15632 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 12:35:00 +00:00
ricow@google.com 3f9aaca941 Don't run pub and pkg as default, explicitly add these to the test command for running
Review URL: https://codereview.chromium.org//11428084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15520 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 15:22:04 +00:00
ahe@google.com c17990a886 Call dart2js directly from sdk/bin.
Review URL: https://codereview.chromium.org//11299206

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15512 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 12:15:29 +00:00
ricow@google.com a799a7e402 Add --checked or --minified to test directory name when generating output.
Currently the compiled output will simply be overwritten if you run
non-checked mode followed by checked mode.
Review URL: https://codereview.chromium.org//11280085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15503 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 09:12:10 +00:00
ahe@google.com dd76d416c2 Make the PackageRoot test file option relative to the test file.
BUG=http://dartbug.com/6817

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15387 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 12:30:30 +00:00
ahe@google.com 438a21c698 Allow passing in command-line options to co19_test.dart.
Review URL: https://codereview.chromium.org//11299161

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15372 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 09:14:08 +00:00