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

Side by Side Diff: tools/presubmit.sh

Issue 8437064: Integrate frog tests into presubmit.sh (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from Siggi 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 | « tests/language/language.status ('k') | 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 fi 83 fi
84 84
85 echo 85 echo
86 echo "--- Building release ---" 86 echo "--- Building release ---"
87 doBuild ia32 release 87 doBuild ia32 release
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 # Create a symlink for the Dart VM for frog
ngeoffray 2011/11/03 12:33:05 Not needed anymore.
zundel 2011/11/03 13:21:35 Done.
94 if [ ! -f frog/bin/dart_bin ] ; then
95 mkdir -p frog/bin
96 DART_BIN=`pwd`/out/Release_ia32/dart_bin
97 ln -s $DART_BIN frog/bin/
98 fi
94 99
95 echo 100 echo
96 echo "=== Runtime tests === " 101 echo "=== Runtime tests === "
97 echo " Debug (Ctrl-C to skip this set of tests)" 102 echo " Debug (Ctrl-C to skip this set of tests)"
98 doTest runtime vm debug 103 doTest runtime vm debug
99 RUNTIME_RESULT=$? 104 RUNTIME_RESULT=$?
100 if [ ${RUNTIME_RESULT} == 0 ] ; then 105 if [ ${RUNTIME_RESULT} == 0 ] ; then
101 echo " Release (Ctrl-C to skip this set of tests)" 106 echo " Release (Ctrl-C to skip this set of tests)"
102 doTest runtime vm release 107 doTest runtime vm release
103 RUNTIME_RESULT=$? 108 RUNTIME_RESULT=$?
104 fi 109 fi
105 110
106 111
107 echo 112 echo
108 echo "=== Compiler tests ===" 113 echo "=== dartc tests ==="
109 echo " Debug mode (Ctrl-C to skip this set of tests)" 114 echo " Debug mode (Ctrl-C to skip this set of tests)"
110 doTest compiler dartc debug 115 doTest compiler dartc debug
111 COMPILER_RESULT=$? 116 DARTC_RESULT=$?
112 117
113 if [ ${DO_OPTIMIZE} == 1 ] ; then 118 if [ ${DO_OPTIMIZE} == 1 ] ; then
114 echo " Release mode (--optimize)" 119 echo " Release mode (--optimize)"
115 doTest compiler dartc release 120 doTest compiler dartc release
116 RESULT=$? 121 RESULT=$?
117 if [ ${RESULT} != 0 ] ; then 122 if [ ${RESULT} != 0 ] ; then
118 COMPILER_RESULT=${RESULT} 123 DARTC_RESULT=${RESULT}
119 fi 124 fi
120 fi 125 fi
121 126
122 echo 127 echo
128 echo "=== frog tests ==="
129 # TODO(zundel): Update once frog is integrated into test.py
ngeoffray 2011/11/03 12:33:05 I think running presubmit.py is just fine.
130 cd frog
131 ./presubmit.py
132 FROG_RESULT=$?
133 if [ ${FROG_RESULT} != 0 ] ; then
134 TESTS_FAILED=1
135 fi
136 cd -
Siggi Cherem (dart-lang) 2011/11/02 23:22:00 I didn't know about 'cd -' that's pretty cool :)
137
138 echo
123 echo "=== Client tests ===" 139 echo "=== Client tests ==="
124 echo " Chromium (Ctrl-C to skip this set of tests)" 140 echo " Chromium (Ctrl-C to skip this set of tests)"
125 doTest client chromium debug 141 doTest client chromium debug
126 CLIENT_RESULT=$? 142 CLIENT_RESULT=$?
127 143
128 if [ ${DO_OPTIMIZE} == 1 ] ; then 144 if [ ${DO_OPTIMIZE} == 1 ] ; then
129 echo " Chromium Release mode (--optimize)" 145 echo " Chromium Release mode (--optimize)"
130 doTest compiler chromium release 146 doTest compiler chromium release
131 RESULT=$? 147 RESULT=$?
132 if [ ${RESULT} != 0 ] ; then 148 if [ ${RESULT} != 0 ] ; then
133 CLIENT_RESULT=${RESULT} 149 CLIENT_RESULT=${RESULT}
134 fi 150 fi
135 fi 151 fi
136 152
137 if [ ${DO_DARTIUM} == 1 ] ; then 153 if [ ${DO_DARTIUM} == 1 ] ; then
138 echo " Dartium (Ctrl-C to skip this set of tests)" 154 echo " Dartium (Ctrl-C to skip this set of tests)"
139 doTest client dartium release 155 doTest client dartium release
140 RESULT=$? 156 RESULT=$?
141 if [ ${RESULT} != 0 ] ; then 157 if [ ${RESULT} != 0 ] ; then
142 CLIENT_RESULT=${RESULT} 158 CLIENT_RESULT=${RESULT}
143 fi 159 fi
144 fi 160 fi
145 161
146 # Print summary of results 162 # Print summary of results
147 if [ ${RUNTIME_RESULT} != 0 ] ; then 163 if [ ${RUNTIME_RESULT} != 0 ] ; then
148 echo "*** Runtime tests failed" 164 echo "*** vm tests failed"
149 fi 165 fi
150 166
151 if [ ${COMPILER_RESULT} != 0 ] ; then 167 if [ ${DARTC_RESULT} != 0 ] ; then
152 echo "*** Compiler tests failed" 168 echo "*** dartc tests failed"
169 fi
170
171 if [ ${FROG_RESULT} != 0 ] ; then
172 echo "*** frog tests failed"
153 fi 173 fi
154 174
155 if [ ${CLIENT_RESULT} != 0 ] ; then 175 if [ ${CLIENT_RESULT} != 0 ] ; then
156 echo "*** Client tests failed" 176 echo "*** client tests failed"
157 fi 177 fi
158 178
159 if [ ${TESTS_FAILED} == 0 ] ; then 179 if [ ${TESTS_FAILED} == 0 ] ; then
160 echo "All presubmit tests passed!" 180 echo "All presubmit tests passed!"
161 fi 181 fi
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698