Commit Graph

1285 Commits

Author SHA1 Message Date
Ryan Macnak a0e3bfdd68 Qualify the precompiled shared library name with the snapshot directory instead of using LD_LIBRARY_PATH.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1771423002 .
2016-03-08 12:01:53 -08:00
Ryan Macnak 3b16570e07 Also update the test harness for unification of dart_no_snapshot into dart_bootstrap.
Cf. d61ebd4ed2

R=iposva@google.com

Review URL: https://codereview.chromium.org/1760263003 .
2016-03-03 16:47:28 -08:00
Ryan Macnak 6917ae7409 Address static warning in precompiler compiler configuration.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1751253002 .
2016-03-01 15:51:35 -08:00
Ryan Macnak 3fd5ffdbd4 Make tools/build.py -cprecompiler -rdart_precompiled green:
- Create a separate compilation output directory for each VMOptions varient so they can run in parallel.
- Run both the snapshotter and assembler from the test harness instead of a wrapper script so crashes in the snapshotter are correctly identified by the test harness.
- Delete the assembly source for the precompiled shared library as we go to limit space required to run the test suite (now 61GB for X64 release).
- Remove the VMOption --optimization-counter-threshold in when running precompilation tests.
- Don't look at a library prefix's import list during load(), it was removed by tree-shaking.
- Trace types of TypeParameters.
- Trace types of a Function's owner and parent.
- Update status file for remaining 4 failures under http://dartbug.com/25892.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1732323005 .
2016-03-01 15:19:11 -08:00
Siva Annamalai 993290b599 - Include a random number in the full snapshot filename as some of the tests
which have multiple VMOption specifications in them run in parallel with the
  same snapshot filename and they clobber each other resulting in random crashes
- Delete the temporary snapshot generation directory after the test run
- Modify map_literal_oom_test.dart to run with 10mb heap limit instead of 7MB
  as the VM service isolate in the dart_no_snapshot run gets an OOM.

R=johnmccutchan@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/1731023003 .
2016-02-25 10:25:58 -08:00
William Hesse 1f76ab9410 Limit number of browsers opened by test script to 15.
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org/1726653002 .
2016-02-24 13:59:29 +01:00
William Hesse eafdd42501 Revert the debugging changes that added vm abort flag and core dumps.
Revert "Add '--abort-on-assertion-errors' to test runner's dart2js commands."
This reverts commit a8e54625da.

Revert "Add abort-on-assertion flag to dart2js unit test runner."
This reverts commit b42443bd26.

Revert "Enable coredumps for dart2js unit tests on buildbot."
This reverts commit 5c8b76734c.

BUG=https://github.com/dart-lang/sdk/issues/25782
R=vegorov@google.com

Review URL: https://codereview.chromium.org/1699043003 .
2016-02-16 15:36:24 +01:00
William Hesse 2408221e58 Fix broken reference to Platform in test scripts.
BUG=

Review URL: https://codereview.chromium.org/1700803003 .
2016-02-15 17:53:10 +01:00
William Hesse 2573093c50 Switch to downloaded SDK executable, drop executables in testing/bin.
BUG=https://github.com/dart-lang/sdk/issues/24311
R=ricow@google.com

Review URL: https://codereview.chromium.org/1697203002 .
2016-02-15 17:10:59 +01:00
John McCutchan 7b7f2b05c6 Add dart_product binary
- Add dart_product binary that doesn't include the service isolate, Observatory, or the snapshot. It can only be used for running full snapshots.
- Use this binary when running tests.

R=asiva@google.com

Review URL: https://codereview.chromium.org/1690303002 .
2016-02-12 11:04:56 -08:00
Siva Annamalai 5a04f81e77 Fix the test script for dart_product runtime
- Treat compilation errors as regular return code instead of as a crash
 - Account for VMOptions specified in the test cases.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1694623002 .
2016-02-12 10:28:04 -08:00
John McCutchan 516e814cd8 Add dart2snapshot compiler and dart_snapshotted runtime to test scripts
Command to run tests:

$ ./tools/test.py -c dart2snapshot -r dart_snapshotted

Each tests will be run twice. After the first run a snapshot will be written to disk and then the test will be run again from the snapshot.

R=asiva@google.com

Review URL: https://codereview.chromium.org/1687493002 .
2016-02-09 12:19:22 -08:00
William Hesse a8e54625da Add '--abort-on-assertion-errors' to test runner's dart2js commands.
BUG=https://github.com/dart-lang/sdk/issues/25645
R=kustermann@google.com

Review URL: https://codereview.chromium.org/1671013002 .
2016-02-08 17:26:57 +01:00
Ivan Posva 9c0c6cb5c2 Add product mode:
- Add PRODUCT define and build mode to gyp configurations.
- Add product mode to test harness.
- Start to unify list of flags.
- Allow flags to be constant for particular build configurations.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1663863002 .
2016-02-03 21:10:30 -08:00
Florian Schneider 0f48690061 VM: Replace dart --noopt with new binary target dart_noopt.
This allows us to exclude precompiler related code from the standalone
JIT VM, and only have the precompiler included in dart_noopt and dart_no_snapshot
(which is used to generate precompiled snapshots)

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1661703002 .
2016-02-02 17:51:15 -08:00
Zachary Anderson 80f358dede Adds targets for simarmv6 and armv6
related #25562

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1624593002 .
2016-01-22 13:07:48 -08:00
Florian Schneider f47839ba09 Rename DART_PRECOMPILED -> DART_PRECOMPILED_RUNTIME
To avoid future confusion with precompiler compiler-related macros/build targets

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1581393008 .
2016-01-19 13:59:49 -08:00
Natalie Weizenbaum b33dcfdaad Remove the Dromaeo and TodoMVC samples.
No one was maintaining or using these, and they were stale to the point
that they were breaking pkgbuild tests because their dependencies
weren't compatible with the latest SDK.

This also removes tools/testing/perf_testing, which only tested these
two samples.

R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1576153002 .
2016-01-11 13:09:26 -08:00
Natalie Weizenbaum 6f3168ad47 Fix some broken pkgbuild tests.
This brings in the latest version of http and shelf, and stops the
pkgbuild dependency override mechanism from making packages depend on
the pub package.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1560513002 .
2016-01-05 13:24:12 -08:00
William Hesse 634e5a1d02 Refs #25328 Use a portable shebang
BSD systems don't place bash in /bin and a lot of the dart tools
hardcode a #!/bin/bash shebang that fails the 'all' target build
(not able to execute dart2js since the interpreter is not found).

Solve the issue by using #!/usr/bin/env as the shebang. For scripts
that need to pass arguments to bash modify the script to use the set
command as the first executed line of shell.

BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/1552313002 .
2016-01-05 16:26:28 +01:00
William Hesse 79b6d81dd2 Move third_party/firefox_jsshell dependency to cloud storage
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org/1544463002 .
2015-12-21 14:38:14 +01:00
Ryan Macnak 6b964b83ac Add ./tools/test.py -c precompiler -r dart_precompiled.
- Make --gen/run-precompiled-snapshot take a directory to use for the snapshot pieces.
 - Throw on Platform.executeable to prevent tests from becoming fork-bombs.
 - Update status files so 'dart_precompiled' is generally expected to behave the same as 'vm'.

Currently multitests will fail unless run with --jobs=1 because the test harness assigns them the same temporary directory.

Running this also requires a great deal of space. My out directory is 380G.

BUG=http://dartbug.com/24975
R=fschneider@google.com, srdjan@google.com

Review URL: https://codereview.chromium.org/1507943002 .
2015-12-18 12:08:10 -08:00
William Hesse 6485590527 Remove old java-based analyzer from test scripts and status files
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1537653002 .
2015-12-17 14:44:57 +01:00
Sigmund Cherem e6f6ce9743 fix safari test
Apparently my approach to use wss didn't work to exercise the error codepath. This change makes us excersize errors. After testing this in Safari though, I coudln't reproduce the issue, so I remove the note about this being a regression test for the original issue.

Review URL: https://codereview.chromium.org/1513363003 .
2015-12-10 16:02:27 -08:00
Lasse R.H. Nielsen ed0b187d58 Add data-URI support class to dart:core (next to Uri).
R=floitsch@google.com, fschneider@google.com

Committed: https://github.com/dart-lang/sdk/commit/bbc66c2c41e61d82d6b85fdd16e2b0f1204c2a33

Review URL: https://codereview.chromium.org/1381033002 .
2015-11-12 13:02:20 +01:00
Ryan Macnak 783ed2470b Change default build and test architecture to x64.
Precompilation isn't supported on IA32 so local testing misses it.

R=srdjan@google.com

Review URL: https://codereview.chromium.org/1408783005 .
2015-10-16 10:59:08 -07:00
Ryan Macnak 5532a354c3 Add a test configuration for noopt so we can add status file entries for it.
R=srdjan@google.com

Review URL: https://codereview.chromium.org/1409543004 .
2015-10-14 12:36:39 -07:00
Rico Wind 2e22f41612 This is a fixed up version of:
https://codereview.chromium.org/1305183010/

- Reorder the priority of flags in the test harness when passed to the VM:
  default flags, file flags, command line flags
- Ensure to not enable assertions when not being requested.

Peter, any reason to not move the flags in to the
configuration file?  Why don't we actually have all of them in there? (not
that I want to move them, I am just currious why we don't add them in
there, it seems more logical to me)

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

Committed: https://github.com/dart-lang/sdk/commit/dd7767d95eda87054844e0b24ebd2ce9b04354bb

Review URL: https://codereview.chromium.org//1330643003 .
2015-09-14 07:58:18 +02:00
Rico Wind 02320ff26e Revert "This is a fixed up version of:"
This reverts commit dd7767d95e.

This made the analyzer fail:
http://build.chromium.org/p/client.dart/builders/analyzer_experimental-linux-release-be/builds/3418/

Please note that this is just not the new test (which I would just have
suppressed)
It seems that in --checked --host-checked mode we see a range of new
failures, because of the change to flags.

It also made dart2js fail on the new tests

Ivan: Will you look into this with the analyzer people?

R=iposva@google.com
BUG=

Review URL: https://codereview.chromium.org//1308743006 .
2015-09-07 08:41:46 +02:00
Rico Wind dd7767d95e This is a fixed up version of:
https://codereview.chromium.org/1305183010/

- Reorder the priority of flags in the test harness when passed to the VM:
  default flags, file flags, command line flags
- Ensure to not enable assertions when not being requested.

Peter, any reason to not move the flags in to the
configuration file?  Why don't we actually have all of them in there? (not
that I want to move them, I am just currious why we don't add them in
there, it seems more logical to me)

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

Review URL: https://codereview.chromium.org//1330643003 .
2015-09-07 07:44:41 +02:00
Harry Terkelsen f65c675c16 Add tests for simple packages scenarios
BUG=
R=iposva@google.com, pquitslund@google.com

Review URL: https://codereview.chromium.org//1290623002 .
2015-08-17 17:13:19 -07:00
Sigmund Cherem b273d56f0d Fix pkgbuild tests after adding a pubspec on pkg/compiler (fix #23750)
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1217353002.
2015-07-01 08:19:00 -07:00
Sigmund Cherem b18c5a3e7c sdk files reorganization to make dart2js a proper package
BUG=
R=brianwilkerson@google.com, floitsch@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//1212513002.
2015-06-29 10:21:14 -07:00
Johnni Winther bac7481d3d Opt-in to generate code for compile-time error. Only supported for SSA.
BUG=
R=karlklose@google.com

Review URL: https://codereview.chromium.org//1167353003
2015-06-09 14:36:38 +02:00
Rico Wind fc6b3e8a99 Remove pkg_tested from the default selector
We now pull in pub from github into pkg_tested and we don't want to run those tests by default

Also, the pub tests relies on the sdk being build, so the tests will fail if you don't explicitly specify --use-sdk to the tools/test.py invocation.

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

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

Review URL: https://codereview.chromium.org//1161003005
2015-06-03 07:37:06 +02:00
Rico Wind 6a054d5cc7 Revert "Remove pkg_tested from the default selector"
This reverts commit 9db675f734.

Need to discuss this with other people

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

Review URL: https://codereview.chromium.org//1167533005
2015-06-02 14:40:25 +02:00
Rico Wind 9db675f734 Remove pkg_tested from the default selector
We now pull in pub from github into pkg_tested and we don't want to run those tests by default

Also, the pub tests relies on the sdk being build, so the tests will fail if you don't explicitly specify --use-sdk to the tools/test.py invocation.

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

Review URL: https://codereview.chromium.org//1169433002
2015-06-02 14:31:27 +02:00
Rico Wind 415bbb9a07 Remove clear_safari_cache flag in tools/test.py
Bots have been transitioned a long time ago

R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1143393006
2015-06-02 11:35:12 +02:00
Natalie Weizenbaum 3d8c06c4e9 Start pulling pub from its own repo.
Pub now lives in third_party/pkg/pub (it's in pkg to make it possible to import
using "package:" imports).

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

Review URL: https://codereview.chromium.org//1165473002
2015-05-29 14:50:18 -07:00
Rico Wind f34fae854a Initial github commit for getting stuff working
Readd samples, samples-dev, tools/testing/bin, third_party removed by cleanup (no history, sorry)

Add DEPS file which will replace the old all.deps and standalone.deps

Add tools/deps/dartium.deps replacing the old dartium.deps (but now editable from a normal checkout)

Fixup tools/utils.py to use the new archiving schema (git count for be, version number for dev/stable

Fix codereview.settings
2015-05-16 15:41:58 +02:00
kevmoo@google.com 84526cf02c ignore the downloaded test bins
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45767 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-13 17:11:20 +00:00
ricow@google.com 568a551386 Fix test_suite.dart
Missing semicolon

TBR=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45590 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-07 12:50:05 +00:00
ricow@google.com e92f697236 Remove dart2dart support from testing scripts and status files
I will leave it to the dart2js people to remove the support from the dart2js tools (there is also a bunch of comments still in code, do a git grep)

R=kustermann@google.com, floitsch@google.com, kmillikin@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45588 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-07 11:29:55 +00:00
ricow@google.com bf512c6b32 Don't list pkg/third_party when finding packages
R=kevmoo@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45431 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-27 20:11:42 +00:00
karlklose@google.com 7058fdfe5b Use --use-cps-ir compiler option in the test script to run dart2js with the new backend.
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45205 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 11:25:11 +00:00
ricow@google.com 8d4af95d99 Don't report firefox crash reports
This disables firefox crash reporting (which will show a pop up dialog)

R=whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45202 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-16 11:17:12 +00:00
zra@google.com 86bfd7cb30 Adds a simarmv5te build and test target.
Also:
- Removes command line flags to choose simulated arm version.
  I think we should use build targets instead, like in this change,
  to make building and testing more obvious.
- Skips pkg tests on all simulators.

R=regis@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45181 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-15 20:44:43 +00:00
ricow@google.com 8f302fbf34 Add a --cps-ir flag to the testing script to allow us to run with the new cps based backend in dart2js
R=whesse@google.com, karlklose@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45136 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-14 12:33:46 +00:00
johnmccutchan@google.com 647c355f8c Relocate service library tests and hookup a working status file
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45043 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 22:57:59 +00:00
johnmccutchan@google.com cef8aa3a34 Enable observatory tests by default
BUG=
R=turnidge@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45039 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 21:43:28 +00:00