Commit graph

6374 commits

Author SHA1 Message Date
sgjesse@google.com 1cd5459f7b Add the ability to run tests with several sets of VM flags
The test-option VMOptions that can be placed in .dart test files can now be specified several times like this:

// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
// VMOptions=--short_socket_read --short_socket_write

For each time VMOptions is specified a seperate test will be bun with the specified flags.

Used this to run the tests that uses sockets with short read and writes. Fixed a number of bugs in both stream implementation and in tests revealed by this.

R=iposva@google.com, ngeoffray@google.com

Review URL: http://codereview.chromium.org//8226016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@388 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 10:14:31 +00:00
zundel@google.com 6bef774e19 Cleans up style problems in architecture.py and test_runner.py
Cleaning these up so I can merge in changes related to
including chromium tests into the mainline test.py.

Review URL: http://codereview.chromium.org//8234029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@365 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 14:12:10 +00:00
zundel@google.com 98c678891c Style cleanups for test.py
This reformats test.py to have consistent Python style.

Review URL: http://codereview.chromium.org//8223016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@353 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 22:44:53 +00:00
sigmund@google.com 3c48e145c4 get_drt: pin version number again until we fix bucket ACL
Review URL: http://codereview.chromium.org//8230019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@333 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 16:25:26 +00:00
sigmund@google.com 942935e195 get_drt.py: show warning, but do not fail if we can't download DumpRenderTree
Review URL: http://codereview.chromium.org//8220015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@318 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 22:39:22 +00:00
zundel@google.com 0322aafe87 Migrating guts of run.py to testing/architecture.py
simply moves the bulk for run.py into testing/architecure.py
and updates references.

Review URL: https://chromereviews.googleplex.com/3549014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@298 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 13:52:47 +00:00
dgrove@google.com e2b593358c pin version number of DumpRenderTree
TBR=vsm
Review URL: https://chromereviews.googleplex.com/3576016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@292 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 22:53:26 +00:00
zundel@google.com 4ccb7c5810 Add --enable-type-checks to allow certain resolution errors to be non-fatal
This is to match the  behavior outlined in Gilad's
"Optional Types in Dart" document.  Extra type checks are turned
on when --enable-type-checks is passed on the command line *or*
optimization mode is enabled in the compiler.

See also https://chromereviews.googleplex.com/3563014/

Review URL: https://chromereviews.googleplex.com/3561023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@275 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:11:10 +00:00
sigmund@google.com e6eb1f62a1 get_drt.py: fix to remove race with dartium bot during downloads
Review URL: https://chromereviews.googleplex.com/3561021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@256 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:06:22 +00:00
sigmund@google.com 05b0b0ba29 get_drt + client bots: fix google-storage source location for archives
Review URL: https://chromereviews.googleplex.com/3583012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@248 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:27:18 +00:00
sigmund@google.com 5c68f6de7c get_drt.py: remove extra printing
Review URL: https://chromereviews.googleplex.com/3558018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@243 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 17:49:37 +00:00
zundel@google.com d82c272940 Fix exception message in get_drt.py
Exception threw an exception when the command failed!

Review URL: https://chromereviews.googleplex.com/3559014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@229 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 15:31:49 +00:00
zundel@google.com e890f48264 Extend --optimize to include chromium/release
R=jbrosenberg@google.com

Review URL: https://chromereviews.googleplex.com/3559013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@196 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 07:26:06 +00:00
sigmund@google.com 3c6d685a05 Use new file names for downloading dartium archives.
Review URL: https://chromereviews.googleplex.com/3561012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@175 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 00:04:57 +00:00
sigmund@google.com 06ec980f3f get_drt.py: renamed from get_dartium, tries to get the latest DumpRenderTree
from the most recent archive location that the user has access to.

Review URL: https://chromereviews.googleplex.com/3532018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@157 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 21:43:51 +00:00
karlklose@google.com d95c89a2f4 Allow #import and #source in multi tests.
Review URL: https://chromereviews.googleplex.com/3511021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@119 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:13:03 +00:00
ngeoffray@google.com 84c81a082d Conditionnaly cleanup after running a command.
Review URL: https://chromereviews.googleplex.com/3546016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@111 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:04:54 +00:00
ngeoffray@google.com 61486c2267 Small clenaup in the python scripts to make sure all tests get their Cleanup method called.
Review URL: https://chromereviews.googleplex.com/3534013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@108 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:47:32 +00:00
srdjan@google.com 5dd35f18ae Fix crash in test.py when timing out.
Review URL: https://chromereviews.googleplex.com/3543017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@99 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:59:02 +00:00
ngeoffray@google.com c05cfb10c0 - Now that prefixes have been implemented, remove the trampoline hack for calling main in a browser test.
- Update some tests to define #library, as the #library is required by the dart blob we're emitting for testing in the browser
- Update language.status to reflect reality.
Review URL: https://chromereviews.googleplex.com/3522016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@94 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:11:49 +00:00
zundel@google.com 705be03363 Move BatchTester into a separate file.
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3521020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@52 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 16:50:50 +00:00
zundel@google.com 78d16cca6c Create a directory for python package, move 'testing' in there
Review URL: https://chromereviews.googleplex.com/3514028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 14:01:12 +00:00
ngeoffray@google.com a42380d3df Define runner before it is used. This allows running individual tests again:
./tools/test.py language/MyTest
Review URL: https://chromereviews.googleplex.com/3508023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 12:35:03 +00:00
dgrove@google.com 6b6b28e065 Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 05:34:19 +00:00