blob: f57855c799ad946d25e15f6adcf0ece3c0c48b30 [file] [log] [blame]
#!/bin/bash
# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# Usage: run from a Dart SVN checkout after building.
# bail on error
set -e
# Note: test.dart needs to be run from the root of the Dart checkout
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
pushd $DIR/../../.. > /dev/null
echo "*** Running unit tests for Polymer.dart and its dependencies."
SUITES="pkg/polymer samples/third_party/todomvc"
CONFIG="-m release -r vm,drt,ff,chrome,d8,jsshell -c none,dart2js,dartanalyzer --checked $*"
CMD="xvfb-run ./tools/test.py $CONFIG $SUITES"
echo "*** $CMD"
$CMD
echo -e "All tests pass"