| Index: third_party/pkg/html5lib/test/run.sh
|
| diff --git a/third_party/pkg/html5lib/test/run.sh b/third_party/pkg/html5lib/test/run.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..f269bdaa0fd67c0a838c773dccaf7d3590585391
|
| --- /dev/null
|
| +++ b/third_party/pkg/html5lib/test/run.sh
|
| @@ -0,0 +1,22 @@
|
| +#!/bin/bash
|
| +# Copyright (c) 2012, the Dart project authors. Please see the LICENSE file
|
| +# for details. All rights reserved. Use of this source code is governed by a
|
| +# MIT-style license that can be found in the LICENSE file.
|
| +
|
| +# bail on error
|
| +set -e
|
| +
|
| +# TODO(sigmund): replace with a real test runner
|
| +DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
|
| +
|
| +# Note: dart_analyzer needs to be run from the root directory for proper path
|
| +# canonicalization.
|
| +pushd $DIR/..
|
| +# TODO(jmesserly): switch to new analyzer. Note: it's missing a lot of the
|
| +# tests for implemented members; we should get that fixed before switching.
|
| +echo Analyzing library for warnings or type errors
|
| +dartanalyzer --fatal-warnings --fatal-type-errors lib/*.dart || \
|
| + echo "ignore analyzer errors"
|
| +popd
|
| +
|
| +dart --enable-type-checks --enable-asserts test/run_all.dart $@
|
|
|