9c0a6fd27c
It's added as a new compiler, so pass "-c dartdevk" to use it. It doesn't support any test packages yet, so tests that, say, import package expect won't compile. I'll work on that next, but it will require adding some stuff to the build scripts to build .dill files for those packages. This does get test.dart invoking the compiler, running the resulting test, and correctly reporting the result: - A test that doesn't throw an exception and stays within the bounds of what is currently implemented in dartdevk passes. - A test that compiles correctly but fails at runtime fails with a RuntimeError. - A test that contains a compile error fails with a non-zero exit code and is reported as a CompileTimeError. Change-Id: Icacbf1ff54dfe7aa4d245382d3b0aeb375cf105b Reviewed-on: https://dart-review.googlesource.com/15420 Commit-Queue: Bob Nystrom <rnystrom@google.com> Reviewed-by: Vijay Menon <vsm@google.com>