OLD | NEW |
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 # Compares a series of compiler reivsions against a target application for | 7 # Compares a series of compiler reivsions against a target application for |
8 # statistic collection. Outputs a gnuplot consumable table. | 8 # statistic collection. Outputs a gnuplot consumable table. |
9 | 9 |
10 APP="" | 10 APP="" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 date | 166 date |
167 cd $TMP_DIR | 167 cd $TMP_DIR |
168 gclient sync -t --revision=$REVISION >> $LOG_FILE 2>&1 | 168 gclient sync -t --revision=$REVISION >> $LOG_FILE 2>&1 |
169 failTest $? "Error calling gclient sync" | 169 failTest $? "Error calling gclient sync" |
170 echo "Run hooks" | 170 echo "Run hooks" |
171 gclient runhooks >> $LOG_FILE 2>&1 | 171 gclient runhooks >> $LOG_FILE 2>&1 |
172 | 172 |
173 echo "Compiling clean version of dartc; may take some time" | 173 echo "Compiling clean version of dartc; may take some time" |
174 date | 174 date |
175 cd compiler | 175 cd compiler |
176 ../tools/build.py --mode release --arch dartc >> $LOG_FILE 2>&1 | 176 ../tools/build.py --mode release >> $LOG_FILE 2>&1 |
177 if [ ! $? -eq 0 ]; then | 177 if [ ! $? -eq 0 ]; then |
178 echo "error compiling" | 178 echo "error compiling" |
179 failStats $REVISION | 179 failStats $REVISION |
180 return 1; | 180 return 1; |
181 fi | 181 fi |
182 | 182 |
183 # Give the metrics system a backwards compatible way of getting to the | 183 # Give the metrics system a backwards compatible way of getting to the |
184 # artifacts that it needs. | 184 # artifacts that it needs. |
185 cd .. | 185 cd .. |
186 mkdir -p $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt | 186 mkdir -p $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt |
(...skipping 30 matching lines...) Expand all Loading... |
217 COUNT=$(( REV - LOW_REV + 1 )) | 217 COUNT=$(( REV - LOW_REV + 1 )) |
218 else | 218 else |
219 LOW_REV=$(( REV - COUNT + 1 )) | 219 LOW_REV=$(( REV - COUNT + 1 )) |
220 fi | 220 fi |
221 for (( i = REV ; i >= LOW_REV ; i-- )) | 221 for (( i = REV ; i >= LOW_REV ; i-- )) |
222 do | 222 do |
223 echo "["$( basename "$APP")": "$((REV - i + 1))"/"$COUNT", rev:$i]" | 223 echo "["$( basename "$APP")": "$((REV - i + 1))"/"$COUNT", rev:$i]" |
224 compileRevision $i | 224 compileRevision $i |
225 done | 225 done |
226 | 226 |
OLD | NEW |