Commit Graph

1865 Commits

Author SHA1 Message Date
hausner@google.com b9cf297c15 Initializing formals can't be optional parameters
Add new error message to VM compiler.
Remove all optional initializing formals from library
and tests.
Review URL: http://codereview.chromium.org//8619008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1755 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:09:54 +00:00
ager@google.com d77030bb36 Make Dart test scripts work for the VM on Windows.
Minor changes:
- Set system to win32 for test expectation files.
- Add the .exe executable postfix to binaries.
- Do the magic to figure out if a test crashed.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1748 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 15:29:27 +00:00
iposva@google.com ea500c9260 - Remove uses of the dart_bin binary.
Review URL: http://codereview.chromium.org//8597016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1725 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:50:35 +00:00
ager@google.com 9ef42b14d9 Various test script changes:
- Supply options to cctests and filter based on name.
- Add samples test suite.
- Minor cleanup in the scripts.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1703 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 15:12:01 +00:00
ager@google.com 40e896bf17 Fix timing of both dart and python test scripts.
The scripts (in particular the python one) were not counting all
of the setup code that is run before tests are started. The time
reported by the progress indicator now matches the time reported
by 'time test_script'.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1697 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 10:36:34 +00:00
ager@google.com 1a09eb8f6a Implement cc test suite and use it to run the VM tests.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1696 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 10:06:53 +00:00
iposva@google.com 372d425658 - Move generated_tests into the build output directory.
Review URL: http://codereview.chromium.org//8608004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1693 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 07:25:29 +00:00
ager@google.com 7808645ea4 Support stub-generator tests on the VM (which does not actually generate the stubs).
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1618 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 14:27:28 +00:00
ager@google.com 0bbe9566c6 Enable language and isolate tests using the dart test runner.
Refactor the test_config.dart files. Have a standard implementation
of a test suite that can be easily customized to cover all the
current suites.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1611 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 12:25:01 +00:00
ager@google.com fb9d29c514 Use the right command for dartc.
Tests running correctly now. The python script does some sort
of batch processing to speed up the test runs. None of that is
in the dart scripts yet.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1610 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 11:20:57 +00:00
ager@google.com 0b8097c578 Start extracting common test_config.dart functionality into a utility library.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1607 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 09:39:13 +00:00
ager@google.com 9acb066008 Dart test scripts: fix progress time indication.
Also, fix recursive configuration expansion (--mode=debug,release)
and allow test selection patterns in arbitrary position on the
command line and not just at the end (./tools/test.dart co19 -m release).

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1606 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 09:27:07 +00:00
ager@google.com 2b62a139f2 Enable co19 test suite on dart test scripts.
Updated the TestExpectations class to be able to deal with the
odd matching rules that are used for co19.

Currently we are using a lot of memory when running all of these
tests. I have optimized the test expectation part quite a bit.
The thing that seems bad now if the processing of all the lines
of every simple test to find DartOptions. We need to work on that.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1563 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 12:27:06 +00:00
efortuna@google.com bb83c227fe Made changes to the test architecture so that we can run frameworks other than
just Firefox from WebDriver.
Review URL: http://codereview.chromium.org//8566021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1555 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 00:42:18 +00:00
ager@google.com bd670664bb Implement more progress modes.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1509 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 15:52:36 +00:00
ager@google.com 211968eb7a Implement test selection.
Make it very simple and flexible. I don't think we need to make
it more restrictive than this.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1502 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 11:28:54 +00:00
sigmund@google.com e2b35683cc Minor code clean-ups addressing Nicolas suggestions
Review URL: http://codereview.chromium.org//8491052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1478 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 22:20:27 +00:00
ager@google.com 1191c37e56 Enable frog testing components.
Respect timeout command-line option.

Use option names with underscores understood by all components.

Improve compact progress report using stdout access.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1460 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 14:08:07 +00:00
whesse@google.com 636a5d6df7 tools/test.dart: Implement --checked option.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1455 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 11:44:06 +00:00
ager@google.com dde03ed8ad Fix build: use strings for booleans in status expression evaluation.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1454 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:57:39 +00:00
ager@google.com 10092daafd Parse command-line options into a list of test configurations.
This allows to run multiple variants at once:

./tools/test.dart --mode=debug,release --component=most

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1453 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:53:18 +00:00
ager@google.com 6b73da258c Implement 'compact' progress indicator.
At this point it is not that compact because print always prints
a newline and therefore we cannot reuse the same line in the output.
I will update that when we have access to stdout stream.

Removed asserts that fail when test script is run from runtime
directory.

Removed debugging output from status file parsing.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1452 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 10:24:02 +00:00
ager@google.com 5d40fb2a9f Fix type mismatch errors. Environments do not only contain strings.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1451 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:37:08 +00:00
ager@google.com 187e1cd2ab Use the configuration for determining the binary to use for testing.
So far supporting components vm and dartc.

Also, use the actual configuration for status file parsing.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1450 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 09:27:51 +00:00
antonm@google.com f8eb259b8d Defer further starting timeout watch dog.
Recent changed made DOMContentLoaded event to fire before than
Dart application is ready to run.  Therefore the safest bet
timeout watchdog is to wait until the document is fully loaded.

This reverts commit 162f93c5b4def3f2cac2aa1b00fa1d510d1e9940.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1447 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:23:05 +00:00
sigmund@google.com e024570e01 Adding frogium: a frog-chromium architecture that runs tests in chromium that
were compiled with frog.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1440 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:07:02 +00:00
efortuna@google.com 87b9e83041 Adding in-browser correctness testing via selenium.
Do not, I repeat, DO NOT enable these to run by default on the buildbot yet
(Currently they do not run by default). I am checking this in in its raw state
so that my fellow frog developers can start making fixes to frog for running in
other browsers. You can run these test by running: 

Install WebDriver stuff by following these instructions:
http://code.google.com/p/selenium/wiki/PythonBindings

Then start the server:
java -jar selenium-server-standalone-2.11.0.jar -browserSessionReuse

../tools/test.py --component=webdriver --report --timeout=10 --progress=color
--mode=release language

Frog generates code that fails in Firefox, but passes in Chrome (for example). We
need to fix this eventually, but it shouldn't cause our entire tree to turn red.
Note also that to run selenium, you will need to install the selenium python
library, and ChromeDriver.
Review URL: http://codereview.chromium.org//8469016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1436 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 01:24:50 +00:00
whesse@google.com 02b001fbaf tools/test.dart: Read test expectations from the status file, and pass them to the test runner.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1407 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 17:13:45 +00:00
ager@google.com a427f80ccc Getting started on options parsing.
Support the most common options. So far only the --tasks/-j option
is actually used.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1405 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 16:14:06 +00:00
ahe@google.com 40608f24e7 Create class AST nodes.
Review URL: http://codereview.chromium.org//8508016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1399 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:43:28 +00:00
floitsch@google.com d0dedfdffc Throw and a small fix to If.
If fix is slightly hacky, but should go away with our refactoring.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1398 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-10 14:07:06 +00:00
whesse@google.com 55ad9b0e7b Make tools/test.dart read standalone.status status file when running tests.
BUG=
TEST=tools/test.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1358 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-09 15:50:39 +00:00
ager@google.com f789c40d85 Correct the sign of exit codes for the process library.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1356 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-09 15:37:40 +00:00
whesse@google.com 70da4ae316 Add asynchronous test suite runner to Dart rewrite of test scripts.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1316 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 15:21:47 +00:00
ngeoffray@google.com d92b93178d Fix unbound variable error in python code. This fixes the browser tests breakage.
Review URL: http://codereview.chromium.org//8502015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1304 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 12:39:54 +00:00
ngeoffray@google.com 8c9a64166f Add a leg_only test suite, and make sure to run it in our presubmit script.
Review URL: http://codereview.chromium.org//8496009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1303 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-08 12:34:10 +00:00
whesse@google.com a417e377dc Add test_runner.dart to Dart version of test scripts. Include TestRunnerTest unit test.
BUG=
TEST=standalone/TestRunnerTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1245 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-07 12:11:07 +00:00
ngeoffray@google.com c93b5a40ea Integrate leg as a component in test.py. Also update presubmit script to run tests with leg.
Review URL: http://codereview.chromium.org//8462004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1187 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 10:29:48 +00:00
ngeoffray@google.com 3dedc560f5 - Update tests to make sure they recerefence invalid code.
- Improve multi test case configuration by adding a 'continued' tag.
Review URL: http://codereview.chromium.org//8437091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1153 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 16:58:54 +00:00
ngeoffray@google.com 5d6af6602a Bleeding edge change to get frog integrated into the testing infrastructure.
Review URL: http://codereview.chromium.org//8372095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1140 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-03 12:15:55 +00:00
whesse@google.com ddf5026893 Dart rewrite of test scripts: do not fail test on missing status file.
BUG=
TEST=standalone/StatusFileParserTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1077 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 10:35:02 +00:00
whesse@google.com f9a5add2da Add status_file_parser.dart library, and tests for it, to the Dart rewrite of the test suite runner.
BUG=
TEST=standalone/StatusFileParserTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1076 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 10:17:35 +00:00
ahe@google.com 8846883321 Update to co19 revision 15.
Review URL: http://codereview.chromium.org//8430028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1004 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:29:33 +00:00
ngeoffray@google.com 33ec29bf11 Add a new variable environment for testing, to replace the misusage of 'arch'.
Review URL: http://codereview.chromium.org//8408002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@993 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 09:12:55 +00:00
floitsch@google.com 92e7c3981f Increase timeout. Hopefully this reduces the flakiness on the build-server.
Start timeout only when document is loaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@964 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:50:08 +00:00
floitsch@google.com 61b7e92560 Tell the testing-framework that we started the tests.
Review URL: http://codereview.chromium.org//8430005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@956 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 17:00:10 +00:00
whesse@google.com 41b8b4a875 Fix type error in tools/testing/dart/status_expression.dart.
BUG=
TEST=standalone/StatusExpressionTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@887 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 11:47:36 +00:00
whesse@google.com 205ddb3ad1 Start adding files for Dart version of test script test.py.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@885 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 11:09:48 +00:00
zundel@google.com dc5bf070e1 Fixes problem with running test.py --arch dartc --mode release,debug
The --optimize flag was set for all tests at the top level if
release mode was specified.  I pushed this logic down into the
be a part of generating run command for each individual test case.

BUG=5408215

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@768 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 18:12:08 +00:00
ahe@google.com 80e2bb4bd2 Filter-out dart:... sources
Review URL: http://codereview.chromium.org//8329026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@548 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 10:05:03 +00:00