| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2012, 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 # bail on error |
| 7 set -e |
| 8 TEST_DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| 9 PERF_DIR="$TEST_DIR/perf" |
| 10 WEB_UI_HOME=$(dirname $TEST_DIR) |
| 11 DART_FLAGS="--checked" |
| 12 TEST_PATTERN=$1 |
| 13 |
| 14 if [[ ! -e $PERF_DIR/input/example ]]; then |
| 15 ln -s $WEB_UI_HOME/example/ $PERF_DIR/input/example |
| 16 fi |
| 17 |
| 18 |
| 19 pushd $PERF_DIR |
| 20 dart $DART_FLAGS perf.dart $TEST_PATTERN |
| 21 popd |
| OLD | NEW |