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

Side by Side Diff: tools/presubmit.sh

Issue 8439006: Tweaks to get presubmit working (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removing ia32 and replacing with vm Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 7
8 # A quick check over a subset the tests in the runtime, compiler 8 # A quick check over a subset the tests in the runtime, compiler
9 # and client directories. 9 # and client directories.
10 10
(...skipping 27 matching lines...) Expand all
38 exit 1 38 exit 1
39 fi 39 fi
40 } 40 }
41 41
42 # Execute a set of tests 42 # Execute a set of tests
43 # $1 directory to test in 43 # $1 directory to test in
44 # $2 arch 44 # $2 arch
45 # $3 mode 45 # $3 mode
46 # Returns the output from the subcommand 46 # Returns the output from the subcommand
47 function doTest { 47 function doTest {
48 ./tools/test.py --arch $2 --mode $3 48 ./tools/test.py --component $2 --mode $3
codefu 2011/11/01 18:21:11 Less change.
49 RESULT=$? 49 RESULT=$?
50 if [ ${RESULT} != 0 ] ; then 50 if [ ${RESULT} != 0 ] ; then
51 TESTS_FAILED=1 51 TESTS_FAILED=1
52 fi 52 fi
53 return ${RESULT} 53 return ${RESULT}
54 } 54 }
55 55
56 # Main 56 # Main
57 57
58 while [ ! -z "$1" ] ; do 58 while [ ! -z "$1" ] ; do
(...skipping 29 matching lines...) Expand all
88 88
89 echo 89 echo
90 echo "--- Building debug ---" 90 echo "--- Building debug ---"
91 doBuild ia32 debug 91 doBuild ia32 debug
92 92
93 93
94 94
95 echo 95 echo
96 echo "=== Runtime tests === " 96 echo "=== Runtime tests === "
97 echo " Debug (Ctrl-C to skip this set of tests)" 97 echo " Debug (Ctrl-C to skip this set of tests)"
98 doTest runtime ia32 debug 98 doTest runtime vm debug
99 RUNTIME_RESULT=$? 99 RUNTIME_RESULT=$?
100 if [ ${RUNTIME_RESULT} == 0 ] ; then 100 if [ ${RUNTIME_RESULT} == 0 ] ; then
101 echo " Release (Ctrl-C to skip this set of tests)" 101 echo " Release (Ctrl-C to skip this set of tests)"
102 doTest runtime ia32 release 102 doTest runtime vm release
103 RUNTIME_RESULT=$? 103 RUNTIME_RESULT=$?
104 fi 104 fi
105 105
106 106
107 echo 107 echo
108 echo "=== Compiler tests ===" 108 echo "=== Compiler tests ==="
109 echo " Debug mode (Ctrl-C to skip this set of tests)" 109 echo " Debug mode (Ctrl-C to skip this set of tests)"
110 doTest compiler dartc debug 110 doTest compiler dartc debug
111 COMPILER_RESULT=$? 111 COMPILER_RESULT=$?
112 112
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 echo "*** Compiler tests failed" 152 echo "*** Compiler tests failed"
153 fi 153 fi
154 154
155 if [ ${CLIENT_RESULT} != 0 ] ; then 155 if [ ${CLIENT_RESULT} != 0 ] ; then
156 echo "*** Client tests failed" 156 echo "*** Client tests failed"
157 fi 157 fi
158 158
159 if [ ${TESTS_FAILED} == 0 ] ; then 159 if [ ${TESTS_FAILED} == 0 ] ; then
160 echo "All presubmit tests passed!" 160 echo "All presubmit tests passed!"
161 fi 161 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698