Commit Graph

66 Commits

Author SHA1 Message Date
Jacob Richman bf2b545150 Revert "Update all tests"
This reverts commit ce76e9c30beaf9a193d3677b88c20a1ebb3fae8c.
2017-03-21 16:33:18 -07:00
Jacob Richman 3c7353d987 Update all tests
Support //# multitests for better dartfmt compatibility and fewer multitest false positives

All files under tests were manually updated with

find . -iregex '.*\.dart$' -print0 | xargs -0 perl -pi -e 's/(\S\s+)\/\/\/ /$1\/\/# /'

For now both old and new styles are allowed to accommodate CO19 tests.

R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2765693002 .
2017-03-21 12:39:28 -07:00
Sigmund Cherem 884f0acf8d Allow to specify analysis-options to the analyzer step in package:testing, and
use it in pkg/front_end

BUG=
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2697603009 .
2017-02-16 10:38:51 -08:00
Peter von der Ahé 43932d0bb6 Compute default value of -j option based on number of processors.
R=dmitryolsh@google.com, karlklose@google.com

Review-Url: https://codereview.chromium.org/2698583004 .
2017-02-15 13:51:09 +01:00
Peter von der Ahé cca7c0ea6d Fix problem in previous CL: analyzer was alway run, and nothing else.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2697513004 .
2017-02-14 13:33:37 +01:00
Peter von der Ahé 0d55f1b8fc Fix two problems with the analyzer suite:
* Don't complain about no tests configured when only analyzing.

* Run analyzer on all tests, no only those that have been selected for running.

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2693893004 .
2017-02-14 12:02:06 +01:00
Peter von der Ahé cb10fc984b Add a new kind of suite to ease test.dart integration.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2693893002 .
2017-02-14 10:45:44 +01:00
Zach Anderson 8a9a98073f [dart:io] flush() stdin before close()ing
Calls to close() on an IOSink do not imply that writes buffered by the
underlying StreamConsumer have been flushed. This CL adds a note
indicating this to the IOSink docs, and adds calls to flush() before
calls to close() for some calls to stdin.close() for spawned
processes in our tests.

related #28737

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2687963003 .
2017-02-10 09:55:16 -08:00
Peter von der Ahé 7512ab5c79 Enable running of fasta tests on build bot.
Fixes https://github.com/dart-lang/sdk/issues/28594

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2675593003 .
2017-02-03 07:12:04 +01:00
Peter von der Ahé 819182a4c5 Don't ignore analyzer and dart2js when analyzing fasta.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2646363004 .

# Conflicts:
#	pkg/fasta/testing.json
2017-01-31 11:17:29 +01:00
Peter von der Ahé 011f616a58 Dynamic type error implies checked mode.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2641833002 .
2017-01-31 11:16:04 +01:00
Peter von der Ahé 4570f34bc1 Implement custom status file expectations.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2623413003 .
2017-01-31 11:16:04 +01:00
Peter von der Ahé fc51d91e99 Add general method for comma separated options.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2622383003 .
2017-01-31 11:16:04 +01:00
Peter von der Ahé b33c057456 Implement multitest failure expectations.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2627753005 .
2017-01-31 11:16:03 +01:00
Peter von der Ahé a21bc26c0b Implement multitest expectations.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2626003003 .
2017-01-31 11:16:03 +01:00
Peter von der Ahé f2faa44730 Move package:testing to SDK.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2624373003 .
2017-01-31 11:16:03 +01:00