Commit Graph

1865 Commits

Author SHA1 Message Date
ager@google.com 47a7c9bcdb Undo change that converted exit code 255 to -1.
It seems that most systems do not perform that conversion and it
could therefore be confusing.

Simplify the crash handling in the test scripts accordingly.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2620 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 10:06:35 +00:00
ager@google.com fb053d8126 Update test.dart to use the leg_only option for the leg component.
Take the new *-leg.status status files into account.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2583 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 15:07:29 +00:00
ager@google.com 1aaa58f803 Make the repeating argument to timers optional.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2577 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 12:34:12 +00:00
ahe@google.com 258010fddb Always use --leg_only option.
Review URL: http://codereview.chromium.org//8957008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2567 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 10:07:32 +00:00
efortuna@google.com ec53d1d253 Don't treat warnings as errors when compiling minfrog items.
TBR=sigmund,
Review URL: http://codereview.chromium.org//8972006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2495 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 00:31:32 +00:00
efortuna@google.com 9a525e35c6 Final touches for running smoketests. On buildbot, run
python create_graph.py -v -b -l
Review URL: http://codereview.chromium.org//8890091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2491 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:24:46 +00:00
whesse@google.com cc9ae85f55 Fix read handler bug in tools/test.dart: Replace dataHandler with lineHandler if using readLine.
BUG=dart:802
TEST=language/Unary2Test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2422 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 11:24:13 +00:00
efortuna@google.com 011093a066 Add Safari to the list of browsers we test on a regular basis.
Review URL: http://codereview.chromium.org//8920009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2393 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 18:56:41 +00:00
efortuna@google.com b9ea49523e Added barebones framework to get appengine to host our data.
Review URL: http://codereview.chromium.org//8883033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2316 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 16:57:11 +00:00
whesse@google.com 7f1edc16cb Enable Dartium tests in tools/test.dart.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2312 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 15:23:09 +00:00
sgjesse@google.com 8f1b82458f Improve the event handling for string input stream
1. The string input stream now calls the data or line handler if there
   is still data available after returning from the data or line
   handler. These callbacks are scheduled on the event loop.

2. The reading of data is now throtteld so that calls to read or
   readLine will not eagerly try to read from the wrapped input
   stream. After each call to read the data handler is installed if
   no more buffered data is available. Also when the data handler
   is called the data handler on the wrapped input stream is
   un-installed if no more data is required for the current data or
   line handler.

One side effect of this change is that just reading from an input
stream obtained from a file is no longer possible. One will have to
set up a data handler callback of some kind before any calls to read
will return data. We can of cause change this to allow synchronous
usage of an input stream obtained from a file (maybe with an optional
argument to openInputStream).

Fixed a related throtteling issue with the chunked input stream.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2310 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 14:08:47 +00:00
ager@google.com a0d46e99f6 Cache the tests across configurations in the test scripts.
Only generate the generated tests once and run them for each
configuration.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2308 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 13:24:30 +00:00
ager@google.com 64ca753193 Split File into File and RandomAccessFile.
Update all users of the API.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2272 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:37:17 +00:00
efortuna@google.com 7578faca4b Modification to the order that classes are printed out so that the prototype
class is always printed out before the inheriting class. Adjustments to make the
benchmarks run in IE9.
Review URL: http://codereview.chromium.org//8828008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2271 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:27:12 +00:00
ager@google.com 01b6853960 Only use dartc batch processing for the dartc component.
Running frog tests would actually spin up java processes. :-\

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2247 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 14:08:08 +00:00
ager@google.com 45a4f01a78 Fix progress indicator typo.
TBR

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2243 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 12:22:15 +00:00
ager@google.com ad170cc5e9 Get rid of the spinner in progress indicators.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2239 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 11:20:21 +00:00
ager@google.com fd97081f49 Add --time option to dart test scripts.
This is useful for finding new tests that start taking a long time.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2183 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 16:33:16 +00:00
ager@google.com 54de7bd01c Make test scripts work on Windows again.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2177 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 14:41:27 +00:00
ager@google.com 0854b17c4b Add suite name to display name. This makes it easier to find failing tests.
Without the suite name it is hard to figure out how to run the failing test
again because you don't know which suite to run.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2176 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 13:44:02 +00:00
ager@google.com efc76278db Support --special-command test option. As a special case support --valgrind option.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2174 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 13:23:57 +00:00
ager@google.com 5023793165 Correctly handle the --arch argument to dart test scripts.
Support a --verbose/-v flag that prints all commands run.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2169 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:48:09 +00:00
vsm@google.com b08be1f8e6 Enable test invoker to provide path to frog for frogium test.
Review URL: http://codereview.chromium.org//8824013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2154 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:43:45 +00:00
vsm@google.com d6ffcb539d Enable test script to specify different DRT binary
Review URL: http://codereview.chromium.org//8817025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2144 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:39:34 +00:00
sigmund@google.com fec44ca6f4 bot: delay cleanup of temp test files in case we need to retry.
Review URL: http://codereview.chromium.org//8827006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2139 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 20:33:13 +00:00
sigmund@google.com 8a5ebd6af5 make test.py more reselient to flakyness in xvfb-run + DumpRenderTree
Review URL: http://codereview.chromium.org//8818021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2136 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 18:43:39 +00:00
ager@google.com 9c4bb86594 Support actual stub generation in the dart test scripts.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2120 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 13:39:43 +00:00
efortuna@google.com d9e4e72576 Small adjustment to run smoketests on buildbots.
Review URL: http://codereview.chromium.org//8805015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2096 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 22:09:50 +00:00
ager@google.com 456d63c6ab Add support for client/dartc compilation only tests.
These tests do not fit in that nicely. They have an interesting
way of finding out what are test cases. They use the .dart
suffix in the status file.

Implement directory createTempSync.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2067 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 13:34:12 +00:00
ager@google.com 17d97944a1 Do not show percentages when we don't know what they are in test progress indication.
Print the --report output as soon as we can.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2064 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 08:04:57 +00:00
efortuna@google.com a3ac094f6e Tweaking perf testing script and adding smoketests to run on buildbot.
Review URL: http://codereview.chromium.org//8775058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2046 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-03 01:34:13 +00:00
ager@google.com 9c8fa42417 Add color indication to progress.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2025 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 15:22:48 +00:00
ager@google.com e90eb35c57 Fix multitest failure/pass marking.
Only dynamic type error tests should be marked as negative in
checked mode.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2022 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 14:33:19 +00:00
ager@google.com e2a6cd4eab Make multi tests work with DartC.
The static type error annotations
are in the multi-tests so that dartc can verify with the
--fatal-type-errors flag that they are correctly caugth.

Enqueue all tests from one configuration before moving on to the next to not start an overwhelming amount of directory listers.

Simplify the setup of dartc batch runners. Simply restart
with the right binary if there is a mismatch. With the new enqueueing switching happens at the right time and we can have as many dartc batch processors as we have cores.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2018 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 13:46:28 +00:00
whesse@google.com 71e98e9d4a tools/test.dart: Add summary report of the number of tests with each expectation.
BUG=
TEST=tools/test.dart --report

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2017 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 13:29:26 +00:00
sgjesse@google.com 775438288d Add line handler to string stream
This adds the line handler to the string stream to provide callbacks
when a line is known to be available.

This change also refactors parts of the string stream to avoid
converting decoded char codes to a string before checking for line
break sequences. With this change the string decoder tracks all line
breaks.

There is still room for improvement as e.g. the coping of the list of
char codes when reading lines can be avoided by using anoher offset.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2016 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 11:59:02 +00:00
ager@google.com 3bf558018e Allow single-dash options to be specified without a space before value.
./tools/test.dart -mdebug,release

Make the patterns given to the test script more restrictive. A pattern
has to specify the test suite as the first component. The rest is used
as a pattern on all tests within that suite:

./tools/test.dart -mrelease leg co19/leg

will run the leg tests and the co19 tests that contains the substring
'leg' somewhere in the full path name of the test.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2014 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 11:50:05 +00:00
ager@google.com 2995930544 Allow varying case in the expected outcome (Pass, PASS).
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1981 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:18:30 +00:00
ager@google.com d337ced66c Fork test scripts to support special runtime checkout.
Deal with a couple of other issues in tests scripts also
caused by having to support a separate runtime checkout.
Review URL: http://codereview.chromium.org//8773006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1977 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:02:24 +00:00
whesse@google.com 0fd45f103e tools/test.dart: Add synchronization, so the process queue knows when all multitests are done.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1974 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 12:11:40 +00:00
whesse@google.com 90237ddd0b Dart tests: Create generated tests in build directory in test.dart.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1973 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 12:01:44 +00:00
ager@google.com 06a0bba5a6 Add the frog test suites to the dart test scripts.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1969 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 10:45:28 +00:00
whesse@google.com 2529c010d0 tools/test.dart: Add multitest support to Dart implementation of test runner.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1919 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 10:18:09 +00:00
efortuna@google.com 4abe74e1e4 Adding the performance and browser benchmarking script.
Review URL: http://codereview.chromium.org//8670013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1914 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 02:57:08 +00:00
whesse@google.com 9d834082ce Test script tools/test.dart: fix type error in test_suite.dart.
BUG=
TEST=dart --enable-type-checks tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1894 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 15:12:59 +00:00
ager@google.com 38c6bf8659 Support batch running of dartc tests.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1890 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 12:38:14 +00:00
sgjesse@google.com da1ecfb1ab Fix handling of VMOptions= in multi tests
R=kasperl@google.com

BUG=dart:483

TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1837 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-24 11:37:05 +00:00
hausner@google.com 45fff0023d Undo some of the initializing formal change 1755
I didn't undo those initializing formas that are initializing a private field.
Review URL: http://codereview.chromium.org//8677027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1824 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 23:44:14 +00:00
ager@google.com e0651019fc Perform better activity tracking in test scripts.
Let the process queue be the controller that has full information about pending activities.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1783 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 10:40:04 +00:00
ager@google.com 5d7ee32c6e Update test scripts to deal with current VM behavior on optional constructor arguments.
Find binaries in tests based on the platform we are running on.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1779 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 10:22:48 +00:00