kustermann@google.com
ecf1cdeeb8
Fixed utf8 encoding/decoding issues in the testing scripts
...
Review URL: https://codereview.chromium.org//11883033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17057 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 10:59:24 +00:00
whesse@google.com
747f79ce1f
Upload new Dart binaries and re-enable unit tests for test scripts.
...
BUG=
Review URL: https://codereview.chromium.org//11884029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17031 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:45:42 +00:00
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
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
ajohnsen@google.com
ab69873a42
Make RegExp constructor non-const.
...
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.
BUG=
Review URL: https://codereview.chromium.org//11369210
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com
ec9fee9858
"Reverting 14829-14832"
...
BUG=
Review URL: https://codereview.chromium.org//11312203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com
8dc3edd7ce
Make RegExp's constructor non-const.
...
BUG=
Review URL: https://codereview.chromium.org//11410033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
rnystrom@google.com
f30fb024ce
The goal here is to rearrange StandardTestSuite so that it's possible override some of its behavior for running package tests while still keeping the rest of the behavior.
...
This patch is just the refactoring. I'll do the actual pub stuff in a separate patch.
Review URL: https://codereview.chromium.org//11275217
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14757 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 20:56:59 +00:00
ager@google.com
7f04c40b2d
Land update to tools directory with new binaries.
...
BUG=
Review URL: https://codereview.chromium.org//11343008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14176 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 09:21:14 +00:00
ahe@google.com
1c518f6169
Separate compile-time and runtime errors.
...
Review URL: https://codereview.chromium.org//10977054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12964 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-27 14:31:05 +00:00
ahe@google.com
a14563d93e
Use typedefs in test.dart.
...
Review URL: https://codereview.chromium.org//10986047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12908 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 13:33:11 +00:00
whesse@google.com
28a43a2280
Add test for native extensions that copies the extension to a test directory and runs it.
...
BUG=dart:1817
TEST=standalone/io/test_extension_test
Review URL: https://chromiumcodereview.appspot.com//10699006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9247 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 12:45:28 +00:00
whesse@google.com
ee9d6f8844
Test scripts: Replace a guard that was optimistically removed, fixing a break on Windows.
...
BUG=
TEST=tools/test.py
Review URL: https://chromiumcodereview.appspot.com//10697018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9205 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 16:15:08 +00:00
whesse@google.com
5673b2b301
Add Path library and change test scripts, combined change.
...
Use Path for the filename and TestInformation.filename throughout test scripts.
Change test_suite.dart to use Path class.
Fix bug in join
Address comments.
Address comments
Address comments on Path library.
Add path library to dart:io.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10584014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9203 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 15:39:28 +00:00
whesse@google.com
a4e88c8b3e
Remove string concatenation with + from all Dart files in tools directory.
...
Fix whitespace errors and rename shadowed variable in ddbg.dart.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10387232
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7897 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 08:51:38 +00:00
ager@google.com
e6b2635059
Change Platform members to getters instead of methods.
...
R=sgjesse@google.com
BUG=dartbug.com/1668
TEST=
Review URL: https://chromiumcodereview.appspot.com//10351011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7282 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 13:16:33 +00:00
sigmund@google.com
d6c2cca796
test rename overhaul: step 6 - isolate tests
...
Review URL: https://chromiumcodereview.appspot.com//10247004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7088 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 17:06:51 +00:00
ager@google.com
37b82247ac
Remove need to instantiate Platform and make methods static.
...
This will require an update of the stable test binary. I will upload
a new build when done with the review process.
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10021048
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6682 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-18 11:39:16 +00:00
zundel@google.com
02858c27a9
Base test case of a multi-test now insists no static type warnings
...
There were 5 multitests that need adjustment after this change. 4 of them
were trivial changes, so I went ahead and fixed them.
http://code.google.com/p/dart/issues/detail?id=2107
Review URL: https://chromiumcodereview.appspot.com//9664065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5350 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 19:41:07 +00:00
whesse@google.com
bb385c8b50
Fix some type and logical errors in test.dart, found by the Dart editor.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9662063
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5334 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 16:46:45 +00:00
zundel@google.com
b9fc839bcc
Change string used to annotate static type issues to 'static type warning' in multitest
...
Gilad requested we update the annotation used in multitests to reflect
the terminology used in the Dart specification.
Review URL: https://chromiumcodereview.appspot.com//9649015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5233 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 14:01:03 +00:00
whesse@google.com
744ca3cf46
Fix whitespace, long lines, and "boolean".
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9632019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5225 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:46:01 +00:00
zundel@google.com
28595b885e
Multitest annotations now accept multiple annotations on one line.
...
Many times a test case involves a static type warning for the
static analyzer and a dynamic type error for the VM or dart
compiled to JS, but not always. Thus, this change introduces
the annotations as allowing multiple outcomes for a test.
Review URL: https://chromiumcodereview.appspot.com//9621015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5191 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 19:33:22 +00:00
zundel@google.com
0789695885
Re-apply "Enable use of #import stmts containing relative paths in Dart multitests"
...
Commit r4858 broke browser tests because of recursive directory handling.
I've removed the reference to the new recursive directory creation routine
from the 'createOutputDirectory()' method. I don't understand the current
directory structure - it might be a bug, but my attempt to fix it
leaves browser tests in a broken state.
Review URL: https://chromiumcodereview.appspot.com//9583016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4954 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-05 15:07:37 +00:00
zundel@google.com
ab603367c0
Update test.dart for detection output of machine formatted errors
...
This change causes the 'dartc' tests to be more sensitive to the difference
between a static type error and a compilation error. Instead of
relying on the return value from the test being 0 or non zero, the
code now turns on '--error_format machine' and checks type
error level 'ERROR' or 'WARNING' and the type of error for
'STATIC_TYPE' if there is a static type error. A new annotation
format adapted from multitests is introduced for standard test cases:
int foo = "hello"; /// static type error
The above annotation means that a static type error is expected.
Currently enforcement is very lenient. There must be at least as
many STATIC_TYPE error messages as there are '/// static type error'
annotations (and no ERROR level messages.)
Review URL: https://chromiumcodereview.appspot.com//9559007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4895 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 18:50:09 +00:00
jmesserly@google.com
2190c0a7d0
Revert "Enable use of #import stmts containing relative paths in Dart multitests" This change broke all of the browser tests, including DumpRenderTree.
...
I'm not exactly sure what went wrong--perhaps something in the copying functions, because the breakage seems to affect all tests.
Review URL: https://chromiumcodereview.appspot.com//9584004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4865 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 10:20:23 +00:00
zundel@google.com
b4d7df19cc
Enable use of #import stmts containing relative paths in Dart multitests
...
This will alow tests like Prefix22NegativeTest an Prefix23Negative
test to be re-written as multitests.
Review URL: https://chromiumcodereview.appspot.com//9565001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4858 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 08:36:47 +00:00
zundel@google.com
f152409954
Update ConstructorNamedArgumentTest to use the 'runtime-error' directive
...
See 10.13.2 in the spec (Binding Actuals to Formals)
http://code.google.com/p/dart/issues/detail?id=1872
Review URL: https://chromiumcodereview.appspot.com//9477013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4678 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 12:47:22 +00:00
ngeoffray@google.com
8ab300cd91
Remove unused parameter.
...
Review URL: https://chromiumcodereview.appspot.com//9463047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4605 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 11:57:41 +00:00
ngeoffray@google.com
06ce0a4528
Use the component information when the test is being scheduled instead of when it's being created.
...
Review URL: https://chromiumcodereview.appspot.com//9466008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4572 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 14:09:21 +00:00
ngeoffray@google.com
740d3b7419
Sicne dartc has no backend anymore, a runtime error in a multitest does *not* make it a negative test.
...
Review URL: https://chromiumcodereview.appspot.com//9442015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4531 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 13:57:07 +00:00
ager@google.com
4efd1f98fa
Split dart:builtin into dart:builtin and dart:io.
...
- dart:builtin is implicitly imported.
- dart:io has to be explicitly imported.
I will update the macos and windows stable test binaries when we
are happy with the solution.
R=iposva@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9254026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3537 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 07:36:59 +00:00
whesse@google.com
ffc864b671
Fix test.dart multitest generated_test directory on Windows.
...
Also revert debugging change r3242.
BUG=
TEST=cd runtime; ../tools/testing/bin/windows/dart.exe ../tools/test.dart -component=vm
Review URL: http://codereview.chromium.org//9162005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3292 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-13 14:35:41 +00:00
whesse@google.com
44e292a27d
Add warning messages to test.dart to help debug vm tests on Windows.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9190045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3242 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-12 16:16:22 +00:00
whesse@google.com
84fc2e6305
Use test.dart for dartc buildbot. Ensure that test.dart creates the build directory.
...
BUG=
TEST=rm -rf out; tools/test.dart -cdartium
Review URL: http://codereview.chromium.org//9155001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3100 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 15:47:43 +00:00
whesse@google.com
9ae78036dc
Fix static type warnings in test.dart.
...
BUG=
TEST=dartc tools/test.dart ; frog tools/test.dart
Review URL: http://codereview.chromium.org//9109012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2997 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 14:08:15 +00:00
ager@google.com
d5696e2026
Change the behavior of open on files to not truncate by default
...
when opening for writing.
We have an explicit truncate method in the API and truncating
the file is a bit hostile to users who want to modify or append
to an existing file. :-)
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9034005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2941 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 12:23:01 +00:00
whesse@google.com
ff7c583340
Use blocking file access in tools/test.dart for multitest creation.
...
Speeds up test.dart by a factor of 2, and test.dart --list by a factor of 6.
Test.dart is now only 15% slower than test.py.
BUG=
TEST=tools/test.dart
Review URL: http://codereview.chromium.org//9003017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2889 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 11:47:22 +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
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
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
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
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
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