Files
sdk/pkg/polymer/test/run.sh
T
jmesserly@google.com 0145636d89 fix analyzer issue in listorder_test
also fix polymer test/run.sh to test analyzer again

Review URL: https://codereview.chromium.org//32253003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28962 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-21 22:08:20 +00:00

888 B
Executable File

#!/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"
 
ANALYZER_CONFIG="-m release -r none -c dartanalyzer $*"
CONFIG="-m release -r vm,drt,ff,chrome,d8,jsshell -c none,dart2js --checked $*"
 
CMD="./tools/test.py $ANALYZER_CONFIG $SUITES"
echo "*** $CMD"
$CMD
 
CMD="xvfb-run ./tools/test.py $CONFIG $SUITES"
echo "*** $CMD"
$CMD
 
echo -e "All tests pass"