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