OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the LICENSE file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # MIT-style license that can be found in the LICENSE file. |
| 5 |
| 6 # bail on error |
| 7 set -e |
| 8 |
| 9 # TODO(sigmund): replace with a real test runner |
| 10 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| 11 |
| 12 # Note: dart_analyzer needs to be run from the root directory for proper path |
| 13 # canonicalization. |
| 14 pushd $DIR/.. |
| 15 # TODO(jmesserly): switch to new analyzer. Note: it's missing a lot of the |
| 16 # tests for implemented members; we should get that fixed before switching. |
| 17 echo Analyzing library for warnings or type errors |
| 18 dartanalyzer --fatal-warnings lib/*.dart || \ |
| 19 echo "ignore analyzer errors" |
| 20 popd |
| 21 |
| 22 dart --checked test/run_all.dart $@ |
OLD | NEW |