Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: pkg/csslib/test/run.sh

Issue 23168002: move csslib into dart svn (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/csslib/test/nested_test.dart ('k') | pkg/csslib/test/run_all.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 # Usage: call directly in the commandline as test/run.sh ensuring that you have
7 # 'dart' in your path. Filter tests by passing a pattern as an argument to this
8 # script.
9
10 # TODO(sigmund): replace with a real test runner
11
12 # bail on error
13 set -e
14
15 # print commands executed by this script
16 # set -x
17
18 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
19 DART_FLAGS="--checked"
20 TEST_PATTERN=$1
21
22 if [[ ($TEST_PATTERN == "") ]]; then
23 # Note: dart_analyzer needs to be run from the root directory for proper path
24 # canonicalization.
25 pushd $DIR/.. &>/dev/null
26 echo Analyzing compiler for warnings or type errors
27 dartanalyzer --fatal-warnings --fatal-type-errors bin/css.dart
28 popd &>/dev/null
29 fi
30
31 pushd $DIR &>/dev/null
32 if [[ ($TEST_PATTERN == "canary") || ($TEST_PATTERN = "") ]]; then
33 dart $DART_FLAGS run_all.dart
34 else
35 dart $DART_FLAGS run_all.dart $TEST_PATTERN
36 fi
37 popd &>/dev/null
38
39 echo All tests completed.
OLDNEW
« no previous file with comments | « pkg/csslib/test/nested_test.dart ('k') | pkg/csslib/test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698