Index: packages/html/test/run.sh |
diff --git a/packages/html/test/run.sh b/packages/html/test/run.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..c060bd7545c2cabf0bc49972fbc57bb4e217c095 |
--- /dev/null |
+++ b/packages/html/test/run.sh |
@@ -0,0 +1,22 @@ |
+#!/bin/bash |
+# Copyright (c) 2012, the Dart project authors. Please see the LICENSE file |
+# for details. All rights reserved. Use of this source code is governed by a |
+# MIT-style license that can be found in the LICENSE file. |
+ |
+# bail on error |
+set -e |
+ |
+# TODO(sigmund): replace with a real test runner |
+DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
+ |
+# Note: dart_analyzer needs to be run from the root directory for proper path |
+# canonicalization. |
+pushd $DIR/.. |
+# TODO(jmesserly): switch to new analyzer. Note: it's missing a lot of the |
+# tests for implemented members; we should get that fixed before switching. |
+echo Analyzing library for warnings or type errors |
+dartanalyzer --fatal-warnings lib/*.dart || \ |
+ echo "ignore analyzer errors" |
+popd |
+ |
+dart --checked test/run_all.dart $@ |