Commit graph

15 commits

Author SHA1 Message Date
Jens Johansen 9381424204 Fix presubmit on Windows. Dart executable is not called .bat
Change-Id: I3e9212a134dc3302324625aa201466bfb972a788
Reviewed-on: https://dart-review.googlesource.com/53363
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-05-02 08:40:59 +00:00
Lasse R.H. Nielsen 9ec9a4c8da Move new tests from tests/isolate to tests/lib_2/isolate.
Fix test expectations.
Improve test (overly complex).
Mark tests/isolate as immutable to the presubmit script (like other migrated Dart 1 test directories).

(Gardening)

Change-Id: Iec59c59ca992b3dacafbf82176e4e8bd8c5bd3c5
Reviewed-on: https://dart-review.googlesource.com/42945
Reviewed-by: William Hesse <whesse@google.com>
2018-02-22 10:03:23 +00:00
Zachary Anderson 1660f696b6 [infra] Add and check 'allowed_hosts' in DEPS file
Change-Id: I3f9bb1b903c36da537357d6cdc629e0802b6393a
Reviewed-on: https://dart-review.googlesource.com/32680
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-01-08 18:31:24 +00:00
Morten Krogh-Jespersen 3db4b1070b Normalize all status files and enable presubmit hook.
This CL normalizes all status files by the status file normalizer found at
pkg/status_file/bin/normalize.dart.

To make sure all status files are kept in pristine condition, a linter is placed
on the presubmit hook. The linter can be found at pkg/status_file/bin/lint.dart.

Bug:
Change-Id: I20bdb74824be65f079b8c9ab08b7ae38394d637f
Reviewed-on: https://dart-review.googlesource.com/24112
Commit-Queue: Morten Krogh-jespersen <mkroghj@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2017-12-07 08:38:30 +00:00
Terry Lucas de187713ac Report a presubmit error if a test file in Dart 1.0 is modified or added.
Only allow .status files in Dart 1.0 test directories to be changed.

R=rnystrom@google.com

Change-Id: Ic95b76eb53e7d5ab6b795425a7a97f0fded01a5b
Reviewed-on: https://dart-review.googlesource.com/14120
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Terry Lucas <terry@google.com>
2017-10-17 15:16:30 +00:00
Bob Nystrom edee53f93d Bring back the deleted 1.0 corelib tests.
What is dead may never die.

Change-Id: I80ef766b8ce2b6e1416df8e1f9b91fb74169dc79
Reviewed-on: https://dart-review.googlesource.com/7483
Reviewed-by: William Hesse <whesse@google.com>
2017-09-21 18:29:40 +00:00
Lasse Reichstein Holst Nielsen c0fd3eb119 Change presumbit to not provide unix-specific syntax on Windows.
Copy-over of https://codereview.chromium.org/3005843002/

Change-Id: I8b95201f0570a249054597fffac89cc848791865
Reviewed-on: https://dart-review.googlesource.com/4341
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2017-09-11 08:58:53 +00:00
Janice Collins 51cc9689b3 Remove corelib and corelib_strong and migrate last two remaining tests.
This includes a migration of linked_hash_map_from_iterable_test and
stacktrace_current_test, which were migrated without changes.

BUG=
R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/3004073002 .
2017-09-01 08:11:15 -07:00
Bob Nystrom cc1f6a7a35 Don't treat unparseable files as presubmit dartfmt errors.
If the file has a syntax error, it can't be formatted. We don't want to
block submission on that since we do have lots of files in the repo
that deliberately contain syntax errors.

R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2987883002 .
2017-07-25 17:05:11 -07:00
Terry Lucas 0afa1428a1 Added checks for tests.
PRESUBMIT will check:
  1. a new test can NOT be added to Dart 1.0 the new test can only be added to DDC.
  2. a existing Dart 1.0 test changed must have its corresponding DDC test updated too (if it exists).

Presubmit errors may appear as:

** Presubmit ERRORS **
Error: If you change a Dart 1.0 test, you must also update the DDC test:
1. Dart 1.0 test changed: tests/corelib/symbol_map_helper.dart
1. DDC  test must change: tests/corelib_2/symbol_map_helper.dart
2. Dart 1.0 test changed: tests/language/compiler_annotations.dart
2. DDC  test must change: tests/language_2/compiler_annotations.dart

R=jacobr@google.com, rnystrom@google.com

Error: New Dart 1.0 test can not be added the test must be added as a DDC test:
Fix tests:
1. New Dart 1.0  test: tests/corelib/new_test.dart
1. Should be DDC test: tests/corelib_2/new_test.dart
2. New Dart 1.0  test: tests/language/new_test.dart
2. Should be DDC test: tests/language_2/new_test.dart
Review-Url: https://codereview.chromium.org/2982043002 .
2017-07-18 08:20:40 -07:00
Jacob Richman 774f261165 Print the correct path to dartfmt in the presubmit error message.
BUG=
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2795653005 .
2017-04-04 16:13:31 -07:00
Jacob Richman 409150339f Add presubmit check that runs dartfmt
BUG=
R=johnmccutchan@google.com, whesse@google.com, zra@google.com

Review-Url: https://codereview.chromium.org/2761653003 .
2017-03-21 16:18:48 -07:00
ricow@google.com 14a2204215 Remove presubmit suppression.
dart-status is back in shape

R=kustermann@google.com

Review URL: https://codereview.chromium.org//22875028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26423 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-21 11:02:39 +00:00
ricow@google.com c104c70ad7 Disable status tree check until we figure out what is wrong with dart-status.appspot.com
R=kustermann@google.com, ngeoffray@google.com

Review URL: https://codereview.chromium.org//23270003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26257 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-16 07:38:19 +00:00
ricow@google.com bfeb07b702 Add gcl presubmit script to the dart src tree.
Currently I just added a tree status check but we can extend this over time.
Review URL: https://chromiumcodereview.appspot.com//10891021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11575 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 06:11:22 +00:00