| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the LICENSE file | 2 # Copyright (c) 2012, the Dart project authors. Please see the LICENSE 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 # MIT-style license that can be found in the LICENSE file. | 4 # MIT-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 # bail on error | 6 # bail on error |
| 7 set -e | 7 set -e |
| 8 | 8 |
| 9 # TODO(sigmund): replace with a real test runner | 9 # TODO(sigmund): replace with a real test runner |
| 10 for test in tests/*_test.dart; do | 10 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) |
| 11 for test in $DIR/*_test.dart; do |
| 11 # TODO(jmesserly): removed --enable-type-checks to work around VM bug in | 12 # TODO(jmesserly): removed --enable-type-checks to work around VM bug in |
| 12 # the RegExp constructor when the optimizer kicks in. | 13 # the RegExp constructor when the optimizer kicks in. |
| 13 dart --enable-asserts --package-root=packages/ $test | 14 dart --enable-asserts $test |
| 14 done | 15 done |
| OLD | NEW |