| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
| 3 # for details. All rights reserved. Use of this source code is governed by a | |
| 4 # BSD-style license that can be found in the LICENSE file. | |
| 5 | |
| 6 # Usage: run from a Dart SVN checkout after building. | |
| 7 | |
| 8 # bail on error | |
| 9 set -e | |
| 10 | |
| 11 # Note: test.dart needs to be run from the root of the Dart checkout | |
| 12 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) | |
| 13 pushd $DIR/../../.. > /dev/null | |
| 14 | |
| 15 echo "*** Running unit tests for Polymer.dart and its dependencies." | |
| 16 | |
| 17 SUITES="pkg/polymer samples/third_party/todomvc" | |
| 18 | |
| 19 ANALYZER_CONFIG="-m release -r none -c dartanalyzer $*" | |
| 20 CONFIG="-m release -r vm,drt,ff,chrome,d8,jsshell -c none,dart2js --checked $*" | |
| 21 | |
| 22 CMD="./tools/test.py $ANALYZER_CONFIG $SUITES" | |
| 23 echo "*** $CMD" | |
| 24 $CMD | |
| 25 | |
| 26 CMD="xvfb-run ./tools/test.py $CONFIG $SUITES" | |
| 27 echo "*** $CMD" | |
| 28 $CMD | |
| 29 | |
| 30 echo -e "[32mAll tests pass[0m" | |
| OLD | NEW |